Skip to main content
Glama

compute_reward

Calculate claimable XAH network rewards using the time-weighted model. Supply reward fields directly or read them live from an address.

Instructions

Project claimable XAH network reward using the documented time-weighted model. Supply reward fields directly, or an address to read them live. Labelled DOCUMENTED_MODEL. LEGACY approximation — prefer reward_status, which applies the exact genesis reward-hook formula with live parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressNo
networkNomainnet
balanceXAHNo
currentLedgerNo
rewardLgrFirstNo
rewardAccumulatorNo
Behavior3/5

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

No annotations provided, so description must bear full burden. It notes the tool is a legacy approximation but does not elaborate on constraints, side effects, or authentication needs. For a read-only computational tool, this is acceptable but not thorough.

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

Conciseness5/5

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

Two concise sentences plus legacy and alternative notes. Every sentence adds value with zero waste.

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?

Given 6 parameters and no output schema, the description covers the main function, input modes, and legacy status. However, it omits the output format (expected reward) and does not clarify mutual exclusivity of inputs or essential parameter combinations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description only groups parameters as 'reward fields' without explaining individual semantics. The meaning of balanceXAH, currentLedger, etc., is left to the user's assumed knowledge of the model.

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?

Clearly states the tool computes a reward using a documented time-weighted model, distinguishes from sibling reward_status by labeling itself as legacy.

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?

Explicitly states when to use (for legacy approximation) and when to prefer reward_status instead. Also describes two input modes: direct fields or address.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hugegreencandle/xahau-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server