Skip to main content
Glama

query_endpoint

Probe an x402 endpoint to see its price and payment requirements without paying; returns accepted methods and prices so you can inspect costs before calling a paid API.

Instructions

Probe an x402 endpoint to see its pricing and payment requirements without paying. Returns the accept entries showing supported payment methods and prices.

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": {
      "url": "<url>"
    },
    "name": "query_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe full URL of the endpoint to probe
methodNoHTTP method to use (default: POST)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.14

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that no payment occurs and that the response contains 'accept entries' with payment methods and prices, but it omits auth requirements, rate limits, and error behavior for a probe that hits an external endpoint.

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 tight sentences with the free-probe guarantee front-loaded and the return contents following. Nothing is redundant or padded.

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?

For a simple two-parameter tool with no output schema, the description covers the action, the cost-free nature, and the shape of the result. The only gap is the absence of any permission or failure-mode context, which is minor for a read-only probe.

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%, so both the url and method parameters are already documented in the schema. The description adds no parameter-level meaning beyond that, which is the baseline 3 when the schema does the heavy lifting.

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 ('probe an x402 endpoint') plus the key scope differentiator ('without paying'), which separates it from the payment-performing sibling call_endpoint. An agent can tell what this does without opening the schema.

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?

'Without paying' implies the tool is used to inspect pricing before committing to a paid call, but the description never explicitly names the alternative or states when-not to use it. Usage is inferable rather than stated.

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