Skip to main content
Glama

analyze_iec61850

Read-only

Analyze IEC 61850 packet captures for GOOSE, SV, or MMS protocol health and return a worst-first OK/WARN/FAIL summary per source to detect sequence, timing, and request/response issues.

Instructions

Analyze an IEC 61850 capture for protocol health and return a compact, worst-first OK/WARN/FAIL report per source. protocol is one of 'goose' (stNum/sqNum gaps, timeAllowedtoLive violations, state-change storms), 'sv' (smpCnt continuity, loss of time sync, confRev changes), or 'mms' (error/reject PDUs, unpaired requests, slow responses). Streams matching frames and returns a bounded summary.

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": {
      "file_path": "<file_path>",
      "protocol": "<protocol>"
    },
    "name": "analyze_iec61850"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoOptional display filter ANDed with the protocol filter to scope to one gocbRef/svID/host (e.g. goose.gocbRef contains "gcb01"). Filters on sequence numbers, timestamps, or PDU types can hide packets needed to detect gaps, TTL violations, and request/response pairs accurately.
protocolYesIEC 61850 protocol to analyze
file_pathYesPath to the .pcap or .pcapng file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / properties / filter / description
      Previous value: -"Optional display filter ANDed with the protocol filter to scope to one gocbRef/svID/host (e.g. goose.gocbRef contains \"gcb01\")"New value: +"Optional display filter ANDed with the protocol filter to scope to one gocbRef/svID/host (e.g. goose.gocbRef contains \"gcb01\"). Filters on sequence numbers, timestamps, or PDU types can hide packets needed to detect gaps, TTL violations, and request/response pairs accurately."
  2. Addedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavior beyond that: output is a compact, worst-first OK/WARN/FAIL report grouped per source and is a "bounded summary" produced by streaming matching frames, which tells the agent results are aggregated and truncated rather than exhaustive. It stops short of stating limits/timeouts or the report's field structure.

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 purpose and the per-protocol breakdown in a single dense parenthetical, then closes with output shape. Every clause carries information, though the protocol parenthetical is long enough that it reads as a run-on.

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 carries the return-value burden and does reasonably well by describing the report's grouping, severity ordering, and bounded nature. Gaps remain around output fields, size/time limits for large captures, and error behavior for non-61850 files, which matter for a whole-file analysis tool.

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, but the description adds meaning the schema lacks: it spells out the detection semantics behind each protocol enum value, letting the agent pick the mode intelligently. The filter caveat about sequence numbers/timestamps hiding gap evidence is useful but is largely mirrored in the schema's own filter description.

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 ("Analyze an IEC 61850 capture for protocol health") and then enumerates exactly what is checked in each of the three protocol modes (stNum/sqNum gaps, smpCnt continuity, error/reject PDUs, etc.). This is far more specific than the neighboring list/stat siblings and lets an agent tell immediately whether this tool answers its question.

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?

The description makes it clear which protocol values exist and what each checks, so usage for each mode is implied. However, it never states when to prefer this over siblings such as protocol_stats, stats_by_proto, or summarize_pcap, nor any preconditions (file must contain IEC 61850 traffic).

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