Skip to main content
Agents that use the Model Context Protocol (MCP) already have a tool-call abstraction. Adding paid tools is a matter of teaching the runtime three things: how to discover tools that require payment, how to attach a payment to a tool invocation, and how to interpret rejection.

Discovery

In the agent’s tool registration phase, query the Bazaar for MCP tools:

Handling rejection at the tool boundary

An MCP runtime typically has a retry mechanism at the tool-call level. Do not use it for payment rejections directly, because the reactions vary by code (see Handling Rejections). Wrap the invoker and translate rejections into tool errors the LLM can reason about: