Skip to main content
Glama

Check an economy spec

xsolana_check
Read-onlyIdempotent

Checks an economy spec. Returns its refusals, each with a code, what it means and its fix, which keep a spec from going live; and its warnings, what the person behind the economy needs to know: chance that pays money, revenue paid to stakers, an unfunded prize, a grant without limits, a mint’s powers, a time far off (with its date in words), a token a player can hold a payment up in, a box longer than one answer of the oracle’s holds. The program refuses only what it must, so much of what a project sets up is accepted with a warning. Also returns how many wallet approvals each action takes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xsolana_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoThe spec itself (version 2). Wins over file and example.
exampleNoA worked example’s name (stud-farm, nft-raffle, …).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / example / description
      Previous value: -"A worked example by name (stud-farm, nft-raffle, …)."New value: +"A worked example’s name (stud-farm, nft-raffle, …)."
    • changedInput schema / properties / spec / description
      Previous value: -"An economy spec (version 2) given inline. Takes precedence over file and example."New value: +"The spec itself (version 2). Wins over file and example."
  2. Changed1 schema field changed
    • changedInput schema / properties / example / description
      Previous value: -"A worked example by name, from xsolana_examples (stud-farm, nft-raffle, …)."New value: +"A worked example by name (stud-farm, nft-raffle, …)."
  3. Changed1 schema field changed
    • changedInput schema / properties / example / description
      Previous value: -"A worked example by name, from xsolana_examples (coin-flip-arena, stud-farm, …)."New value: +"A worked example by name, from xsolana_examples (stud-farm, nft-raffle, …)."
  4. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, yet the description adds real substance beyond them: the refusal/warning distinction, the philosophy that "the program refuses only what it must" so many setups pass with a warning, and an extra return value (wallet approvals per action). It omits any note on cost, latency, or output ordering, which keeps it from a 5.

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?

The opening sentence is tight and front-loaded, but the second sentence is a long run-on catalog of warning types rendered in oblique phrasing ("a box longer than one answer of the oracle's holds"), which reads as padding rather than scannable structure. A short enumerated list would have earned the same information in less space.

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?

There is no output schema, so the description carries the full return-value burden and does cover the three outputs: refusals with code/meaning/fix, warnings, and per-action wallet approvals. Completeness is slightly undermined by the cryptic, seemingly non-exhaustive warning taxonomy, which leaves an agent unsure whether unlisted warning kinds can appear.

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

Parameters3/5

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

Schema coverage is 100%, with the spec/example precedence already documented in the schema itself, so the baseline of 3 applies. The description adds no meaning about either parameter and never mentions the "example" shortcut, missing an easy chance to improve over 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 names a specific verb and resource ("Checks an economy spec") and immediately states what comes back: refusals with code/meaning/fix plus warnings. It is distinguishable from generic siblings, but it never contrasts itself with plausibly overlapping tools such as xsolana_review or xsolana_simulate, so the agent must infer the boundary.

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?

Usage is only implied: refusals are framed as things "which keep a spec from going live," suggesting pre-deployment validation, and warnings are framed as what "the person behind the economy needs to know." There is no explicit when-to-use versus when-not-to-use statement and no named alternative for related tasks.

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.