Skip to main content
Glama
Incident Lake MCP

Incident Lake MCP

Official
by sigq-io

export_incidents

Bulk export filtered incidents to a local CSV or Excel file. Apply status, severity, tag, and keyword filters, then save results with duplicate-safe filenames for reporting and analysis.

Instructions

Bulk export incidents to a spreadsheet file (CSV or Excel) saved locally. Supports many of the same filters as list_incidents (status, severity, tags, etc.). CSV supports UTF-8 or Shift-JIS encoding; Excel is always Unicode. If format is omitted, it is inferred from outputPath (.xlsx → xlsx, otherwise csv). Files are saved as incidents-YYYY-MM-DD. (same as Twinpower UI). Existing files are never overwritten — duplicates become "incidents-YYYY-MM-DD (1).". Returns the saved file path, byte size, content type, and resolved format.

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": {
      "outputPath": "<outputPath>"
    },
    "name": "export_incidents"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoKeyword search (name/status/source).
tagNoFilter by general tags (AND semantics: incident must have all listed tags).
langNoColumn-header language. Default: en.
formatNoFile format. When omitted, inferred from outputPath (.xlsx → xlsx, else csv). If set, must match a .csv/.xlsx extension when one is present.
sortByNoSort field (createdAt, updatedAt, name, status, severity, category, occurredAt).
statusNoFilter by one or more statuses (e.g. ongoing, resolved).
sortDirNoSort direction. Default: desc.
categoryNoFilter by category (system, security, operational).
encodingNoCSV byte encoding (ignored for xlsx). Default: utf8.
severityNoFilter by one or more severity levels (1-5).
serviceIdNoFilter by affected service id.
outputPathYesDestination directory or a sample file path used to choose the directory and format (e.g. "~/Downloads" or "~/Downloads/incidents.xlsx"). The actual filename is incidents-YYYY-MM-DD.<ext>; if that file already exists, a " (n)" suffix is added.
hasNarrativeNoInclude summary/timeline/postmortem columns. Default: false.
declareSourceNoFilter by declared source.
includeDrillsNoInclude drill (exercise) incidents. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the on-disk side effect, the deterministic filename pattern, an explicit non-destructive guarantee ("never overwritten" with " (n)" suffixes), encoding behavior per format, and the exact return payload (path, byte size, content type, resolved format). Only auth/permission requirements and large-export limits are unaddressed.

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 purpose, then format/encoding, then filename collision behavior, then return shape — a sensible order with no filler sentences. The format-inference rule is stated twice (once for format, once implicitly via the schema), which is minor redundancy.

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 15-parameter export tool with no output schema, the description covers the critical unknowns: where files land, naming, overwrite safety, encoding, and return fields. An agent can call this correctly without further exploration.

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 100%, so the baseline is 3; the description still adds value by explaining the format-inference rule from outputPath, the fact that encoding is irrelevant for xlsx ("Excel is always Unicode"), and that outputPath is a directory or sample path whose filename is replaced. Remaining parameters (q, tag, status, severity, sortBy) are left entirely to the schema.

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 ("Bulk export incidents") plus the output artifact (spreadsheet file, CSV or Excel, saved locally). This is clearly distinguishable from the read-oriented siblings like list_incidents and search_incidents.

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?

Positions the tool as the bulk/file-output counterpart to list_incidents by noting it supports "many of the same filters," which gives an agent a usable selection rule. It never states an explicit exclusion (e.g. "use list_incidents instead when you need results inline"), so it stops short of full when/when-not guidance.

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

Deploy Server

Other Tools