Skip to main content
Glama
danteriva45-hub

DeFi Intelligence Engine

yield_alert_set

Register an APY threshold alert for a DeFi yield opportunity. Get notified when the best yield exceeds your set threshold, without polling continuously.

Instructions

Register an APY threshold alert. Returns alert_id to check later. FREE.

Fires when get_best_yield finds an opportunity exceeding threshold_apy. Use yield_alert_check with alert_id to poll status. Use yield_alert_delete to remove. Alerts persist in server memory.

Use this when: an agent wants to be notified when a yield opportunity opens without continuously calling get_best_yield.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesToken to monitor: 'USDC', 'USDT', 'ETH', 'DAI'
threshold_apyYesAlert when best yield exceeds this APY. Example: 6.0
risk_profileNo'safe', 'moderate', or 'max_yield'moderate
chainNo'all' or specific chain: 'Ethereum', 'Arbitrum', 'Base'all

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description discloses key behaviors: alert fires when get_best_yield finds an opportunity exceeding threshold_apy, returns alert_id, persists in server memory, and is free. It lacks details on persistence duration or rate limits, but covers the essential traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with the core action. It uses short sentences to convey key points without redundancy, making it easy to parse quickly.

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?

Given the simple nature of the tool and the presence of an output schema, the description covers the trigger condition, return value, lifecycle, and usage context. It does not discuss error handling, but that is acceptable for this tool.

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 description coverage is 100%, so the schema already documents parameters. The description adds minimal extra meaning beyond stating that threshold_apy triggers the alert and risk_profile affects yield calculations, which is consistent with the schema.

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 registers an APY threshold alert, returns an alert_id, and explicitly distinguishes it from sibling tools like yield_alert_check, yield_alert_delete, and yield_alerts_list.

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?

The description provides explicit use cases: 'Use this when: an agent wants to be notified... without continuously calling get_best_yield.' It also mentions related tools for checking and deleting alerts, but does not explicitly state when not to use it.

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/danteriva45-hub/defi-yield-engine'

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