Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_ir_actions_get

Read-onlyIdempotent

Retrieve a specific executed incident-response action by detection ID, including rollback support and status details. Use it to check whether an action was rolled back and why.

Instructions

Get a specific executed IR action. Read-only.

Includes rollback_supported and, once a rollback has been attempted, rollback_status ("pending"/"succeeded"/"failed"), rollback_error (set only on failure), and rollback_updated_at. rolled_back mirrors rollback_status == "succeeded" for back-compat; absent rollback_status means no rollback has been attempted yet.

In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset.

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": {
      "detection_id": "<detection_id>"
    },
    "name": "opencdr_ir_actions_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNo
detection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Agent Id"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive semantics, and the description adds genuinely new behavioral detail: the rollback lifecycle fields, their allowed values, when rollback_error appears, and the back-compat meaning of rolled_back. The "absent rollback_status means no rollback attempted" clarification is exactly the kind of state semantics an agent cannot get from annotations.

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 purpose is front-loaded in the first clause, then return semantics, then the mode-specific parameter rule — a sensible order with no filler. The fragmented line breaks make it slightly less scannable than it could be.

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 no output schema, the description wisely spends its space enumerating the return fields and their states, which is the main completeness risk for this tool. Minor gaps remain around not-found behavior and how a detection_id maps to an executed action, but nothing an agent needs to invoke it correctly is missing.

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 carries the full burden. It does well on agent_id (fleet mode requires it, core mode leaves it unset), but detection_id — the one required parameter — gets no explanation of its format or provenance.

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?

States a specific verb and resource ("Get a specific executed IR action"), which clearly separates it from the sibling list tool (opencdr_ir_actions_list) by the singular "specific" framing. It stops short of naming the alternative explicitly, so it lands at 4 rather than 5.

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?

"Read-only" plus the fleet-mode vs core-mode rule gives real conditional guidance for invocation, but only at the parameter level. There is no explicit statement of when to call this instead of the list endpoint or how to obtain a valid action identifier, leaving the selection context implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.