Skip to main content
Glama

Alert text to an alert recipe: turn a sentence like "BTC funding above 0.05%" into the recipe it describes

parse_alert_text
Read-only

Translates plain-English crypto alert descriptions into exact rule recipes, returning conditions, symbols, channels, confidence, and open questions for user confirmation before creation.

Instructions

Call this when the user describes an alert in words ("tell me when ETH drops 5% in a day", "BTC funding above 5 bps", "liquidations over $20M in an hour") and you want the exact recipe before creating it. Rule based, nothing is saved: returns recipe (name, scope, symbols, conditions of field, op, value, cooldownHours, channels) or null, confidence 0..1, a one-line summary to confirm with the user, and unresolved (what the text left open or what was assumed; timing words are not part of a recipe). A threshold the text does not state is never invented. English and tickers; at most 500 characters. Pass the returned conditions, scope, symbols and channels to create_alert_recipe once the user agrees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesstring, the alert in plain English, e.g. "SOL funding below -0.01% or OI up 10%"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.31.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark it read-only and closed-world, and the description adds substantial context beyond them: rule-based parsing, nothing is saved, returns recipe-or-null with confidence, a confirmation summary and unresolved assumptions, and the key guarantee that an unstated threshold is never invented. This is exactly the behavioral detail an agent needs before calling.

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 trigger condition is front-loaded and the return contract follows immediately. It is dense and the enumeration of return fields and caveats makes sentences long, but every clause carries information an agent needs.

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 no output schema, the description fully documents the return shape (recipe fields, null case, confidence, summary, unresolved) and the input limits, so an agent can both call and interpret the result without additional sources.

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?

With a single parameter at 100% schema coverage the baseline is 3, and the description goes beyond the schema by constraining input to English with tickers and a maximum of 500 characters, plus inline examples of acceptable phrasing.

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 name plus description state a specific verb and resource: converting a natural-language alert sentence into a structured alert recipe before creation. It is clearly distinguishable from siblings such as create_alert_recipe and list_alert_recipes.

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?

It gives an explicit trigger ('Call this when the user describes an alert in words ... and you want the exact recipe before creating it') and names the follow-up action, passing the returned conditions/scope/symbols/channels to create_alert_recipe once the user agrees. When-not-to-use is implicit but the routing to the sibling is unambiguous.

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