Skip to main content
Glama

read_page

Read a Siemens documentation page as Markdown and retrieve its outline, selected sections, or code blocks using a URL or compact reference.

Instructions

Read one documentation page as Markdown with a header (publication, version, breadcrumb, source reference). mode='outline' lists numbered headings with sizes. section takes an outline number or heading text (e.g. 'Program code', which also matches 'Program code: …') and returns only matching sections. mode='code' returns only code blocks under their headings and combines with section. Long results end with the exact arguments to continue (offset, plus section/mode/reference_format when set). Links to other topics on the same host in a page body follow reference_format; images keep only their alt text. 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": "read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
modeNofull
offsetNo
sectionNo
max_charsNo
reference_formatNocompact

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "full",
      +  "enum": [
      +    "full",
      +    "outline",
      +    "code"
      +  ],
      +  "title": "Mode",
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_format
      Added value: +{
      +  "default": "compact",
      +  "enum": [
      +    "compact",
      +    "url"
      +  ],
      +  "title": "Reference Format",
      +  "type": "string"
      +}
    • addedInput schema / properties / section
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Section"
      +}
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

There are no annotations, so the description carries the full burden. It discloses important behavior: long results 'end with the exact arguments to continue,' images lose everything but alt text, and in-body links are rewritten per reference_format. It does not cover failure modes, auth, or rate limits, which is a real gap for a fetch tool.

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?

The description is dense but front-loaded: the primary action comes first, the modes second, and the continuation and reference-format mechanics last. Dense parentheses around compact-reference syntaxes and prefixes are hard to parse on first read but do carry necessary information, so almost everything earns its place.

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?

For a six-parameter tool with enums, pagination, and reference-format rewriting, this covers the behavior an agent needs to call it correctly, and since an output schema exists, return values needn't be explained. The omissions are max_chars and error handling for disallowed hosts or bad references.

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 0%, so the description must supply meaning. It does this for most parameters: url accepts reader URLs or compact <prefix>:<mapId>[/<contentId>] forms, section accepts an outline number or heading text with prefix matching, offset is the continuation cursor, and reference_format switches between compact identifiers and full URLs. The only undocumented parameter is max_chars, which is a genuine but minor omission.

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?

The description opens with a concrete verb and resource: 'Read one documentation page as Markdown with a header.' It immediately distinguishes itself from retrieval siblings by naming unimplemented behavior such as mode='outline' and mode='code', so an agent knows this returns page content rather than an index or search result.

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?

It gives clear conditional guidance for the modes: 'mode=outline' lists numbered headings, 'mode=code' returns only code blocks, and section narrows either one. It also says 'combines with section' for the code mode. What's missing is any statement about when to choose this tool over search_docs, get_toc, or list_publications, or what to do if the page doesn't exist. So the context is clear, but the exclusions are not.

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