Skip to main content
Glama
x402 Discovery & Trust MCP

x402 Discovery & Trust MCP

Find better-scored alternatives to an x402 endpoint

x402_find_alternatives

Find semantically similar x402 endpoints with a higher trust score than a given resource URL, so you can compare alternatives before paying. Returns none if no endpoint out-scores it.

Instructions

Finds semantically similar endpoints that out-score a given one. Empty result means nothing beats it.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax alternatives to return (1-25, default 5)
resourceYesFull x402 resource URL to find better alternatives for, e.g. https://api.example.com/v1/thing
minScoreDeltaNoMinimum trust-score advantage an alternative must have over the subject (default 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.7.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full load; it does disclose one genuinely useful behavioral trait — that an empty result is a meaningful negative signal, not an error. It omits that the operation is read-only, whether the score comparison uses trust score specifically, and any rate-limit or data-freshness context.

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, each earning its place: the first defines the operation and the second defines the edge-case semantics. Front-loaded with no preamble or redundancy.

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?

For a three-parameter read tool with fully documented schema, the description covers purpose and the empty-result case, which is close to sufficient. It never hints at what a returned alternative looks like (score, URL, metadata), which matters since no output schema exists.

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 "out-score" in the description reinforces what minScoreDelta measures (a trust-score advantage) and the empty-result note implies how limit interacts with the comparison threshold. It adds modest but real meaning beyond the schema text.

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?

"Finds semantically similar endpoints that out-score a given one" gives a specific verb and a precise resource-plus-filter, which reads distinctly from generic search siblings like x402_search or x402_semantic_search. It stops short of naming which sibling to prefer in which situation, so the differentiation is implicit rather than explicit.

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?

The phrase "out-score a given one" implies the use case (upgrade/due-diligence on a known endpoint), and "Empty result means nothing beats it" tells the agent how to interpret a miss. However there is no explicit when-to-use versus x402_trust_score or x402_semantic_search, and no stated prerequisite that the caller already has a resource URL worth comparing.

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