Skip to main content
Glama

dex_tx_swap_sign_approve

Destructive

[write] Sign the ERC20 approve tx for a staged EVM swap. Requires need_approved=true in prepare result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mcp_tokenNoMCP session token obtained from login (dex_auth_google_login_poll or dex_auth_gate_login_poll). MUST be provided in every call to this tool after login; omitting it will result in 403
checkin_tokenYesApprove-stage checkin_token returned by the local skill check-in script after dex_tx_swap_checkin_preview(stage='approve')
swap_session_idYesSwap session ID returned by dex_tx_swap_prepare

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds the useful precondition 'Requires need_approved=true'. However, it does not disclose other behaviors such as whether the transaction is only signed or also submitted, or what side effects signing has beyond the implied state change. The added context is helpful but not rich; with annotations covering the safety profile, this is adequate but not exceptional.

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?

The description is a single, front-loaded sentence that begins with a '[write]' tag and immediately states the action. Every word contributes: the operation, the target, the context, and a key prerequisite. There is zero redundancy or filler.

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?

The description is adequate for a tool in a multi-step swap flow, but it lacks explicit guidance on what to do after signing or how this step fits with siblings like dex_tx_swap_submit. The schema partially compensates by referencing the prepare and checkin steps. Given the complexity of the flow, a mention of the next step would improve completeness, but it is not critically incomplete.

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%, so all parameters are already documented in the schema, including the checkin_token and swap_session_id sources. The description itself adds no parameter-specific meaning beyond the need_approved condition, which is not a parameter. This meets the baseline for high coverage but provides no extra value.

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 clearly states the tool's function: 'Sign the ERC20 approve tx for a staged EVM swap.' This uses a specific verb ('sign'), a specific resource ('ERC20 approve tx'), and distinguishes it from sibling tools like dex_tx_swap_sign_swap and dex_tx_swap_submit. The additional prerequisite (requires need_approved=true) adds precision without ambiguity.

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?

The description provides clear context for when to use the tool: it is for signing the approve transaction in a staged EVM swap, and specifically requires need_approved=true from the prepare result. This implies it is not for the swap signing itself, though it does not explicitly name alternatives or exclusions. The stated precondition offers actionable usage guidance.

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.

TDQS

B3.4/5.0
Disambiguation4/5

Most tools have clear, distinct roles (auth flows, market data, swap stages, wallet operations). A few ambiguities exist, such as dex_tx_get_sol_unsigned vs dex_tx_transfer_preview and dex_agentic_report's name not matching its description, but overall agents can reliably select the correct tool.

Naming Consistency3/5

Naming is inconsistent: while all tools share the dex_ prefix and category segments, some use get_*, others list_*, and several are noun phrases (dex_chain_config, dex_tx_gas, dex_tx_detail). Auth tool ordering also varies (gate_login_start vs login_gate_wallet), making the pattern less predictable.

Tool Count2/5

With 47 tools, the server is over-scoped and burdensome for agents to navigate. Even though the broad DEX domain justifies many features, this exceeds the 25+ threshold for 'too many' and could benefit from consolidation into fewer, higher-level tools.

Completeness4/5

The tool set comprehensively covers DEX workflows: auth, market data, token info, wallet balances, transfer/swap pipeline, cross-chain bridge, and x402 payments. Minor gaps include lack of explicit swap cancellation or withdrawal execution, but these are secondary to the core functionality.