Skip to main content
Glama

CoPay

Get data through CoPay (paid, x402)

copay_fetch

Fetch a CoPay resource and pay its shared price with x402 over MCP. Called without payment it returns the x402 PaymentRequired (isError, structuredContent = {x402Version, accepts, ...}); pay one "exact" option and call again with the PaymentPayload in _meta["x402/payment"]. x402 MCP clients (@x402/mcp) do this automatically. If you already paid for this response, it is served free and the payment is not settled. If the upstream fails, you are not charged.

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": "<resource>"
    },
    "name": "copay_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST resources
railNoPayment rail id or CAIP-2 network (default: any CoPay accepts).
paramsNoQuery/path parameters, e.g. {"asset":"BTC"}
resourceYesResource id from copay_catalog
maxPriceUsdNoMost you will pay in USD, e.g. "0.05".
maxAgeSecondsNoOldest response you accept, in seconds. Larger = more reuse = cheaper.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the failure mode (isError with structuredContent containing x402Version and accepts), the retry contract, caching/reuse economics (an already-paid response is served free and the payment is not settled), and billing protection when the upstream fails. These are exactly the behavioral details an agent cannot infer from readOnlyHint=false, openWorldHint=true, idempotentHint=false. No contradiction with the annotations: the payment side effect is consistent with a non-read-only, non-idempotent tool.

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

Conciseness4/5

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

The description is front-loaded with what the tool does and follows immediately with the call sequence, so an agent can act on the first two sentences. Every sentence carries distinct information (challenge, retry, automation, replay, failure billing), though the density of protocol jargon makes it heavier than necessary.

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

Completeness5/5

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

For a six-parameter, nested-object, output-schema-less tool with a multi-step payment protocol, the description covers the request shape, the error/response shape, the retry path, and the cost and failure semantics. Nothing an agent needs in order to call it correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds a mechanism the schema never expresses: the payment payload travels in _meta["x402/payment"] rather than a declared property. It also frames the pay-one-"exact"-option choice, which gives the accepts list operational meaning. It does not elaborate on maxPriceUsd or maxAgeSeconds beyond what the schema already says.

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 states a specific verb and resource ("Fetch a CoPay resource and pay its shared price with x402 over MCP") and names the mechanism, so an agent knows this is a paid-fetch tool rather than a metadata tool. It does not explicitly distinguish itself from siblings like copay_quote or copay_catalog, leaving some ambiguity for a price-sensitive caller.

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

Usage Guidelines4/5

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

It gives concrete when-and-how guidance for the two-step payment flow: an unsigned call yields the PaymentRequired challenge, then the caller retries with the payment payload in _meta. It also notes that x402 MCP clients automate this, which tells an agent when it can skip manual handling. What is missing is explicit guidance on when to prefer copay_quote or copay_catalog first.

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