Skip to main content
Glama

领取收益

build_claim
Read-only

一次生成所有可领收益的交易:亏损挖矿代币、持币分红、推广返佣、dev 收入、资金费。不填 market 时扫描该钱包有收益的全部市场,只返回金额大于 0 的项。

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": {
      "account": "<account>"
    },
    "name": "build_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNo只领这几类;不填为全部
marketNo市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
accountYes用户钱包地址(交易的签名人和收款人)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / market / maxLength
      Removed value: -80
    • removedInput schema / properties / market / minLength
      Removed value: -1
    • removedInput schema / properties / market / type
      Removed value: -"string"
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, and the description does not contradict them, because it says it only generates a transaction and does not execute anything. Beyond the annotations, the description adds real behavioral context: it claims all reward categories at once, it scans every market when market is omitted, and it filters out zero-amount items. It does not describe the authorization or signing flow, nor the return shape.

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, with the primary action front-loaded and the fallback behavior second. The list of reward types partly duplicates the kinds enum, but it usefully spells out what counts as claimable earnings.

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?

With three parameters, no output schema, and annotations already covering the safety profile, the description is nearly complete. It is still unclear whether the result is a single transaction or a list of claim items, because the phrase '生成所有可领收益的交易' plus '只返回金额大于 0 的项' mixes transaction payload and item list without an output schema to disambiguate.

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 description coverage is already 100%, so the baseline is 3, but the description adds meaning beyond the schema for market: omitting it triggers a scan of all markets and narrows the response to positive-amount items. For kinds it mostly restates the schema's '不填为全部' default.

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 generates transactions that claim every type of pending earnings (mining, dividend, referral, dev, funding). That verb+resource pairing plus the enumeration makes the tool's job clear. It doesn't differentiate this tool from read-only siblings such as get_account_rewards, so an agent has to infer that this tool builds an actual claim transaction rather than previews amounts.

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?

The description explains what happens when the optional market parameter is omitted, which conveys some usage context. However, it gives no when-to-use guidance versus get_account_rewards or other build_* siblings, no prerequisites, and no statement of when this tool should not be used.

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