Skip to main content
Glama

Get Recommendation History

get_recommendation_history
Read-only

Fetch the status-change history of a single savings recommendation (GET /api/reports/cost-dashboard/recommendations/{recommendation_id}/history). Each entry carries the status (and previousStatus), any notes, realizedSavings, dismissedReason, and changedAt — the audit trail behind update_recommendation_status. Use response_format="concise" (default) or "detailed"; limit caps the list. Read-only. Example: { "recommendation_id": "rec-123" }.

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": {
      "recommendation_id": "<recommendation_id>"
    },
    "name": "get_recommendation_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return (default: no cap beyond the truncation guard).
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise
recommendation_idYesThe id of the recommendation whose status history to fetch (substituted into GET …/recommendations/{id}/history). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description confirms read-only while adding substantive detail: the exact entry fields returned (status, previousStatus, notes, realizedSavings, dismissedReason, changedAt) and the fact that limit caps the list. It does not discuss pagination or failure modes, but for a read-only history fetch this is strong disclosure.

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-loads verb, resource, and endpoint, then moves to return fields and parameter usage with an inline example. It is dense but every clause carries information; only the raw endpoint path is arguably redundant.

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 compensates by enumerating the returned fields clearly. Combined with format/limit guidance, read-only confirmation, and a usage example, an agent has everything needed to call this correctly.

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 coverage is 100%, so all three parameters are already documented in the schema, including the response_format enum and limit bounds. The description restates the format options and limit purpose and supplies a call example for recommendation_id, adding convenience but little meaning beyond the schema — baseline 3.

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 ('Fetch the status-change history of a single savings recommendation') and even pins the endpoint path. It differentiates itself from the sibling update_recommendation_status by framing itself as the audit trail behind that mutation.

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?

Clearly establishes the context in which this tool applies — inspecting the audit trail behind a status update — and explains the concise vs. detailed format tradeoff plus the limit cap. It stops short of an explicit 'use X instead of Y when...' exclusion, but the single-recommendation scope is unambiguous.

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