Skip to main content
Glama

add_endpoint_source

Register x402 API sources by adding a .well-known/x402 discovery base URL or a direct endpoint URL, enabling agents to discover and call paid endpoints.

Instructions

Add x402 endpoints. Pass a base_url to add a .well-known/x402 discovery source, or pass endpoint_url to add a single API endpoint directly.

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": "add_endpoint_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_urlNoBase URL of a server with .well-known/x402 (e.g. 'https://api.example.com')
descriptionNoOptional description for a custom endpoint
endpoint_urlNoDirect URL of a single x402 endpoint (e.g. 'https://api.example.com/v1/search')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.14

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden. It says something is "added" but never states whether state is persisted, whether the server is contacted/validated at add time, how duplicates are handled, what permissions are needed, or what a successful response contains. For a mutation tool with zero annotation coverage, this is a substantive gap.

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, front-loaded with the action and followed by the branching logic. Every clause carries decision-relevant information with no filler.

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?

The description is adequate for choosing which parameter to supply on a simple three-parameter tool with no output schema. It nonetheless omits what happens when neither URL is given, whether the two are mutually exclusive or combinable, and any indication of the post-add result an agent should expect.

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, and the description earns above that by articulating the either/or relationship between base_url and endpoint_url that the schema lists only as separate properties. The optional description parameter is left unmentioned, but the schema documents it adequately.

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?

Opens with a specific verb and resource ("Add x402 endpoints") and immediately distinguishes two creation modes: a .well-known discovery source via base_url versus a single endpoint via endpoint_url. It does not explicitly contrast itself with the sibling discover_endpoints/add-adjacent tools, but the operation is unambiguous on its own.

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?

Gives clear conditional guidance: use base_url for discovery sources, endpoint_url for a single direct endpoint. It stops short of stating exclusions or prerequisites such as whether duplicates are rejected or whether the target URL must be reachable before adding.

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