Skip to main content
Glama

Create an API key

trnch_register

Step 2 of 2: send the message returned in step 1 and its signature; returns { key, prefix, wallet } with status 201. The key is shown once, store it. 3 keys max per wallet (409); up to 10 new keys per IP per day; 120 calls per minute per IP across keys; 400 if the message expired or was altered, 401 if the signature does not match.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>",
      "message": "<message>",
      "signature": "<signature>"
    },
    "name": "trnch_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional referral code of the agent's builder: its owner earns a share of the fees of this key's swaps.
labelNoOptional name for the key, e.g. the agent name.
walletYesSame wallet as in trnch_register_message.
messageYesThe message returned in step 1, unchanged.
signatureYespersonal_sign signature of message by wallet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / message / description
      Previous value: -"The message returned by trnch_register_message, unchanged."New value: +"The message returned in step 1, unchanged."
  2. Changed1 schema field changed
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Optional referral code of the agent's builder: its owner earns a share of the fees of this key's swaps.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only flag it as a non-idempotent open-world write; the description goes well beyond that by disclosing the one-time visibility of the key (store it), the per-wallet and per-IP quotas, the 120 calls/minute ceiling, and the exact meaning of 409, 400 and 401. That is precisely the operational context an agent needs before invoking a mutation.

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?

Two dense sentences, front-loaded with the step position and return shape, then quotas and status codes. Efficient, though the status-code list is packed tightly enough to read as a run-on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description supplies the return payload shape and status code, plus all quota and failure conditions. For a five-parameter write tool in a multi-step flow, nothing material is missing.

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 wallet, message, signature, ref and label are already documented in the schema. The description adds a little meaning by tying message/signature to step 1 and explaining the 400 cause (message expired or altered), but says nothing about ref or label. Baseline 3 applies.

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?

States this is step 2 of a two-step flow that consumes the message from step 1 and returns { key, prefix, wallet } with 201. That is a specific operation (API-key creation) and it is clearly separable from the step-1 sibling trnch_register_message referenced in the schema.

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?

Makes the sequencing explicit (step 2 of 2, send the message from step 1 unchanged) and gives the hard limits an agent must plan around: 3 keys per wallet, 10 new keys per IP per day. It does not name a fallback path when a limit is hit, so not quite a 5.

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