Skip to main content
Glama

get_protocol_risk_score

Read-onlyIdempotent

Evaluate DeFi protocol risk with a 0-100 score using TVL, contract age, audit count, and Immunefi status to assess contract and governance safety.

Instructions

Return a 0-100 risk score for a DeFi protocol, combining TVL size, 30-day TVL trend, contract age, audit count (DefiLlama), and Immunefi bug-bounty status. Higher = safer. The protocol argument is the DefiLlama slug — works for any chain DefiLlama covers, not just EVM (Solana: marinade-finance, jito, kamino, marginfi, drift; Tron: justlend, sun-io; EVM: aave-v3, uniswap-v3, etc.). Issue #243. SCOPE: this score measures PROTOCOL-LEVEL contract safety, governance, and audit posture (will-the-protocol-rug risk). It does NOT measure individual token upside, price direction, future returns, or 'will this 100x' potential. A high score means the protocol is unlikely to be hacked or exit-scam; it says NOTHING about whether tokens custodied by, traded through, governed by, or related to the protocol will appreciate in price. AGENT BEHAVIOR: this tool surfaces data; it does NOT pick. Use it ONLY for protocol due-diligence ("is Aave V3 safer than Compound V3 to deposit into?"). Do NOT use it to ground speculative token-pick answers — "what coin will 100x", "best memecoin", "should I buy X", "which token will moon". Refuse speculative-pick prompts even when this tool was called; do not present a high score as upside, endorsement, or investment recommendation. Issue #599.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYes
Behavior5/5

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

Annotations indicate readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds context beyond annotations by detailing what the score measures (contract safety, governance, audit posture) and what it does NOT measure (token upside, price direction). It also mentions issue numbers for context. No contradiction with annotations.

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 description is relatively long, but it is well-structured with front-loaded core purpose, followed by usage guidelines, scope clarifications, and explicit disclaimers. Every section adds value given the tool's risk profile and potential misuse, though it could be slightly more concise without losing important nuance.

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

Completeness3/5

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

The description covers the tool's scope and usage limitations extensively, but lacks details on the output format (e.g., whether the score comes with sub-scores or raw data). Given the simple input and no output schema, a brief description of the return structure would improve completeness. Error cases or common pitfalls are also not addressed.

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?

The input schema has one required parameter 'protocol' with only a type constraint (string, minLength 1) and no description. The description compensates by explaining that the parameter is a DefiLlama slug and provides examples for multiple chains (Solana, Tron, EVM). Although the schema coverage is 0%, the description adds meaningful context, though it could include more details like slug formatting.

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 clearly states the tool returns a 0-100 risk score for a DeFi protocol, combining multiple factors. It specifies that higher scores indicate safer protocols, and it distinguishes itself from sibling tools by focusing on protocol-level due diligence rather than specific chain operations or speculative token picks.

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?

The description explicitly states when to use the tool (for protocol due-diligence, e.g., comparing Aave V3 to Compound V3) and when not to use it (for speculative token picks, price direction, or investment recommendations). It provides clear exclusions and rationale, including explicit refusal of speculative prompts.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/vaultpilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server