Skip to main content
Glama

Execute a signed trade intent (protocol submits and pays gas)

problee_execute_trade_intent

Execute a trade the agent authorized by signature. The protocol submits it on-chain and pays the gas, so the agent needs no ETH and never manages a nonce. Sign the signPayload from problee_prepare_trade, then call this. Re-posting the same signed intent is safe — the digest can only execute once.

Input Schema

NameRequiredDescriptionDefault
intentYesThe signPayload.typedData.message from problee_prepare_trade, unchanged.
chainIdNo
signatureYeseth_signTypedData_v4 result over signPayload.typedData.
idempotencyKeyYesStable retry key. Reuse only with byte-equivalent tool arguments.

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds real context beyond them: the protocol fronts gas, the agent holds no ETH and manages no nonce, and a re-posted signed intent cannot execute twice because the digest is single-use. It adds no failure-mode detail (expired deadline, revert handling), which is what keeps it below a 5. The replay-safety sentence is narrower than the idempotentHint=false annotation and is consistent with it, not contradictory.

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?

Four short sentences, front-loaded with the action and the key differentiator (gasless, no nonce), then the call sequence, then the safety guarantee. No filler and no repetition of the title.

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?

An output schema exists, so return values need not be described, and the description covers the cross-tool workflow and the safety profile an agent needs before a mutation. It leaves chainId unexplained and gives no guidance on failure/retry outcomes, which is a modest gap for a write operation.

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 coverage is 75% and the description mostly restates what the schema says, pointing at intent as the unchanged signPayload typed-data message. chainId and the retry semantics of idempotencyKey are left entirely to the schema, so the description adds little meaning on top of it.

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 (execute a signed trade intent) and immediately names the mechanism (protocol submits on-chain, pays gas), which cleanly separates it from problee_prepare_trade and from order-placement siblings like problee_place_limit_order.

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?

Gives an explicit prerequisite and ordering: sign the signPayload from problee_prepare_trade first, then call this. It does not state when to prefer alternatives (e.g. problee_simulate_trade for dry runs or the batch preparation path), so it stops short of full when/when-not coverage.

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.