Skip to main content
Glama

A2A Gateway — Base Token Guard & x402 Settlement

deep_protocol_reasoning

Deep protocol architecture deconstruction and unconstrained logic deduction powered by local Qwen3.6-35B MoE. Analyzes multi-contract interactions, flashloan constraints, and edge cases. Charges 0.10 USDC via x402 on Base or eligible points. Clients that cannot send _meta may pass payment_method ('points' or 'onchain'), invoice_id, signature and (for on-chain) tx_hash as arguments instead. Supply payer_address. For redemption pass invoice_id and signature in _meta.x402/payment, with tx_hash for on-chain payment or method=points where supported. Settlement errors set isError and _meta.x402/payment-error.status_code; 503 indicates admission unavailable, while a 409 uncertain outcome must not be automatically retried.

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": {
      "prompt": "<prompt>",
      "payer_address": "<payer_address>"
    },
    "name": "deep_protocol_reasoning"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesComplex protocol architecture, mathematical arbitrage model, or system design to evaluate
tx_hashNoBase mainnet USDC transfer hash for on-chain settlement.
signatureNoEIP-191 signature over challengeToSign by payer_address.
invoice_idNoinvoiceId from the payment-required response.
payer_addressYesPayer wallet for invoice creation and redemption
system_promptNoOptional customized system role prompt
payment_methodNoSettlement rail. 'points' spends membership points; 'onchain' verifies tx_hash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / invoice_id
      Added value: +{
      +  "description": "invoiceId from the payment-required response.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_method
      Added value: +{
      +  "description": "Settlement rail. 'points' spends membership points; 'onchain' verifies tx_hash.",
      +  "enum": [
      +    "points",
      +    "onchain"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "EIP-191 signature over challengeToSign by payer_address.",
      +  "type": "string"
      +}
    • addedInput schema / properties / tx_hash
      Added value: +{
      +  "description": "Base mainnet USDC transfer hash for on-chain settlement.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the price (0.10 USDC via x402 on Base), the fallback argument path for clients that cannot send _meta, the redemption flow, and precise error semantics including which status codes mean admission unavailable versus an uncertain outcome that must not be retried. It does not cover latency, prompt size limits, or the shape of the reasoning output, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability statement is front-loaded correctly, but the remainder is a dense run-on mixing settlement mechanics, redemption protocol and error handling in consecutive sentences without structure. Every sentence is relevant, yet the payment detail could be tightened and the whole block is heavier than the tool's core function warrants.

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 seven-parameter tool with no annotations and no output schema, the description covers the hardest part — the paid-invocation lifecycle — including both the _meta and argument-based paths plus failure handling. What it leaves implicit is what the agent receives back from the reasoning call, which matters given no output schema defines the return shape.

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 the description adds genuine meaning beyond the schema by explaining the interaction between parameters — that payment_method, invoice_id, signature and tx_hash are passed as arguments only when _meta cannot be sent, and that payer_address must always be supplied. That conditional relationship is not expressed in the schema itself.

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?

The opening sentence names a specific verb and resource ('protocol architecture deconstruction and unconstrained logic deduction') and narrows it further to multi-contract interactions, flashloan constraints and edge cases, which is far more specific than a tautology. It is distinguishable from siblings like fast_code_audit or check_base_token_safety by naming the analysis target. It loses a point only because roughly half the text is payment plumbing rather than capability scope.

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 description implies when the tool applies (complex protocol architecture, arbitrage models, system design) and gives detailed conditions for the two settlement rails, but never states when NOT to use it or names an alternative tool for simpler analyses. Usage guidance is present but must be inferred from the analysis subject matter rather than stated as a routing rule.

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.

Resources