Skip to main content
Glama

get_toc

Retrieves an indented table of contents or subtree outline from Siemens documentation URLs so users can navigate publications, with configurable depth and reference format.

Instructions

Show the table of contents (1-6 levels via depth) of the publication, or of the subtree under the topic, in url: an indented outline, one line per node with title and reference. Pass reader URLs or compact references in the unchanged url parameter. Compact forms: : or :/; stable prefixes tia=docs.tia.siemens.cloud and iox=docs.industrial-operations-x.siemens.cloud. Any allowed host may also use its full hostname as prefix. Tool-generated addresses default to compact references; set reference_format='url' for reader URLs. Allowed hosts: docs.tia.siemens.cloud, docs.industrial-operations-x.siemens.cloud (default: docs.tia.siemens.cloud).

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": {
      "url": "<url>"
    },
    "name": "get_toc"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
depthNo
reference_formatNocompact

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / reference_format
      Added value: +{
      +  "default": "compact",
      +  "enum": [
      +    "compact",
      +    "url"
      +  ],
      +  "title": "Reference Format",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does reasonably well: it explains the output shape, that reference addresses can be emitted in two formats, which hosts are permitted, and which host is the default. It omits error behavior for invalid URLs and any limits on result size, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and most sentences carry real information, but the address-format discussion is dense and partly redundant, restating the allowed hosts and the compact-vs-url default a second time at the end. The run-on style with embedded line breaks makes it harder to scan than it needs to be.

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?

An output schema exists, yet the description still sketches the return shape and fully documents the address grammar that the schema leaves bare. For a three-parameter read tool this is close to complete; error handling for malformed or disallowed URLs is the main omission.

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 description coverage is 0%, so the description must compensate, and it largely does: `depth` is bounded to 1-6 levels, `url` accepts either reader URLs or two compact reference forms with named prefixes, and `reference_format` is tied to when URLs versus compact references are produced. Only the defaults and the fallback behavior for unrecognized prefixes are left to the schema.

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 states a specific verb and resource ('Show the table of contents ... of the publication, or of the subtree under the topic') and even specifies the returned shape ('an indented outline, one line per node with title and reference'). It is clearly distinct from list_publications or read_page, though it never names a sibling to sharpen the contrast.

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?

It implies when the tool applies (need a navigational outline for a publication or a topic subtree) but gives no explicit exclusions or pointers to alternatives such as read_page for page content. Usage is inferable rather than stated.

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