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.

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

Research only — non-custodial.

Example: { "protocol": "aave-v3" } Also accepts protocolSlug.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolNoProtocol slug (DefiLlama project id), e.g. "aave-v3". Same as list_yields opportunities[].protocolSlug.
protocolSlugNoAlias for protocol — list_yields opportunities[].protocolSlug.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=true, idempotentHint=true, destructiveHint=false; the description reinforces this with 'Research only — non-custodial' with no contradiction. Crucially it adds the non-obvious inverted scale ('Higher score = lower protocol risk') and the provenance ('curated priors plus DefiLlama metadata when available'), both valuable beyond what annotations provide.

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?

Purpose is front-loaded in the first line, followed by chaining guidance, scale semantics, provenance, safety note, and a concrete JSON example — all in a compact block. It's efficient with minor redundancy ('Also accepts protocolSlug' repeats what the example and schema already show), keeping it just short of a 5.

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?

The tool has non-obvious traits — an inverted score scale, a dual alias parameter, and a chaining dependency — and the description covers all of them. It lists expected output components since no output schema exists, and includes a runnable example. Complete enough for correct invocation, with only minor gaps like explicit when-not-to-use guidance.

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 both parameters (protocol, protocolSlug) are already fully documented with descriptions, examples, and the alias relationship in the schema itself. The description adds marginal value by reiterating the alias ('Also accepts protocolSlug') and the chaining origin, but the schema does the heavy lifting. Baseline 3 applies.

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?

States a specific verb-resource pair: retrieves a 'Protocol-level risk card' listing concrete components (age, audit signals, curated known issues, category, score 0–100). It explicitly scopes to protocol-level rather than opportunity-level risk, distinguishing it from score_opportunity and compare_opportunities among the siblings. The purpose is unambiguous and differentiated.

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?

Provides clear workflow context: 'Chain: pass list_yields opportunities[].protocolSlug as protocol or protocolSlug', telling the agent exactly where this tool fits in a pipeline and what input to feed it. It also notes the 'Research only — non-custodial' nature. However, it never names an alternative tool or states when NOT to use it, so exclusions are left implicit.

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.

TDQS

A4.2/5.0
Disambiguation4/5

The tools are mostly distinct: list_yields for ranking, score_opportunity for detailed scoring of one, explain_score for explaining a score, compare_opportunities for side-by-side comparison, get_protocol_risk for protocol-level risk, and health for connectivity. However, score_opportunity and explain_score have overlapping purposes (both return factor scores and rationale), which could cause some confusion, though they serve different output formats.

Naming Consistency4/5

The naming pattern is mostly consistent using verb_noun (e.g., list_yields, get_protocol_risk, explain_score, compare_opportunities, score_opportunity). One deviation: 'health' is a single-word name that breaks the verb_noun pattern, but it's a minor deviation and still readable.

Tool Count5/5

With 6 tools, this is well-scoped for a yield research server. Each tool has a distinct role: listing, scoring, explaining, comparing, protocol risk, and health check. The count feels appropriate for the domain, not overly heavy or thin.

Completeness3/5

The server covers core research needs: listing opportunities, detailed scoring, explanation, comparison, protocol risk, and health check. However, there are some minor gaps: no direct way to filter by specific pool ID without first listing, no tool to get historical trends or detailed market info beyond the scoring. But the domain is research-only non-custodial, so a full CRUD lifecycle isn't expected; still, a tool to fetch specific opportunity details without scoring could be missing.