Skip to main content
Glama

Update Recommendation Status

update_recommendation_status
Idempotent

Update the status of a savings recommendation (PATCH /api/reports/cost-dashboard/recommendations/{recommendation_id}/status). Use to mark a recommendation as implemented, dismissed, in_progress, etc. The done/terminal status is "implemented" (banks the estimated savings); the legacy synonym "applied" is accepted and mapped to it. Optionally record notes, realized_savings (dollars, when implemented), and a dismissed_reason (when dismissing). Returns the updated record / ack. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "recommendation_id": "rec-123", "status": "implemented", "realized_savings": 240, "confirm": true }.

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>",
      "status": "<status>"
    },
    "name": "update_recommendation_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional free-text note to record with the status change (audit trail).
statusYesThe new status for the recommendation. Recognized values: "implemented" (done — banks the estimated savings), "in_progress", "in_review", "dismissed", "new". Note: the terminal/done status is "implemented" — the legacy synonym "applied" is accepted and mapped to it.
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
dismissed_reasonNoOptional reason to record when status is "dismissed" (e.g. "not applicable", "accepted risk").
realized_savingsNoOptional realized monthly savings (dollars) to record when marking a recommendation implemented.
recommendation_idYesThe id of the recommendation to update (substituted into PATCH /api/reports/cost-dashboard/recommendations/{recommendation_id}/status).

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?

Goes far beyond the annotations by disclosing all four gating conditions (admin:write scope, org-level AI agent switch, admin/super_admin role, confirm:true), the fact that MCP writes are off by default, that read-only cak_ keys can never perform it, and that failures are non-mutating and name the missing gate. It also tells the agent to relay the error rather than retry, which is exactly the behavioral context an agent needs. No contradiction with readOnlyHint=false, destructiveHint=false, or openWorldHint=true.

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 action, then status semantics, then optional fields, then the authorization block, then an example — a sensible ordering with no filler sentences. The endpoint path and the capitalized gating paragraph make it dense, but each carries information an agent would otherwise have to guess.

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 6-parameter write tool with no output schema, the description covers the return shape ('updated record / ack'), the full authorization chain, the confirm gate, and the status vocabulary. Nothing an agent needs to invoke it correctly is left implicit.

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 100%, so the baseline is 3, but the description adds real meaning: the 'applied' → 'implemented' mapping, that realized_savings is in dollars and only meaningful when implemented, that dismissed_reason applies when dismissing, and a complete worked example payload. The conditional semantics of confirm:true are reinforced rather than merely restated.

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?

Names a specific verb and resource ('Update the status of a savings recommendation'), gives the underlying endpoint, and enumerates the valid status values including the terminal one. An agent can tell this is a status-mutation tool rather than a general recommendation reader or a sibling updater like update_budget.

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?

States the use case explicitly ('mark a recommendation as implemented, dismissed, in_progress') and gives conditional guidance on which optional fields to supply when implementing versus dismissing. It stops short of naming a sibling alternative or an explicit when-not-to-use case, so it lands just below the top.

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