Skip to main content
Glama

discover_service

Read any x402 service's /.well-known/x402 manifest to learn its routes, prices, payment rails, and response schemas before you pay. Free, no payment is made.

Instructions

Read any x402 service's /.well-known/x402 manifest to learn its routes, prices, payment rails, and response schemas. Free — no payment is made.

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": {
      "baseUrl": "<baseUrl>"
    },
    "name": "discover_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseUrlYesOrigin of the service, e.g. https://tablebook.example.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it delivers the critical fact for a payment-protocol tool: "Free — no payment is made," which tells the agent this is a non-mutating, no-cost read even in an x402/payment context. It omits secondary behavior such as failure handling when the manifest is missing or rate/timeout limits, so it is strong but not complete.

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?

Two short sentences, zero filler, with the core action front-loaded and the cost/safety guarantee second. Nothing repeats the tool name or the schema redundantly.

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

Completeness4/5

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

With one required parameter and no output schema, the definition is nearly sufficient because it enumerates the shape of the returned data (routes, prices, payment rails, response schemas). The remaining gap is error behavior — what the agent sees when a service exposes no x402 manifest — which matters for a discovery tool an agent may call against arbitrary origins.

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 description coverage is 100% and the baseUrl property already carries an origin example, so the schema does the parameter work. The description adds only a weak constraint through its resource framing (that the target is an x402 service origin) and does not clarify normalization rules such as whether a path or trailing slash is allowed — baseline 3.

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?

Uses a specific verb ("Read") against a specific resource (an x402 service's /.well-known/x402 manifest) and enumerates exactly what information is returned: routes, prices, payment rails, response schemas. This is clearly distinct from every sibling (book_table, buy_item, search_*), none of which inspect a service manifest, so an agent can identify the tool from the description alone.

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?

"Read any x402 service's ... manifest to learn its routes" implies the usage context (inspect a service before interacting with it), and the phrasing "any x402 service" signals the scope of applicability. However, it gives no explicit when-to-use/when-not guidance or route to alternatives — it never says to call this before buy_item/book_table rather than assuming a route exists, nor what to do when a manifest is absent.

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