Skip to main content
Glama

incident_context

Read-only

Compare report snapshots from before and after a container restart to show changes in the incident container, ports, and surrounding state, with optional logs and timing caveats.

Instructions

One restart incident with what changed around it: the newest report snapshot before the incident compared with the first one after it, or with the current state when no report has run since, split into the changes to the incident's own container and its ports and everything else. The window is placed at the restart, and a change in it may have come after the incident; note says so, or why nothing was compared

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "incident_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoIncident ID, as watch_history returns it (give this or container)
serverNoRemote server name from config (optional, runs locally if omitted)
containerNoTarget name as watch_list shows it, matched exactly; its latest incident is used (give this or id)
include_logsNoInclude the logs captured before and after the restart (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses the comparison window, the fallback to current state when no report has run, how results are split, and an important caveat that changes may have occurred after the incident. It also explains that a note records this or why no comparison was possible.

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, and every clause contributes useful behavioral detail. The sentences are dense and somewhat convoluted, especially the long comparison clause, but they are not padded.

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 does a good job explaining the returned structure and important caveats around the comparison window. It is nearly complete for this tool, though it could have been slightly clearer about edge-case return behavior.

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 100%, so the input parameters are already well documented by the schema. The description does not add further parameter-level meaning; it mainly explains the returned context and comparison behavior.

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?

The description clearly states that this returns one restart incident plus the changes around it, with specific detail on the before/after snapshot comparison. It does not explicitly differentiate itself from sibling tools such as report or alerts, so it stops short of a 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?

Usage is implied: the tool is for inspecting a restart incident and what changed around it, and the schema states that either an incident id or container should be supplied. However, the description gives no explicit when-to-use or when-not-to-use guidance versus alternatives.

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