Skip to main content
Glama

agent-pretrade-context

Pre-trade context bundle for autonomous crypto agents: wallet balance, allowance, gas, realtime price, 24h statistics and best bid/ask. Call immediately before every automated trade, swap or payment and refresh again before the next execution. Data only. Costs $0.01 USDC on Base via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
networkNo
spenderYes
product_idYes
balance_tokensNo
token_contractYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool is 'Data only' (read-only) and states the cost model ('$0.01 USDC on Base via x402'), which is valuable behavioral context. However, it does not describe response format, latency, or failure modes for a multi-component bundle.

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?

Three sentences, each front-loaded and earning its place: purpose, usage cadence, and cost constraint. No filler or repetition.

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 multi-source data aggregation tool with no output schema, no annotations, and zero parameter documentation, the description should do more to explain the relationship between inputs (e.g., how address, spender, and token_contract are used to produce the bundle). It covers purpose and usage well but leaves parameter and return-shape gaps that an agent would need to resolve by trial.

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% and the description adds no parameter semantics at all. It does not explain what 'product_id', 'spender', 'address', or 'token_contract' mean or how they relate to the returned data. With 6 parameters (4 required) and zero schema documentation, the description fails to compensate for this significant gap.

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

Purpose5/5

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

States a specific verb and resource: 'Pre-trade context bundle for autonomous crypto agents' enumerates exactly what is returned (wallet balance, allowance, gas, realtime price, 24h statistics, best bid/ask). This clearly distinguishes it from siblings like chain-erc20-balance or crypto-price, which return individual components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to call: 'immediately before every automated trade, swap or payment and refresh again before the next execution.' This is a strong usage directive that leaves no ambiguity about timing relative to trading operations.

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.