Skip to main content
Glama

Report a sent swap

trnch_confirm
Idempotent

Optional, after sending a swap transaction built by this server: report its hash so the volume is credited to the Trnch account of the key's wallet once the receipt is checked on chain. Returns an acknowledgement only; it does not send, cancel or change the transaction, and a hash that is not a swap of this wallet credits nothing. Calling it twice with the same hash changes nothing. Requires an API key (created by wallet signature), sent as Authorization: Bearer .

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": {
      "txHash": "<txHash>"
    },
    "name": "trnch_confirm"
  }
}

Input Schema

NameRequiredDescriptionDefault
txHashYesHash of the transaction you sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag non-read-only, idempotent, open-world, non-destructive, but the description adds real context beyond them: it returns an acknowledgement only, does not send/cancel/modify the transaction, and requires an API key sent as 'Authorization: Bearer <key>'. The 'called twice changes nothing' line reinforces idempotentHint in plain language.

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?

Front-loaded with the trigger condition, then behavior, then auth. Dense with semicolons and a slightly run-on final clause, but every sentence carries information and nothing is redundant.

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?

No output schema exists, yet the description explains the return ('an acknowledgement only'), the side effect (volume credit), the failure mode (wrong-wallet hash credits nothing), and the auth requirement — everything needed to call it correctly.

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?

With a single required parameter at 100% schema coverage, the baseline is 4. The description adds semantics the schema lacks: the hash must belong to a swap of this wallet's transaction for credit to occur.

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 a specific verb and resource ('report its hash' after sending a swap built by this server) plus the effect ('volume is credited to the Trnch account'). The framing as a post-transaction reporting step clearly separates it from siblings like trnch_buy/trnch_sell that build transactions.

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?

Gives an explicit trigger ('Optional, after sending a swap transaction built by this server') and an explicit no-op condition ('a hash that is not a swap of this wallet credits nothing'), so an agent knows both when to call it and when the call is pointless.

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