Skip to main content
Glama

TAT Risk (beta)

Prepare pre-trade risk analysis

preTrade
Read-onlyIdempotent

Prepares the paid x402 pre-trade HTTP request. The downstream GET is paid at the exact listed atomic USDC amount; this MCP tool itself never signs, pays, or executes 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": {
      "address": "<address>"
    },
    "name": "preTrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes
networkNoauto
tradeSizeUsdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses genuinely useful behavior: the resulting downstream GET costs the exact listed atomic USDC amount, and this tool performs no signing, payment, or execution. That is exactly the side-effect boundary an agent needs before calling a request-builder in a paid pipeline. It stops short of saying where the listed amount comes from or how long a prepared request stays valid.

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?

Two tight sentences with no filler, and the purpose statement is front-loaded before the payment caveat. It is, however, arguably too lean for a tool whose jargon and parameter set both need unpacking, so terseness here costs clarity elsewhere.

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?

Annotations already cover the safety profile and there is no output schema, so the main open question is what 'prepares' actually returns — the description implies an unsigned HTTP request payload but never describes its shape or the required next step. Combined with zero parameter documentation for a three-parameter priced tool, the definition is usable but leaves an agent guessing on inputs and on what to do with the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters (a 0x-pattern address, a network defaulting to 'auto', and a tradeSizeUsd defaulting to 5000 with 1–10,000,000 bounds), so the description carries the burden of explaining them. It says nothing about any of the three — notably, 'auto' for network and how tradeSizeUsd influences the quoted USDC amount are left entirely unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'prepares' and object 'paid x402 pre-trade HTTP request' identify a build-a-request tool, but 'x402' and 'atomic USDC' are jargon an agent may not resolve, and the description never states that this produces pre-trade risk analysis output (the title's claim). It also gives no differentiation from the sibling prepare_paid_risk_request, which reads as near-identical in purpose.

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?

There is no statement of when to use this versus prepare_paid_risk_request, quickRisk, paidTokenRisk, or deepIntelligence. The only routing-adjacent signal is a negative one ('this tool itself never signs, pays, or executes'), which implies a follow-up payment step but does not name it or describe the handoff.

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