Skip to main content
Glama

触发结算

build_trigger_settlement
Read-only

Builds a gas-paying transaction to trigger market revenue settlement via collect, dividend, or buyback actions, enabling on-chain distribution, dividend accounting, or token burn.

Instructions

生成触发某市场收入结算的交易(任何人都可调用,付 gas):collect 归集并分配,dividend 触发分红记账,buyback 触发回购销毁。

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>",
      "market": "<market>",
      "action": "<action>"
    },
    "name": "build_trigger_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
accountYes用户钱包地址(交易的签名人和收款人)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=false, openWorldHint=false, so safety is covered. The description adds real value beyond that: it is permissionless and the caller bears gas cost, and it explains that 'buyback' results in repurchase-and-burn at the transaction level. It could still state whether an unsigned transaction is returned rather than executed, which is the one behavioral point left implicit.

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?

One front-loaded sentence: purpose first, then the caller condition in parentheses, then a compact colon list of the three actions. Nothing is redundant, though the nested parenthetical plus list makes it slightly dense to parse in a single pass.

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 3-required-param builder with no output schema, the description covers what it builds, who may call it, and what each action does. The remaining gap is the return contract – that the output is an unsigned transaction to be signed and submitted by the caller – which matters for a build_* tool but is partly recoverable from the name and purpose wording.

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 67% and the undocumented parameter is exactly `action`; the description compensates by defining all three enum values (collect = gather and distribute, dividend = dividend accounting, buyback = repurchase and burn). The `market` and `account` semantics remain with the schema, so the description fills the gap it needs to without restating schema text.

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+resource: '生成触发某市场收入结算的交易' (generate a transaction that triggers a market's revenue settlement), and then spells out the three action modes with their distinct effects. No sibling tool builds a settlement transaction, and the description makes clear this is a transaction-construction tool rather than a state read or a direct execution.

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?

The parenthetical '任何人都可调用,付 gas' gives the caller precondition (permissionless, caller pays gas), and the per-action glosses imply which action to pick. However, there is no explicit 'use this when…' framing, no when-not guidance, and no pointer to what to do after building the transaction (sign/submit) or to related siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.