Skip to main content
Glama

FarmDash Agent OS

simulate_transaction_risk

Read-onlyIdempotent

Check unsigned EVM calldata, target, native value, and chain against Camp Guard policy within route capacity. Provide independently captured expectedTransaction to detect substitution. Returns verdict, flags, and simulation.status=not_run. Run RPC simulation in the signing environment before broadcast. A halt can publish an authorized risk alert.

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": {
      "transaction": "<transaction>"
    },
    "name": "simulate_transaction_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionYesUnsigned EVM payload proposed for local signing.
walletAddressNoOptional public EVM wallet for context. Halt alerts require separate wallet authorization.
expectedTransactionNoIndependent expected values captured before preparation. Do not derive them from the transaction under review.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / expectedTransaction / description
      Added value: +"Independent expected values captured before preparation. Do not derive them from the transaction under review."
    • addedInput schema / properties / expectedTransaction / properties / chainId / description
      Added value: +"Numeric EVM network ID. Supply it for meaningful chain validation."
    • addedInput schema / properties / expectedTransaction / properties / to / description
      Added value: +"Target EVM contract or recipient."
    • addedInput schema / properties / expectedTransaction / properties / value / description
      Added value: +"Native value in base units, encoded as a decimal integer or 0x-prefixed hexadecimal string."
    • addedInput schema / properties / transaction / description
      Added value: +"Unsigned EVM payload proposed for local signing."
    • addedInput schema / properties / transaction / properties / chainId / description
      Added value: +"Numeric EVM network ID. Supply it for meaningful chain validation."
    • addedInput schema / properties / transaction / properties / data / description
      Added value: +"0x-prefixed calldata. Use 0x for a plain native transfer."
    • addedInput schema / properties / transaction / properties / to / description
      Added value: +"Target EVM contract or recipient."
    • addedInput schema / properties / transaction / properties / value / description
      Added value: +"Native value in base units, encoded as a decimal integer or 0x-prefixed hexadecimal string."
    • addedInput schema / properties / walletAddress / description
      Added value: +"Optional public EVM wallet for context. Halt alerts require separate wallet authorization."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior, yet the description adds non-obvious facts: no RPC simulation is performed (simulation.status=not_run), the real simulation must happen in the signing environment, and a halt may publish an authorized risk alert. That last point is a genuine side effect an agent could not infer from readOnlyHint alone.

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?

The purpose is front-loaded in the first sentence, and each subsequent sentence carries a distinct operational point with no filler. The prose is telegraphic and slightly run-on, but every clause earns its place.

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 no output schema, the description does the work of naming the return shape (verdict, flags, simulation.status) and, importantly, warns that the status is always not_run. It does not enumerate possible verdict values or flag categories, which is a moderate gap for a security-critical tool with nested inputs.

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%, so the schema already documents every parameter including the nested expectedTransaction fields and the walletAddress authorization caveat. The description's note that expectedTransaction must be independently captured largely restates the schema's own 'do not derive them from the transaction under review' instruction, adding little new meaning.

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: it checks unsigned EVM calldata, target, native value, and chain against Camp Guard policy. The domain is unambiguous, though it never distinguishes itself from siblings like simulate_swap_execution or analyze_protocol_risk, so the agent must infer which check applies.

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?

It conveys the intended workflow (call this before broadcast, supply expectedTransaction to detect substitution), which is real usage guidance. It stops short of saying when to prefer a sibling or what conditions make this tool unnecessary, so the routing decision is left implicit.

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