Skip to main content
Glama

Lantern Works GPU Prices

check_alerts

Hosted only. Evaluate every alert on your alert_token against the current feed. Each alert is fired, not_triggered, skipped_stale, not_in_feed or expired; new is false when the same price was already reported. renew=true first extends every unexpired alert to 30 days from now. Never fires on a held_stale row or a row whose last price verification is older than 48 hours (data_age_hours is measured from the row's verified_at, or checked_at if verified_at is missing, not from feed write time): those are listed in skipped_stale with would_have_crossed, and a crossing on stale data is not a fire. would_have_crossed is not stored; the next check_alerts re-evaluates the current feed, and a now-fresh row can fire then if the current price still crosses (that is not a delayed fire of the stale crossing).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
renewNo
alert_tokenNo

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
alertsYes
renewedNo
stale_ruleYes
fired_countYes
feed_updated_atNo
skipped_stale_countYes
prices_verified_throughNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true) by disclosing the full outcome taxonomy (fired, not_triggered, skipped_stale, not_in_feed, expired), the dedup rule that `new` is false for an already-reported price, and the mutation performed by renew=true. It also documents the staleness safety rule (never fires on held_stale or on data older than 48 hours, with data_age_hours measured from verified_at/checked_at) and clarifies that a stale would_have_crossed is not a delayed fire — exactly the mutation/idempotency context the annotations do not carry.

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

Conciseness3/5

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

The primary action and the renew precondition are front-loaded, which is good, but the body is a single dense paragraph with nested parentheticals (e.g. the verified_at/checked_at vs. feed write time clarification) that read like internal documentation. The final sentence restates the no-delayed-fire idea twice, and the whole block would be clearer split into outcome / renew / staleness sections.

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?

For a stateful, open-world evaluation tool with an output schema, the description covers outcomes, side effects, staleness handling and re-evaluation semantics thoroughly; return values need not be restated. The remaining gaps — the origin/format of alert_token and any auth or failure behavior beyond 'Hosted only' — are small but real.

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 0%, so the description must carry the load: it fully specifies renew (default behavior, 30-day extension applied before evaluation, only to unexpired alerts). alert_token is only implied as a scoping credential ('your alert_token') with no note on where it comes from (presumably create_alert/create_watch_key) or its format, leaving one of two parameters under-specified.

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 and resource ('Evaluate every alert on your alert_token against the current feed') plus the hosting constraint up front. This is unmistakably distinct from the sibling mutations (create_alert, delete_alert) and list/query tools, so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a precondition ('Hosted only') and a clear conditional action ('renew=true first extends every unexpired alert to 30 days from now'), which is useful when-to-use guidance for the parameter. However, it never states when-not to call it versus siblings such as create_alert or delete_alert, and the usage context is only implied by 'evaluate every alert'.

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.

Resources