Skip to main content
Glama
TIA Portal MCP Server

TIA Portal MCP Server

by BJM1122

Read TIA Export Index

tia_read_export_index
Read-onlyIdempotent

Reads compact summary metadata from a TIA Portal export index to report issue counts, optional coverage issues, call/item details, and detected PLC family without loading full export data.

Instructions

Read compact summary metadata from an existing _codex_index/tia-export-index.json. Coverage includes issueCount; includeCoverageIssues explicitly returns the full summary.analysis.coverage.issues array. includeProfile adds the detected PLC family (S7-1200, S7-1500 or unknown) from project evidence.

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": {
      "exportDir": "<exportDir>"
    },
    "name": "tia_read_export_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
exportDirYes
includeCallsNo
includeItemsNo
includeProfileNo
includeCoverageIssuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.29.1

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real behavior: the default payload is a compact summary, with includeCoverageIssues and includeProfile described as opt-in expansions. Remaining gaps are error behavior when the index file is missing and any size/limit implications.

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 tight sentences, front-loaded with the core action and the file it targets, then the opt-in expansions. Nothing is padded, though the enumeration of PLC families is minor detail that consumes space without changing a call decision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no output schema and zero schema descriptions, the description supplies only a partial picture of what comes back and how the four unexplained flags alter it. An agent could invoke it correctly but would be guessing about limit, includeCalls/includeItems, and failure modes.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description carries the full burden, yet it explains only includeCoverageIssues and includeProfile. exportDir, limit, includeCalls and includeItems receive no meaning at all — notably limit, whose 1-500 range and truncation behavior are entirely undocumented.

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: reading compact summary metadata from an existing _codex_index/tia-export-index.json. That distinguishes it from export/builder siblings, though it never names tia_list_export_indexes or tia_export_project_index explicitly as the alternatives.

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 phrase 'from an existing ... json' implies this is a read of a previously built index rather than a fresh export, which is useful usage context. However, there is no explicit when-to-use/when-not statement, no mention of what to do when the index is absent, and no routing to sibling tools.

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