Skip to main content
Glama

Get protocol risk

get_protocol_risk
Read-onlyIdempotent

Protocol-level risk card (age, audit signals, curated known issues, category, score 0–100).

Chain: pass list_yields opportunities[].protocolSlug as protocol or protocolSlug. Display names also resolve case- and space-insensitively via DefiLlama protocol metadata (e.g. "Compound V3" → compound-v3, "Curve" → curve-dex, "Euler V2" → euler-v2).

Unknown names return NOT_FOUND naming the field, with example {"protocolSlug":"aave-v3"} and up to 3 closest slugs.

Higher score = lower protocol risk. Uses curated priors plus DefiLlama metadata when available.

Research only — non-custodial.

Example: { "protocol": "aave-v3" } Also accepts protocolSlug or a display name such as "Compound V3".

Input Schema

NameRequiredDescriptionDefault
protocolNoProtocol slug (DefiLlama project id) or display name, e.g. "aave-v3" or "Compound V3". Prefer list_yields opportunities[].protocolSlug.
protocolSlugNoAlias for protocol — list_yields opportunities[].protocolSlug (display names also resolve).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / protocol / description
      Previous value: -"Protocol slug (DefiLlama project id), e.g. \"aave-v3\". Same as list_yields opportunities[].protocolSlug."New value: +"Protocol slug (DefiLlama project id) or display name, e.g. \"aave-v3\" or \"Compound V3\". Prefer list_yields opportunities[].protocolSlug."
    • changedInput schema / properties / protocolSlug / description
      Previous value: -"Alias for protocol — list_yields opportunities[].protocolSlug."New value: +"Alias for protocol — list_yields opportunities[].protocolSlug (display names also resolve)."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior. The description adds meaningful context beyond annotations: score direction, data sources, display-name normalization, NOT_FOUND behavior with closest slugs, and the non-custodial research scope.

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 front-loaded with the core purpose and remains information-dense. It has minor redundancy at the end, repeating that protocolSlug and display names are accepted, but no major wasted space.

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?

For a two-parameter read-only tool with no output schema, the description is complete: it describes the returned risk card, score direction, input sourcing, alias resolution, and error behavior. An agent has enough information to invoke it correctly.

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 both parameters are already documented. The description still adds useful semantics: protocol and protocolSlug are aliases, display names resolve case- and space-insensitively, and examples such as 'Compound V3' clarify accepted input formats.

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?

The description clearly states it returns a protocol-level risk card with specific contents and a score scale. It distinguishes protocol-level risk from opportunity-level scoring only implicitly via the word 'protocol-level' and does not explicitly name siblings such as score_opportunity or compare_opportunities.

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 gives a concrete chaining instruction: pass list_yields opportunities[].protocolSlug as protocol or protocolSlug. It also explains display-name resolution and unknown-name handling, but does not explicitly say when to use this versus score_opportunity or explain_score.

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.