Skip to main content
Glama

dex_tx_swap_submit

Destructive

[write] Broadcast a staged swap to the chain. Does not sign. Requires all signing steps complete (sign_approve if EVM+approval, then sign_swap).

Input 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
swap_session_idYesSwap session ID returned by dex_tx_swap_prepare

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark this as destructive/non-readonly, but the description adds valuable context: it does not sign, it is the final broadcast step, and it depends on prior signature steps. This goes beyond what annotations alone convey.

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 two sentences, front-loaded with a '[write]' tag and a clear verb, and every word adds value. No fluff or redundant schema repetition.

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?

With a simple 2-param schema and no output schema, the description covers the essential context: it is the final broadcast step, requires prior signatures, and names the exact prerequisite tools. It lacks explicit mention of irreversibility, but destructiveHint covers that.

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?

The input schema is self-explanatory with 100% coverage for both parameters, so the description need not add param details. It provides no extra nuance beyond what the schema describes.

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 action ('Broadcast a staged swap to the chain') with a clear resource and distinguishes itself from the sign_approve and sign_swap sibling tools. This makes it immediately obvious what this tool does that others do not.

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?

The description explicitly says the tool does not sign and requires all signing steps to be complete, even naming the prerequisites (sign_approve for EVM+approval, then sign_swap). This provides clear sequencing and prevents misuse as an early step.

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.