Skip to main content
Glama

x402, crypto, defi, base, usdc, evm, security, sec-edgar, news, web-search

Institutional protocol & token circuit-breaker dossier

workflow_protocol_audit
Read-onlyIdempotent

[$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 vetting (use workflow_tx_guardian) or wallet borrow health (use workflow_defi_shield). Provide contract_address for on-chain paused()/proxy/DEX checks, protocol for DeFiLlama TVL shock, or both. 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": "workflow_protocol_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoEVM chain (base, ethereum, arbitrum, optimism)base
protocolNoDeFiLlama protocol slug (e.g. aave-v3, morpho)
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. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent and non-destructive, but the description adds genuinely new operational facts: live RPC/DeFiLlama/DexScreener sources, non-custodial posture, x402 USDC or Stripe MPP payment with 10 free lifetime calls, and a 30-60 req/min rate limit. It stops short of saying what happens on partial input or how a shock threshold is judged, so it is strong but not exhaustive.

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?

It is one dense block but clearly front-loaded with the trigger condition, then outcome, then exclusions, then parameter mapping, then runtime/auth facts. The bracketed price and free-tier marketing add bulk, but the rest of the sentences each carry distinct, useful information.

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?

With a full-schema, zero-required-parameter tool that has an output schema and rich annotations, the description covers the remaining burden: trigger, alternatives, source systems, payment/auth, and rate limits. Nothing material to correct invocation appears 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 the baseline is 3, and the description goes beyond it by mapping each optional parameter to the data it unlocks: contract_address drives on-chain paused()/proxy/DEX checks, protocol drives DeFiLlama TVL shock, and either or both may be supplied. That mapping is the main thing an agent needs to pick arguments, though it does not explain how chain interacts with the address checks.

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 the specific checks performed (paused/owner/proxy slots, bytecode, TVL shock, DEX liquidity, 48h exploit feeds) and frames the deliverable as a circuit-breaker dossier, which is far more than a restatement of the name. It also explicitly separates itself from workflow_tx_guardian and workflow_defi_shield, so an agent can route without opening sibling schemas.

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?

"Trigger When: deciding whether to pause or exit a DeFi protocol" gives the positive condition, and "Do not use for single-tx calldata vetting (use workflow_tx_guardian) or wallet borrow health (use workflow_defi_shield)" gives both exclusions and the named alternatives. This is the full when/when-not/alternative pattern.

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