Skip to main content
Glama

commodity_how_to_trade

How an agent buys or sells commodities on X1 for APEX — the on-chain AMM program, instruction layout and account order. No API key, no custody, you sign your own swap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It does disclose two important traits: no API key required and no custody (user signs their own swap). However, it does not mention transaction costs, slippage, failure modes, or whether this is a read-only quote vs an actual state-changing execution. The disclosed traits are useful but incomplete for a financial execution tool.

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?

Two sentences, front-loaded with the core action and resource, followed by the two most important operational caveats. Every sentence earns its place and there is no 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?

For a zero-parameter tool with no output schema, the description covers the key operational constraints (no API key, no custody, self-signed). However, it does not clarify what the tool returns (e.g., a transaction payload, a signing request, or a confirmation) or what the agent should do after invoking it. Given the financial nature and the lack of an output schema, this is a moderate gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the schema provides no parameter semantics. The description compensates by explaining the operational model: no API key, no custody, self-signed swap. This is sufficient for an agent to understand that no input parameters are needed and the tool likely returns instructions or a transaction to sign.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('buys or sells') and resource ('commodities on X1 for APEX'), and distinguishes it from a generic swap by noting it is the on-chain AMM program. It is clear enough to separate from siblings like commodity_markets or commodity_price, though it does not name a sibling explicitly.

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

Usage Guidelines3/5

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

The description implies usage context: it is the actual execution tool for commodity swaps, as opposed to market data or swap-building tools. It does not explicitly state when to use this versus commodity_swap_build or commodity_markets, but the phrase 'the on-chain AMM program' gives a reasonable signal that this is the execution 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.

Resources