Skip to main content
Glama

Lantern Works GPU Prices

create_alert

Hosted only, free, opt-in, poll-only (no webhook, no email, no account). Create a price alert on a stable rate_id (from compare_gpu_prices) OR a gpu filter (all words must match the model; optional vendor, vram_gb, tiers) with threshold_usd (USD per GPU-hour) and direction 'below' (default, at or below) or 'above' (at or above). Returns an alert_token ONCE when you do not pass one (store it; only its hash is kept) and expires_at (30 days; check_alerts renew=true extends it). Poll check_alerts after the feed refresh (daily ~10:23 UTC). 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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "threshold_usd": "<threshold_usd>"
    },
    "name": "create_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuNo
tiersNo
vendorNo
rate_idNo
vram_gbNo
directionNo
alert_tokenNo
threshold_usdYes

Output Schema

NameRequiredDescriptionDefault
okYes
alertYes
errorNo
limitsYes
evaluationNo
shown_onceNo
stale_ruleYes
alert_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false and openWorldHint=true; the description adds substantial behavior beyond that: the token is returned once and only its hash is retained, alerts expire in 30 days, and firing is suppressed on held_stale rows or rows whose price verification is older than 48 hours. It even clarifies the non-obvious rule that would_have_crossed is not persisted and a later fresh row can fire independently, which prevents the agent from misreading a stale crossing as a delayed fire.

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?

Front-loaded with the most decision-relevant facts (hosted/poll-only, then the two targeting modes), and nearly every sentence carries operational value. The final sentence on would_have_crossed is long and reads partly as check_alerts documentation, but it earns its place by disambiguating fire semantics.

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 an 8-parameter, open-world mutation with a zero-coverage schema, the description covers creation inputs, token custody, expiry, polling cadence, and the stale-data suppression rules. An output schema exists, so return-shape detail is not required, and the description still notes the key returned fields (alert_token, expires_at).

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 description coverage is 0% across 8 parameters, so the description carries the load, and it does most of it: rate_id provenance, gpu match semantics ('all words must match the model'), optional vendor/vram_gb/tiers, threshold_usd units (USD per GPU-hour), and direction's default and inclusive boundary. 'tiers' and 'vendor' are only listed without explaining accepted values, and the alert_token parameter's reuse semantics are only implied by 'when you do not pass one'.

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 ('Create a price alert') and immediately names the two acceptable targeting modes (stable rate_id from compare_gpu_prices, or a gpu filter). The 'hosted only, free, opt-in, poll-only' qualifier distinguishes it from a webhook/email-style alerting sibling without the agent needing to open a schema.

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?

Gives concrete operational guidance: poll check_alerts after the daily ~10:23 UTC feed refresh, and use check_alerts renew=true to extend expiry. It also states the delivery constraint (no webhook, no email, no account), which implies the agent must poll rather than expect a push. It does not explicitly say when to choose this over other alert-like siblings, so the when-not case is inferred rather than stated.

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