Skip to main content
Glama

prepare_pair_rewards_in_usdc

Read-only

Choose how an address's holder-pool pair rewards (gold, XAUm, first) arrive. inUsdc=true: each daily payout sells them for USDC in one trade, at no less than the pair's 30-minute average price minus 1% (a worse price pays the pair that day). false: they arrive as the pair token. The choice is one UNSIGNED approval of the pair token to the USDC converter, unlimited (the converter only ever pulls what a payout claim in the same transaction just paid), or its revocation; send it from that address. No step when the address already has that choice.

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": {
      "address": "<address>",
      "inUsdc": "<inUsdc>"
    },
    "name": "prepare_pair_rewards_in_usdc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNoPair token symbol or address; default the first pair, gold (XAUm)
inUsdcYestrue: pair rewards arrive as USDC; false: they arrive as the pair token
addressYesThe holder wallet; it sends the step

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / address / description
      Added value: +"The holder wallet; it sends the step"
    • addedInput schema / properties / inUsdc / description
      Added value: +"true: pair rewards arrive as USDC; false: they arrive as the pair token"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

The description carries substantial behavioral detail well beyond the annotations: the 1% slippage floor against the pair's 30-minute average, the consequence of a worse price (the pair is compensated that day), the fact that the output is an UNSIGNED approval the caller must send, that the allowance is unlimited, and why that is safe (the converter only pulls what a same-transaction claim just paid). The only real gap is that it never states the shape of what comes back or whether revocation has side effects beyond the allowance.

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?

The choice is front-loaded in the first sentence, then the mechanism and the no-op case follow in a logical order. The nested parentheticals (the price-floor aside, the converter explanation) make the paragraph dense and slightly harder to scan than a bulleted form would be, but no sentence is filler.

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 three-parameter preparation tool with no output schema and annotations that only declare read-only/open-world, the description supplies the missing decision-critical context: what the transaction does, the allowance scope, the price floor, and when nothing is needed. Only the return payload and any gas/cost implications are omitted, which is minor here.

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, but the description earns more by explaining why inUsdc matters (each daily payout sells in one trade, with a price floor) and by restating the default pair as the first pair, gold (XAUm). It also ties the address to the transaction sender ('send it from that address'), which is operational meaning the schema only implies. The pair parameter's symbol-vs-address flexibility is left entirely to 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 description states a specific verb and resource: it configures how an address's holder-pool pair rewards arrive, either sold for USDC or delivered as the pair token. It also makes the mechanism explicit (an unsigned pair-token approval to the USDC converter, or its revocation), so an agent can tell this is a transaction-preparation tool rather than a rewards query. It stops short of naming a sibling to contrast with, but the purpose itself is unambiguous.

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?

It gives a clear condition for action plus an explicit no-op case: 'No step when the address already has that choice.' It also frames the two modes as a binary choice with stated trade-off (USDC certainty vs pair-token exposure). It does not, however, contrast itself against siblings such as get_holder_rewards, which an agent may want before deciding whether to call this at all.

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