Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_ir_roles_get

Read-onlyIdempotent

Retrieve the incident-response role mapping for a 12-digit AWS account ID; in fleet mode include agent_id, while core mode omits it. Read-only lookup.

Instructions

Get the IR role mapping for a 12-digit AWS account id. Read-only.

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": {
      "aws_account_id": "<aws_account_id>"
    },
    "name": "opencdr_ir_roles_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNo
aws_account_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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so 'Read-only' adds nothing new. The genuinely additive behavioral detail is the fleet-vs-core mode dependence of agent_id, which explains why a mode would change the call.

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?

Three short, front-loaded sentences with no filler; the resource and key format come first and the mode caveat follows. The 'Read-only' sentence is the one line that duplicates an annotation rather than earning its space.

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?

For a two-parameter read tool with no output schema and no nested objects, both parameters receive guidance and the mode split is covered. The only modest gap is that the description never characterizes what a role mapping contains, which would help an agent interpret the result.

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 burden. It does add real meaning for both parameters ('12-digit' format on aws_account_id, explicit supply/omit rule for agent_id), but it never says what happens if agent_id is passed in core mode or omitted in fleet mode.

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 the IR role mapping') plus the keying dimension ('for a 12-digit AWS account id'), which implicitly separates it from the list-style sibling opencdr_ir_roles_list. It stops short of naming that sibling explicitly, so the differentiation requires a small inference.

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 concrete conditional guidance tied to deployment mode: supply agent_id in fleet mode, leave it unset in core mode. That is real when-to-do-what guidance, though it does not state when to prefer the list sibling or what error to expect on a wrong key.

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