Skip to main content
Glama

Commodity how to trade

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

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?

No annotations are supplied, so the description carries the full burden. It does disclose genuinely useful behavioral traits: no API key required, no custody, and the caller signs their own swap, which tells the agent this is non-custodial and auth-free. However, it does not state what the call actually returns (text? code samples? instruction bytes?), and with no output schema that gap is unfilled.

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?

A single dense sentence plus a short trust clause, with the resource and scope front-loaded before the em-dash detail. Nothing is redundant, though the em-dash list of technical artifacts is packed tightly enough to be slightly harder to scan than separate clauses would be.

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 zero-parameter guidance tool with no output schema, the description covers the essentials: chain (X1), program (APEX), and the specific artifacts documented (instruction layout, account order). The main missing piece is an indication of the response format or whether runnable examples are returned.

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 takes zero parameters and the schema is an empty object, so there is nothing for the description to disambiguate. Baseline 4 applies; no parameter-level misinformation is present.

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 uses a specific verb-and-resource framing: it explains how an agent buys or sells commodities on X1 via APEX, and enumerates the covered material (AMM program, instruction layout, account order). It clearly reads as a documentation/guidance tool rather than an execution tool, though it never names the sibling it complements, commodity_swap_build.

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?

Usage is implied — an agent consults this to learn the mechanics before acting — but there is no explicit 'call this before commodity_swap_build' routing, no statement of when this is unnecessary, and no exclusion against commodity_markets or commodity_price. The agent must infer the workflow position.

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.