Skip to main content
Glama

A2A Gateway — Base Token Guard & x402 Settlement

fast_code_audit

Zero-refusal, lightning-fast smart contract and code security audit powered by local Qwen3.5-9B. Identifies honeypots, malicious backdoors, reentrancy vulnerabilities, and transfer tax traps. Zero retention, completely ephemeral. Charges 0.02 USDC via x402 on Base. 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": "fast_code_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesSolidity code snippet, contract logic, or security question to audit
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

A4/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so well: it discloses the model, the 0.02 USDC x402 charge on Base, zero-retention/ephemeral handling, and precise failure semantics (isError plus _meta.x402/payment-error.status_code, 503 = admission unavailable, 409 = uncertain and must not be auto-retried). The retry prohibition on 409 is exactly the kind of non-obvious operational fact an agent cannot get from structured fields.

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?

Purpose, cost, and retention are front-loaded, which is the right ordering for an agent deciding whether to call. The tail becomes a dense run-on of payment-protocol clauses, and the bare fragment "Supply payer_address." sitting mid-sentence about argument fallback is slightly awkward, though nothing is truly wasteful.

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 7-parameter paid tool with no annotations and no output schema, the description covers the hard parts: cost, ephemerality, the two settlement paths, the invoice redemption flow, and error/retry policy. The notable gap is the absence of any statement about what an audit call returns — with no output schema, the response shape for the paid audit result is undocumented.

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 already 100%, so the baseline is 3; the description earns an extra point by explaining the relationship between parameters rather than restating them — that payment_method/invoice_id/signature/tx_hash form an alternative argument-based path for clients that cannot send _meta, and that tx_hash is only needed for on-chain. It does not explain the challengeToSign/signature lifecycle in detail, keeping it out of 5.

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?

"Smart contract and code security audit" with an explicit list of findings it produces (honeypots, backdoors, reentrancy, transfer tax traps) is a specific verb+resource statement. It stops short of a 5 because the sibling check_base_token_safety covers overlapping territory (honeypots, tax traps) and the description never clarifies whether to audit a snippet here versus scanning a token there.

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 guidance is almost entirely about payment rails: when to fall back to argument-based payment if _meta is unavailable, and how to redeem an invoice. There is no guidance on when this tool is the right choice versus deep_protocol_reasoning or check_base_token_safety, so tool selection is left to inference.

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