Skip to main content
Glama

Collar Guardrail — Pre-Trade Risk Layer

Simulate Balance

simulate_balance
Read-onlyIdempotent

Simulate a wallet's ERC-20 balance after a hypothetical trade using eth_call state override. Read-only: no transaction is ever sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deltaYesSigned amount (negative = spend).
holderYesWallet address whose balance is simulated (0x...).
decimalsNoToken decimals (default 18).
token_addressYesERC-20 contract address (0x...).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoBalance after.
deltaNoSigned change.
errorNoIf present, the simulation failed.
beforeNoBalance before.
detailNo
guidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / detail
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / guidance
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the description's 'Read-only: no transaction is ever sent' largely restates structured data. It adds some value by naming the mechanism (state override via eth_call), but says nothing about what the simulation ignores (gas, transfer fees, allowances, non-ERC-20 inputs) or failure behavior.

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 sentences, front-loaded with the purpose and scope, zero filler. The safety qualifier is attached to the same breath as the mechanism rather than padding a separate paragraph.

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?

With an output schema present, the description need not explain return values, and it correctly covers what the tool computes and that nothing is broadcast. The remaining gap is the relationship to evaluate_trade and the assumptions the simulation makes, which a 4-param tool could reasonably state.

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 description coverage is 100% and all four parameters carry descriptions, including the signed semantics of 'delta' and the decimals default, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond that, which is the baseline 3 case.

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?

States a specific verb and resource ('Simulate a wallet's ERC-20 balance') and adds the mechanism ('eth_call state override'), which is unusually precise for an agent trying to understand what the tool actually computes. It does not, however, explicitly contrast itself with the closest-looking sibling, evaluate_trade, so an 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?

The phrase 'after a hypothetical trade' implies the usage context, and the read-only note implies it is safe for speculative checks, but there is no explicit when-to-use, when-not-to-use, or named alternative among check_token_safety / evaluate_trade / evaluate_trade_paid. Usage is implied rather than stated.

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