Skip to main content
Glama

FarmDash Agent OS

run_risk_sentinel

Read-onlyIdempotent

Check swap-route or manual health and net-edge risk within route capacity. Supply both chain IDs, both tokens, and input amount for quoted mode, which requests a provider preview and returns riskReport and quotePreview. Otherwise the manual result contains health, netEdge, flags, and shouldHalt. A halt can publish an authorized risk alert. This action grants no trading authority.

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

Input Schema

NameRequiredDescriptionDefault
gasUsdNoEstimated gas in USD for a manual assessment.
toTokenNoERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match.
protocolNoOptional quoted-mode route provider, LI.FI or Relay.
slippageNoQuoted-mode tolerance in percentage points (0.5 means 0.5%).
fromTokenNoERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match.
toAddressNoOptional EVM destination recipient. Defaults to the supplied wallet if present.
toChainIdNoDestination EVM chain ID for quoted mode.
fromAmountNoInput token amount as an integer string in base units.
safetyModeNoRisk strictness mode for the quoted route assessment.
fromChainIdNoSource EVM chain ID for quoted mode.
bridgeFeeUsdNoEstimated bridge fee in USD for a manual assessment.
healthFactorNoCurrent lending health factor as a ratio.
riskBufferUsdNoAdditional modeled risk cost in USD.
walletAddressNoOptional EVM wallet for route context. Publishing halt alerts requires independent wallet authorization.
protocolFeeUsdNoEstimated protocol fees in USD for a manual assessment.
enforcePositiveNoTreat nonpositive or unknown net edge as a blocking risk when supported by the selected mode.
expectedUpsideUsdNoExpected gross upside in USD for net-edge analysis.
liquidationBufferPctNoEstimated headroom before liquidation in percentage points.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedInput schema / properties / bridgeFeeUsd / description
      Added value: +"Estimated bridge fee in USD for a manual assessment."
    • addedInput schema / properties / enforcePositive / description
      Added value: +"Treat nonpositive or unknown net edge as a blocking risk when supported by the selected mode."
    • addedInput schema / properties / expectedUpsideUsd / description
      Added value: +"Expected gross upside in USD for net-edge analysis."
    • addedInput schema / properties / fromAmount / description
      Added value: +"Input token amount as an integer string in base units."
    • addedInput schema / properties / fromChainId / description
      Added value: +"Source EVM chain ID for quoted mode."
    • addedInput schema / properties / gasUsd / description
      Added value: +"Estimated gas in USD for a manual assessment."
    • addedInput schema / properties / healthFactor / description
      Added value: +"Current lending health factor as a ratio."
    • addedInput schema / properties / liquidationBufferPct / description
      Added value: +"Estimated headroom before liquidation in percentage points."
    • addedInput schema / properties / protocol / description
      Added value: +"Optional quoted-mode route provider, LI.FI or Relay."
    • addedInput schema / properties / protocolFeeUsd / description
      Added value: +"Estimated protocol fees in USD for a manual assessment."
    • addedInput schema / properties / riskBufferUsd / description
      Added value: +"Additional modeled risk cost in USD."
    • addedInput schema / properties / safetyMode / description
      Added value: +"Risk strictness mode for the quoted route assessment."
    • addedInput schema / properties / slippage / description
      Added value: +"Quoted-mode tolerance in percentage points (0.5 means 0.5%)."
    • addedInput schema / properties / toAddress / description
      Added value: +"Optional EVM destination recipient. Defaults to the supplied wallet if present."
    • addedInput schema / properties / toChainId / description
      Added value: +"Destination EVM chain ID for quoted mode."
    • addedInput schema / properties / walletAddress / description
      Added value: +"Optional EVM wallet for route context. Publishing halt alerts requires independent wallet authorization."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is largely covered. The description adds real value beyond that by describing what each mode returns (riskReport/quotePreview vs health, netEdge, flags, shouldHalt) and by disclosing that a halt can publish an authorized risk alert, a side effect not captured by the annotations. It does not cover latency, rate limits, or failure behavior of the provider preview.

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 dense sentences with the mode split front-loaded and the output summaries following logically. Nearly every clause carries information; only the repeated 'both chain IDs, both tokens' phrasing could be tightened. No filler or restatement of the tool name.

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 18 optional parameters and no output schema, the description does the necessary work of mapping parameters to modes and summarizing both return shapes, which the structured fields cannot supply. The remaining gap is that it never explains what a 'flag' or 'netEdge' threshold means for a caller deciding to halt.

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 individual parameters are already documented, setting the baseline at 3. The description does add useful grouping by indicating which parameters constitute quoted mode versus the manual inputs, but it repeats rather than enriches the schema's per-field semantics (e.g., safetyMode, enforcePositive, liquidationBufferPct are explained in the schema, not here).

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+resource (check health and net-edge risk for a swap route or manual position) and clearly splits the tool into two operating modes: quoted mode versus manual assessment. It also disclaims trading authority, distinguishing it from execution siblings like execute_swap. It stops short of naming which sibling to use for adjacent risk work (e.g., analyze_protocol_risk, simulate_transaction_risk).

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?

Gives a concrete mode-selection rule: supply both chain IDs, both tokens, and input amount for quoted mode, otherwise the manual path applies. That is actionable when-to-use guidance internal to the tool. It offers no explicit exclusions against sibling risk tools, which keeps it from a 5.

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