Skip to main content
Glama

Buy the top 5 or top 10 by volume

trnch_buy_top

Build one buy split equally across the top 5 or top 10 tokens by 24-hour pool volume on Robinhood Chain. Give top (5 or 10), pay (USDG or ETH) and amount (decimal, in units of pay). Each leg is quoted across nine routers and built with the Trnch fee already deducted (feeBps on every leg); the last leg takes the remainder of the split. Tokens that trnch keeps out or cannot sell, tokens whose facts cannot be read, stablecoins and wrapped ETH are skipped and replaced by the next token by volume; a leg without a route is dropped and the split is recomputed. Returns { pay, total, requested, count, legs [{ rank, token, amountIn, router, feeBps, expectedOut, facts, approval, tx }], skipped [{ address, symbol, ... }], meaning }: a volume ranking and facts, not a verdict or a recommendation. Send each leg's approval, when not null, before its tx, from the key's wallet; each leg is a separate transaction. Nothing is sent by Trnch. Errors: 422 no token passes, 404 no route left, 400 invalid amount, 503 ranking out of date, 429 rate or build limit (retry-after). A partner's integrator fee (integratorFeeBps, or the partner's default fee when the request carries X-Trnch-Partner-Key) is added to the Trnch fee and taken by the same router fee on every router; a router whose maximum fee is below the total is left out of the quote. The integrator fee is paid to the partner through the Trnch partner program after the swap is confirmed on chain. fees in the response: { side, token, trnch { bps, amount }, integrator { bps, amount, partner } or null, minAmountOut }, amounts in the smallest unit; minAmountOut is net of both fees and of slippage. 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": {
      "top": "<top>",
      "pay": "<pay>",
      "amount": "<amount>"
    },
    "name": "trnch_buy_top"
  }
}

Input Schema

NameRequiredDescriptionDefault
payYesToken paid: USDG or ETH.
topYesHow many tokens: 5 or 10.
amountYesTotal to spend, in units of pay, e.g. "100" or "2.5". Split equally across the legs.
slippageBpsNoMax slippage in basis points (100 = 1%). Default 100, raised to a known token tax + 1% up to 15%; above that, required.
integratorFeeBpsNoIntegrator fee in basis points, 0 to 100, for a partner identified by X-Trnch-Partner-Key or by the partner ref of the API key. Overrides the partner's default fee; the default fee applies only with X-Trnch-Partner-Key, never through the partner ref of the API key alone. Without a partner, a value above 0 is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, it discloses a great deal: fees pre-deducted per leg with feeBps, integrator fee stacking and the router-exclusion rule, skip-and-replace behavior for excluded/unreadable/stable/wrapped tokens, leg dropping with split recomputation, per-leg approval ordering, the auth requirement (Bearer key created by wallet signature), and explicit error codes including 429 with retry-after. It also clarifies that the service sends nothing, which is exactly the kind of mutation boundary an agent needs for a build-style tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is a dense single block that mixes parameters, fee mechanics, error codes, auth, and response shape without separation. Nearly all content is relevant to a complex tool, but the response-shape and fee paragraphs would be far more usable as structured lists, and some phrasing is repetitive.

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 compensates by enumerating the full return shape (pay, total, requested, count, legs with rank/token/amountIn/router/feeBps/expectedOut/facts/approval/tx, skipped, meaning) plus the nested fees object. For a multi-leg transaction-building tool with auth and rate limits, an agent has everything needed to call it and interpret the result.

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?

Schema coverage is 100%, so the baseline is 3; the description goes modestly beyond it by explaining that amount is split equally with 'the last leg takes the remainder' and that minAmountOut is net of both fees and slippage. The remaining parameter discussion (top, pay, slippageBps, integratorFeeBps) largely restates the schema.

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 first sentence states a specific verb and resource: builds one buy split equally across the top 5 or 10 tokens by 24h pool volume on Robinhood Chain. That scope is distinctive enough to separate it from a single-token buy or a plain ranking call, though it never names trnch_buy or trnch_top_24h as the alternatives an agent should compare against.

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?

It gives operational guidance for use (send each leg's approval before its tx, each leg is a separate transaction, nothing is sent by Trnch) and notes the output is 'a volume ranking and facts, not a verdict or a recommendation.' However, it never says when to pick this over trnch_buy or trnch_quote, nor when-not to use it, so the choice between siblings is left to inference.

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