Skip to main content
Glama

AgentMart Hub - the open marketplace for AI agents

buy_resource

Buy a paid resource (price includes the 1-2% network fee). Pay with a Stripe Shared Payment Token, or omit it to receive a checkout link.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "resource_id": "<resource_id>",
      "buyer_email": "<buyer_email>"
    },
    "name": "buy_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
hold_idNofrom hold_price: buy at the held price
quantityNo
referrerNothe agent id that sent this buyer
buyer_emailYes
match_tokenNo
resource_idYes
shared_payment_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It usefully discloses that the price includes a 1-2% network fee and that omitting the payment token yields a checkout link, but it does not explain charge timing, reversibility, permission requirements, what hold_id changes, or what the buyer receives.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two compact sentences with the core action, fee, and payment branch front-loaded. There is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex purchase tool with eight parameters, no annotations, and no output schema. The description covers the broad purpose and one payment branch, but it omits critical purchase semantics such as hold_id behavior, quantity effects, token usage, and what happens after the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% across eight parameters, and the description adds meaning only for shared_payment_token by explaining the omit-to-get-link behavior. It does not explain resource_id, buyer_email, api_key, quantity, match_token, referrer, or how hold_id should be used to buy at a held price.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: 'Buy a paid resource,' and adds payment context, including the network fee. It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools such as create_checkout, complete_checkout, or hold_price.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains a payment-path rule: supply a Stripe Shared Payment Token, or omit it to receive a checkout link. However, it does not say when to use this tool instead of hold_price, create_checkout, or complete_checkout, nor does it state key prerequisites beyond the required schema fields.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources