Skip to main content
Glama

x402 Crediting Swarm

evaluate_x402_credit

Read-only

Evaluates an x402 (Payment Required) call payload across 3 consensus nodes (Alpha, Beta, Gamma) and returns a credit score (0-1000) with GO/NO-GO recommendation.

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": {
      "payload": "<payload>"
    },
    "name": "evaluate_x402_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesThe x402 call details, vendor history, and requested payment amount
caller_idNoIdentifier of the calling AI agent

Output Schema

NameRequiredDescriptionDefault
statusYesExecution status (success or error)
caller_idNoCaller identifier echoed by swarm
trust_levelYesDerived trust classification tier
node_reportsYesPer-node credit scores, flags, and rationale (Alpha, Beta, Gamma)
agentcash_intelNoLive AgentCash discovery and trust intelligence context
aggregated_flagsNoDeduplicated risk and anomaly flags across consensus nodes
final_recommendationYesDefinitive GO or NO-GO micropayment recommendation
final_creditability_scoreYesConsensus creditability score from 0 to 1000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false and idempotentHint=false, so the safety profile is largely covered. The description adds genuine value by disclosing the 3-node consensus mechanism (Alpha, Beta, Gamma) and the score/recommendation shape, but it omits the per-call cost noted only in the annotation title ($0.05), latency/consensus-failure behavior, and whether the result is cached.

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 well-formed sentence that front-loads the action and resource before the output shape. No wasted words, though the parenthetical "(Payment Required)" is the only usage context and the sentence could carry one more sentence of routing guidance without bloat.

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?

An output schema exists, annotations cover safety and openness, and both parameters are fully described in the schema, so the description only needs to explain what the tool does and how — which it does. The remaining gaps (cost, consensus failure handling) are modest for this complexity.

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 the schema already documents both `payload` and `caller_id`; the description merely restates that a payload is involved. With high coverage the baseline of 3 is appropriate, though it could have added meaning about what the nested payload must contain.

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 specific verb ("Evaluates") and resource ("x402 (Payment Required) call payload"), plus scope (3 consensus nodes) and output shape (credit score 0-1000 with GO/NO-GO). The sibling tools (agentmail_inbox, agentmail_send, swarm_health) are unrelated, so no differentiation is needed; the only minor gap is that it doesn't say what an x402 payload's evaluation gates.

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 explicit when-to-use or when-not-to-use guidance. The agent must infer from the name that this is meant to be called before accepting or extending credit for a paid x402 call; there is no mention of prerequisites, alternatives, or what to do when the verdict is NO-GO.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.