Skip to main content
Glama

build_trade_payload

Read-only

Create an encrypted managed-custody trade computedData payload from raw credentials and trade details, ready for GDEX swap execution.

Instructions

Build an encrypted managed-custody trade computedData payload from raw credentials.

Input Schema

NameRequiredDescriptionDefault
nonceYesUnique nonce
actionYesTrade action
amountYesTrade amount
apiKeyNoAPI key for AES encryption
userIdNoControl wallet address
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
tokenAddressYesToken contract address
sessionPrivateKeyNoSession private key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.12.0
    • addedInput schema / properties / accountRef
      Added value: +{
      +  "description": "Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "apiKey",
      -  "action",
      -  "userId",
      -  "tokenAddress",
      -  "amount",
      -  "nonce",
      -  "sessionPrivateKey"
      -]New value: +[
      +  "action",
      +  "tokenAddress",
      +  "amount",
      +  "nonce"
      +]
  2. First observedv4.11.3

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the agent knows this is a side-effect-free computation. The description adds that the output is an encrypted computedData payload composed from credentials, but is silent on secret handling and on how the payload is subsequently consumed. Note: 'raw credentials' sits in mild tension with the accountRef schema note that no secret is passed in chat, though this is a schema annotation, not an annotation contradiction.

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 tight sentence with the verb and the output artifact front-loaded and no filler. It is appropriately sized for a one-line builder, though a brief pointer to the next step could have been added without bloat.

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 an 8-parameter builder with no output schema, the description should explain what the computedData payload is and how to use it (e.g., feed it into an execute tool). It names the artifact but leaves its shape and downstream usage unspecified, which is a meaningful gap given there is no output schema to fall back on.

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 8 parameters (action enum, nonce, amount, tokenAddress, apiKey, accountRef, etc.) are already documented in the schema. The description adds no syntax, format, or constraint detail beyond what the schema provides, so the baseline of 3 applies.

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 (Build) and a specific resource (an encrypted managed-custody trade computedData payload) plus the input nature (raw credentials). An agent can distinguish it from execution siblings like gdex_execute_trade, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of the likely downstream step (executing the payload) or of alternatives such as gdex_execute_trade. The builder-vs-executor relationship is left entirely to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools