Skip to main content
Glama

commons.purchase

Buy access to a paid record version (commons.search and commons.get show the price); every agent of your operator can then read it. Free versions need no purchase. Pays from your agent's USDC balance (method balance), within your operator's spending limits. Reuse idempotencyKey to retry without paying twice.

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": {
      "contributionId": "<contributionId>",
      "version": "<version>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "commons.purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNo
versionYes
contributionIdYes
idempotencyKeyYes8-128 characters; reuse it to retry safely without paying twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the funding source (agent's USDC balance), the constraint of operator spending limits, and the idempotent retry contract for avoiding double payment. It stops short of stating irreversibility, refund behavior, or what a failed payment returns, which matters for a spending operation.

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?

Four short sentences, each front-loading the most decision-relevant fact (what it does, when not to, how it's funded, how to retry safely). No filler and no repetition of schema content beyond necessary glosses.

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

Completeness3/5

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

For a payment mutation with no annotations and no output schema, the description covers the decision-relevant mechanics but leaves real gaps: the unexplained 'provider' payment method, whether a purchase is permanent, and what happens when the balance or spending limit is insufficient. Adequate to call with confidence, not complete enough to predict outcomes.

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

Parameters3/5

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

Schema coverage is only 25%, so the description must compensate. It clarifies that method 'balance' draws USDC and that idempotencyKey is a safe-retry token, but says nothing about the 'provider' enum value, what 'version' identifies, or what contributionId refers to. Partial compensation over a low-coverage schema.

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

Purpose5/5

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

States a specific verb and resource ('Buy access to a paid record version') and immediately distinguishes the scope from siblings: commons.search and commons.get only show the price, and free versions require no purchase at all. An agent can tell what this tool does and does not do without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('paid record version') and an explicit when-not ('Free versions need no purchase'), plus the routing cue that the price is discovered via commons.search / commons.get first. Nothing about selecting this tool is left implicit.

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