Skip to main content
Glama

Institutional protocol & token circuit-breaker dossier

defi_protocol_tvl_check
Read-onlyIdempotent

Check DeFi protocol TVL shocks, paused/proxy status, DEX liquidity, and 48h exploit feeds before pausing or exiting a position.

Instructions

[$0.05] Trigger When: deciding whether to pause or exit a DeFi protocol. Workflow Outcome: checks paused/owner/proxy slots, bytecode, TVL shock, DEX liquidity, and 48h exploit feeds. Do not use for single-tx calldata simulation (use evm_tx_simulate), single-token honeypot scans (use token_honeypot_scan), or wallet borrow health (use defi_position_shield). Provide contract_address for on-chain paused()/proxy/DEX checks, protocol for DeFiLlama TVL shock, or both (omitting both returns 400). Live RPC/DeFiLlama/DexScreener, read-only non-custodial; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.

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

Input Schema

NameRequiredDescriptionDefault
chainNoEVM chain (base, ethereum, arbitrum, optimism)base
protocolNoDeFiLlama protocol slug (e.g. aave-v3, morpho)
session_tokenNoOptional prepaid session token (x402s_...) from https://apix402data.com/pay after the 10-call free preview.
contract_addressNo0x protocol or token contract address

Output Schema

NameRequiredDescriptionDefault
chainNo
flagsNo
ownerNo
cachedNo
bytecodeNo
degradedNo
endpointNo
protocolNo
risk_scoreNo
rpc_sourceNo
non_custodialNo
schema_versionNo
contract_pausedNo
owner_renouncedNo
contract_addressNo
defillama_tvl_usdNo
exploit_feed_hitsNo
recommended_actionNo
proxy_implementationNo
defillama_tvl_24h_pctNo
dex_top_liquidity_usdNo
circuit_breaker_trippedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, and non-destructive, but the description goes well beyond them: it discloses the upstream data sources (live RPC, DeFiLlama, DexScreener), the non-custodial read-only nature, the payment mechanism (x402 USDC or Stripe MPP), the 10-call lifetime free tier via /api/free/*, the 30-60 req/min rate limit, the $0.05 price, and the 400 error condition. That is exactly the added context annotations cannot carry.

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 trigger is front-loaded and the alternatives-and-parameters logic follows in a sensible order with no filler sentences; every clause (including price and rate limit) carries decision-relevant information. It is a single dense block, though, and the bracketed price prefix plus the workflow-outcome label add slight visual noise over plain prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema exists, return values need no explanation, and the description still covers auth/payment, rate limits, cost, error behavior, parameter routing, and sibling exclusions for a complex multi-source read tool. Nothing an agent needs to select or invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so a 3 would be baseline, but the description adds real routing semantics: contract_address drives on-chain paused()/proxy/DEX checks while protocol drives DeFiLlama TVL shock, and both are legal together. It also explains the 400 failure mode when both are omitted, which the schema does not state. The only gap is that chain and session_token are not elaborated beyond their schema text.

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 capability set — paused/owner/proxy slots, bytecode, TVL shock, DEX liquidity, 48h exploit feeds — which is far more concrete than the title's marketing phrasing. It also explicitly separates itself from three named siblings, so an agent can distinguish it from evm_tx_simulate, token_honeypot_scan, and defi_position_shield without opening any schema.

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

Usage Guidelines5/5

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

It provides an explicit trigger ('deciding whether to pause or exit a DeFi protocol') plus three explicit exclusions paired with the correct alternative tool for each. This is the strongest form of routing guidance available in a description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.