Skip to main content
Glama

FarmDash Agent OS

audit_allowance_risk

Read-onlyIdempotent

Review caller-supplied ERC-20 allowances for unlimited, unverified, insufficient, or disproportionate approvals. Returns verdict, flags, and requiresUserConfirmation within route capacity. It does not revoke approvals or read live allowances. A halt can publish an authorized risk alert.

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": "audit_allowance_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
allowancesNoApproval observations supplied by the caller. Populate each row with token, spender, allowance, and requiredAmount for a usable review.
walletAddressNoOptional public EVM wallet for context. Halt alerts require separate wallet authorization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / allowances / description
      Added value: +"Approval observations supplied by the caller. Populate each row with token, spender, allowance, and requiredAmount for a usable review."
    • addedInput schema / properties / allowances / items / properties / allowance / description
      Added value: +"Observed allowance as an integer string in token base units."
    • addedInput schema / properties / allowances / items / properties / amountUsd / description
      Added value: +"Estimated USD value of the approval exposure."
    • addedInput schema / properties / allowances / items / properties / requiredAmount / description
      Added value: +"Positive intended spend as an integer string in the same base units."
    • addedInput schema / properties / allowances / items / properties / spender / description
      Added value: +"EVM address entitled to spend the allowance."
    • addedInput schema / properties / allowances / items / properties / token / description
      Added value: +"ERC-20 token contract address."
    • addedInput schema / properties / walletAddress / description
      Added value: +"Optional public EVM wallet for context. Halt alerts require separate wallet authorization."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description is not carrying the full safety burden; it still adds real value by disclosing the return shape (verdict, flags, requiresUserConfirmation), the route-capacity limit, and that a halt may publish an authorized risk alert — a side effect an agent would not infer from readOnlyHint alone. No permission or rate-limit details beyond route capacity are given.

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?

Four short sentences, front-loaded with the screening purpose and followed by return values and boundaries — no filler. Minor jargon like "within route capacity" is left undefined, which slightly blunts an otherwise tight structure.

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 right thing by naming what comes back (verdict, flags, requiresUserConfirmation) and by setting negative boundaries. For a two-parameter read-only analysis tool that is largely sufficient; only the meaning of individual allowance fields and the alert-publication conditions remain thin.

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% and every nested field is documented in the schema itself, so the baseline of 3 applies. The description adds only the framing that rows must be usable per token/spender/allowance/requiredAmount, which the schema already says, and never explains amountUsd or spenderVerified semantics.

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?

The description names a specific verb (Review) plus the exact resource (caller-supplied ERC-20 allowances) and enumerates the four risk conditions it screens for: unlimited, unverified, insufficient, disproportionate. That resource framing separates it from siblings such as audit_sybil_risk or analyze_protocol_risk without needing their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the calling precondition clearly — allowances are caller-supplied, so the agent must gather observations first — and rules out two adjacent behaviors (it does not revoke approvals, nor read live allowances). It stops short of naming which sibling to use when live allowance data is actually needed, so the routing is implied rather than explicit.

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