Skip to main content
Glama

Cloud FinOps Skill & MCP

Current figures from an OptimToken guide

get_live_figures
Read-onlyIdempotent

Get the current value of a figure a reference quotes with a date.

Use this when a reference quotes a figure from an OptimToken guide
("measured on the 2026-10-25 OptimToken catalogue") and the answer needs
the current value: the Compute Savings Plan or reservation discount, the
gap between a flexible and a locked commitment, the ARM discount against
Intel and AMD, the share of LLM models with a batch rate. It fetches the
guide's figures file, rebuilt daily, and returns it as published.

Args:
    guide: The guide slug, lowercase letters, digits and hyphens. Guides
        with figures today: ``"savings-plans-vs-reserved-instances"``,
        ``"arm-against-x86"``, ``"batch-api-economics"``.

Returns ``{"document": {...}, "fetched_at": ..., "source": "live" |
"cached", "note": ...}``, plus ``cache_age_seconds`` when cached (six-hour
cache). ``document`` is the file unchanged: ``guide``, ``title``,
``url``, ``dataSource``, ``snapshotDate`` (the catalogue the figures come
from), ``dateModified`` and ``figures``, where discounts are fractions
(0.2743 is 27.4%) and each key names a median, a range or a count.

An unknown slug returns ``{"error", "available_guides", "suggestions"}``.
Any other failure (timeout, HTTP error, invalid JSON, a file that is not
figures and short labels) returns
``{"error", "fallback"}``: the dated figure in the reference then stands,
quoted with its date.

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": {
      "guide": "<guide>"
    },
    "name": "get_live_figures"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds substantive behavior beyond them: a six-hour cache with a live|cached source flag and cache_age_seconds, plus two distinct failure modes (unknown slug returning available_guides/suggestions, other failures returning an error with a fallback instruction to quote the dated figure).

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 purpose and trigger before mechanics, and every block is scannable. The long "Returns" paragraph partly restates what an existing output schema can convey, and the Args section is mildly redundant with the schema's required `guide` field, but the error-shape detail earns most of its length.

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 a one-parameter read tool, nothing material is missing: input format, known values, cache semantics, response shape, and both error paths are covered, including what the agent should do when the fetch fails.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single `guide` parameter has no description, so the definition carries the full burden and does so: it specifies the slug character set (lowercase letters, digits, hyphens) and enumerates currently valid slugs, which is more than the schema provides.

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 ("Get the current value of a figure a reference quotes with a date") and scopes it to OptimToken guide figures, which separates it from get_reference/get_playbook siblings that surface the reference itself rather than the live figure.

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 an explicit trigger ("when a reference quotes a figure from an OptimToken guide... and the answer needs the current value") plus concrete examples of the figure types covered. It never names an alternative or states when not to call it, so the fallback to the dated reference is only implied by the error-handling text.

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.