Skip to main content
Glama
x402-mcp
by clawfred

get-data-from-resource-server

Fetches data from x402-paid APIs by sending GET requests and automatically handling 402 Payment Required responses to complete payments.

Instructions

Fetch from paid API via x402 (GET /weather)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get-data-from-resource-server"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'Paid API via x402' is a useful disclosure that the call likely incurs cost or requires payment handling, but there is nothing about how payment/authorization is performed, whether the call is read-only or safe to repeat, rate limits, or failure behavior.

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?

A single front-loaded sentence with no filler. It is efficient, though the brevity borders on under-specification given everything else is unstated.

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?

There is no output schema and no annotations, so the description is the only place to explain what the response contains (weather fields, format) and how the x402 payment flow works; it does neither. For a tool whose entire premise is a paid external call, this leaves too much unsaid.

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?

The tool takes zero parameters, so semantics are moot and the baseline is 4. The description adds no parameter information, but none is needed.

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?

States a concrete action (fetch data from a paid API) and names the exact endpoint (GET /weather), so an agent knows what resource comes back. The generic tool name ('get-data-from-resource-server') is narrower in the description than it sounds, but the parenthetical resolves the ambiguity. The unexplained 'x402' term is the only weak spot.

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

Usage Guidelines2/5

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

No guidance on when to call this versus any alternative, no prerequisites, and no note about when the paid/payment path is appropriate. The only implied usage cue is 'paid API', which is a hint rather than a rule.

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

Deploy Server

Other Tools