Skip to main content
Glama

Lantern Works GPU Prices

get_price_trend

Read-only

7-day and 30-day price trend for one stable rate_id (from compare_gpu_prices), among tracked providers only.

Reuses the existing daily snapshots in /api/v1/gpu-prices/history.json: percent change, direction (up/down/flat), and how many ranked snapshot days were in the window. A trend is never computed from held_stale, no_source, or stale (older than 48 hours / undated) current rows; then trend is null with trend_reason. Current sold_out does not blank windows: they use the same verified-day history math as compare_gpu_prices. A window with too few ranked days is returned with reason insufficient_points; a window longer than the archive is window_exceeds_history. Missing snapshot days are not invented. All timestamps are UTC with a Z. windows defaults to [7, 30].

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": {
      "rate_id": "<rate_id>"
    },
    "name": "get_price_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNofull
rate_idYes
windowsNo

Output Schema

NameRequiredDescriptionDefault
okYes
gpuNo
modeNo
tierNo
as_ofNo
errorNo
trendNo
vendorNo
rate_idNo
vram_gbNo
windowsNo
gpu_countNo
trend_reasonNo
last_snapshotNo
first_snapshotNo
referral_disclosureNoOne-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses exactly which source rows are excluded (held_stale, no_source, stale older than 48 hours, undated), that trend becomes null with trend_reason in those cases, and that current sold_out does not blank windows. It also names the specific degradation reasons (insufficient_points, window_exceeds_history) and states that missing snapshot days are not invented and timestamps are UTC with a Z.

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 scoping constraint and the sibling reference are front-loaded, and nearly every sentence adds behavioral information rather than restating the schema. The middle section is dense with edge-case vocabulary (held_stale, no_source, insufficient_points) that could have been tightened, but nothing is truly wasteful.

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?

With an output schema present, return-value detail is unnecessary, and the description still explains the null/trend_reason semantics an agent needs to interpret it. The remaining gap is the undocumented 'mode' parameter; otherwise the edge-case coverage is unusually thorough for a read-only lookup.

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 0%, so the description has to carry the parameter meaning. It does well for rate_id (stable id sourced from compare_gpu_prices) and windows (defaults to [7, 30]), but the 'mode' parameter is never mentioned anywhere, leaving one of three parameters entirely opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-and-resource statement ('7-day and 30-day price trend for one stable rate_id'), names the scope ('among tracked providers only'), and points at compare_gpu_prices as the source of the identifier. It stops short of explicitly distinguishing itself from the sibling get_price_changes, so an agent still has to infer which of the two it wants.

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?

Usage is implied rather than stated: rate_id must come from compare_gpu_prices, and the tool only covers tracked providers. There is no explicit 'use this when / use X instead' routing, and the likely-overlapping sibling get_price_changes is never mentioned, so the agent must reason about the boundary itself.

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