Skip to main content
Glama

Relay a signed collateral permit so the agent pays no gas

problee_trading_setup_permit

Grant an allowance by signature. Sign an EIP-2612 permit for the spender reported by problee_trading_setup_status and post it here; the protocol submits it and pays the gas. purpose "trading" approves the router so you can trade. Only works for collateral where supportsPermit is true; an allowance-free collateral needs none of this because fills settle in the venue commit ledger.

Input Schema

NameRequiredDescriptionDefault
valueYesNon-negative integer amount in the token's smallest unit (wei for ETH-family tokens; the play-money token PM uses 6). Always read the decimals from the token or market metadata rather than assuming them. Serialized as a base-10 string to avoid JS number precision loss.
chainIdNoCompiled protocol release chain ID (Base 8453).
purposeNoWhat the allowance is for. "trading" lets the release router pull collateral for trades; "challenge_bond" lets the resolution escrow pull the bond when you challenge a resolution. You name the purpose, never the spender — the endpoint resolves that from configuration, so a signature can never approve somewhere you did not intend.
deadlineYes
signatureYes
idempotencyKeyYesStable retry key. Reuse only with byte-equivalent tool arguments.
collateralTokenYesChecksummed or lowercase 20-byte EVM address (0x + 40 hex).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses meaningful behavior: the protocol submits the permit and pays gas, the spender is resolved server-side by purpose so a signature cannot approve an unintended target, and applicability is conditional on supportsPermit. It does not cover failure modes or deadline expiry behavior, but the security and gas-cost disclosure is genuinely valuable given openWorldHint=true.

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?

The core action and its prerequisite are front-loaded, and each sentence carries distinct information (action, gas payment, purpose semantics, applicability). The final clause about the venue commit ledger is slightly dense but earns its place as the reason allowance-free collateral needs no permit.

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, 5-required cryptographic write operation with an output schema, the description covers the prerequisite, the security model, and applicability. The remaining gaps (deadline format, signature formatting) are either schema-documented or self-evident, so completeness is strong.

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 71%, so the schema already carries most meaning including value, purpose, and idempotencyKey. The description reinforces the purpose enum semantics (trading approves the router) and constrains which collateralToken values are valid, but adds nothing for deadline or signature, so baseline 3 applies.

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?

The description states a specific verb+resource: sign an EIP-2612 permit and post it to grant an allowance, with the protocol paying gas. It explicitly distinguishes its role from sibling problee_trading_setup_status (which reports the spender) so an agent can tell the two apart immediately.

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?

It names the prerequisite (read the spender from problee_trading_setup_status first), the two use cases via purpose (trading vs challenge_bond), and an explicit exclusion: collateral with supportsPermit=false or allowance-free collateral needs none of this. That is when-to-use, when-not-to-use, and which sibling to consult.

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.