Skip to main content
Glama

Approve or decline a source repair

decide_repair
DestructiveIdempotent

Approve or decline a source repair from list_repairs, the same as the app. Approving replaces the broken source and the alert’s estimate becomes the proposed one, so show the person both estimates and the notice first. Declining leaves the alert paused. Needs the exact quote_revision; it fails if anything changed.

Permission: monitoring:manage. Ask the person before calling.

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": {
      "alert_id": "<alert_id>",
      "repair_id": "<repair_id>",
      "decision": "<decision>",
      "quote_revision": "<quote_revision>"
    },
    "name": "decide_repair"
  }
}

Input Schema

NameRequiredDescriptionDefault
alert_idYesAlert ID.
decisionYes
repair_idYesRepair ID from list_repairs.
quote_revisionYesquote_revision from list_repairs.

Output Schema

NameRequiredDescriptionDefault
dataNo

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 destructiveHint=true and openWorldHint=true, yet the description still adds the concrete outcome (the broken source is replaced and the alert's estimate becomes the proposed one), the decline outcome (alert stays paused), the permission required (monitoring:manage), and the optimistic-concurrency failure mode ('fails if anything changed'). That is substantive behavior beyond the annotation flags rather than a restatement of them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Roughly 60 words, front-loaded with the action and its source, then consequences, then validation, then the permission gate. No sentence is filler; even the short clause about showing estimates carries an instruction the agent must act on.

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 destructive, permission-gated mutation with four required parameters, the description covers the input source, both branch outcomes, the pre-call human confirmation requirement, and the concurrency failure mode. An output schema exists, so return values need no explanation here.

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 75% and the description supplies the missing meaning: quote_revision must be 'exact' and is a staleness guard, repair_id traces back to list_repairs, and alert_id is implied by the alert-scoped effect. 'From list_repairs' partly duplicates the schema's own phrasing, so the added value is real but not exhaustive (decision semantics come only from the enum).

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 pair and resource ('Approve or decline a source repair'), names the sibling that produces the input IDs ('from list_repairs'), and pins scope with 'the same as the app.' An agent can distinguish this from approve_alert_creation/approve_check-style siblings without opening any 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 clear preconditions: obtain the repair from list_repairs, 'show the person both estimates and the notice first,' and 'Ask the person before calling.' It also frames the approve/decline fork by consequence (source replaced vs. alert left paused). There is no explicit statement of when not to use it, which keeps it below a 5.

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