Skip to main content
Glama

WatchFor

Create or update post-mortem

update_postmortem
Idempotent

Creates or fills the incident's post-mortem draft (write scope; any member may, as in the dashboard). Creates it with the dashboard template on first use, then applies only the fields sent: sections replaces just the sections named (markdown-lite: bold, code, "- " lists, ### sub-headings; "" empties one; other sections and custom headings stay untouched); title, severity (minor/major/critical: the impact), root_cause_category, status (draft/completed); add_timeline [{at ISO 8601, text}] and add_action_items [{title, due_date?}] append, skipping exact repeats. The incident's automatic events (started/acknowledged/resolved) already show in the post-mortem without timeline entries. Publishing to the status page and deleting are not available here (owner/admin, dashboard). Returns the post-mortem.

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": {
      "incident_id": "<incident_id>"
    },
    "name": "update_postmortem"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoPost-mortem title
statusNodraft or completed
sectionsNoText per section: summary, impact, root_cause, detection, resolution, what_went_well, what_could_have_gone_better
severityNoImpact: minor, major or critical; null clears it
incident_idYesIncident number, e.g. 2828
add_timelineNoTimeline entries to append
add_action_itemsNoAction items to append
root_cause_categoryNoRoot cause category; null clears it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the dashboard template is applied on first use, that only fields sent are applied, that `sections` replaces only the named sections while others and custom headings survive, that "" empties a section, and that timeline/action items append with exact-duplicate skipping. It also notes that automatic incident events already appear without timeline entries, which prevents redundant writes. This is exactly the kind of mutation semantics the annotations (destructiveHint=false, idempotentHint=true) cannot convey on their own.

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 core action and then layered with the semantics that matter, with essentially no filler sentences. The heavy use of nested parentheses and semicolons makes it dense to parse in one pass, but every clause carries information.

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 an 8-parameter mutation with nested objects and no output schema, the description covers creation behavior, partial-update semantics, formatting constraints, append/dedupe rules, and explicitly names what the tool cannot do. The closing 'Returns the post-mortem' is sufficient given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: the markdown-lite dialect supported in sections (**bold**, `code`, "- " lists, ### sub-headings), the empty-string clearing convention, the append-and-dedupe behavior of add_timeline and add_action_items, and that severity represents the impact. These are the details an agent would otherwise get wrong on first call.

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 and resource ('Creates or fills the incident's post-mortem draft') and immediately clarifies the create-or-update duality that the name alone leaves ambiguous. It is clearly distinguishable from the read-only sibling get_postmortem because it describes an in-place draft mutation.

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 explicit permission context ('write scope; any member may, as in the dashboard') and explicit exclusions ('Publishing to the status page and deleting are not available here (owner/admin, dashboard)'), which routes the agent away from attempting those actions. It stops short of naming a sibling tool for reading the draft, so it is clear but not fully comparative.

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.