Skip to main content
Glama

Transaction precheck

get_tx_precheck
Read-onlyIdempotent

Use when an agent needs to see what a Solana or Base transaction does before signing it. Returns simulated balance changes, programs or contracts, approvals, new accounts, token-risk reads and warnings. 503 if it cannot simulate: not charged. Costs 0.05 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).

Input Schema

NameRequiredDescriptionDefault
toNochain=base: the 0x address the transaction calls
txNochain=solana: the transaction as base64, legacy or version 0, signed or unsigned, at most 1232 bytes
dataNochain=base: calldata as 0x hex, at most 20000 hex characters (default 0x)
fromNochain=base: the sender, a 0x address (default: a placeholder sender that holds nothing)
chainYesthe chain of the transaction: solana or base
valueNochain=base: wei to send, decimal or 0x hex (default 0)

Output Schema

NameRequiredDescriptionDefault
dataYesthe get_tx_precheck payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_tx_precheck
toolYesthe tool that produced this payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds context the annotations cannot express: pricing (0.05 USDC per call via x402, with the accepted settlement chains), and failure semantics ('503 if it cannot simulate: not charged') so the agent knows a retry costs nothing. The readOnly/idempotent hints are already covered, but the cost and failure contract are genuinely new information.

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, front-loaded with the usage trigger, then the return payload, then the cost/error contract. Every sentence carries information an agent needs and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Returns are covered by an output schema, and the description still summarizes what comes back; chain scope, payment model, and failure behavior are all stated. Nothing essential for correct invocation is missing.

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% and each parameter already documents its chain-scoped meaning (to/data/from/value for base, tx for solana). The description adds no parameter-level detail such as base64 vs hex requirements, so the schema does all the work — baseline 3.

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?

Names a specific verb and resource ('see what a Solana or Base transaction does before signing it') plus the concrete return payload (simulated balance changes, approvals, new accounts, warnings). An agent can distinguish this from token-level siblings like get_token_risk or get_honeypot_check without opening a schema.

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

Usage Guidelines4/5

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

'Use when an agent needs to see what a ... transaction does before signing it' gives a clear triggering condition and implies the pre-signing step in a workflow. It does not name an alternative tool or state when not to use it, which keeps it below a 5.

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.