Skip to main content
Glama

DualSoft AAS & PLC (DS Studio)

docs_read

Read-onlyIdempotent

Read one known DS Platform document (full text or a single heading section) with TOC, code examples, sourceUrl, specVersion, and buildCommit. Pass document_id (equivalent aliases: id, doc_id, docId, documentId, path, file; document_id takes precedence), optional section, and view ('full' default for body text or 'summary' for metadata/TOC); unknown IDs return an error listing valid document_id values. Use after docs_search when you know the document_id; use docs_search instead when discovering documents by keyword. Omitting document_id on public /mcp returns default DS2-SPEC-V2.0 starter guide 'AI-ST-KIT' (summary) with fallback=true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docs_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAlias for document_id
secNoAlias for section
verNoAlias for version
fileNoAlias for document_id
nameNoAlias for document_id
pathNoAlias for document_id
viewNoOptional view mode ('summary' | 'full')
docIdNoShort alias for document_id; provide the same identifier if combining aliases
titleNoAlias for document_id
anchorNoAlias for section
doc_idNoAlias for document_id
headingNoAlias for section
profileNoAlias for version
sectionNoOptional section heading number, title, or anchor to read (omit or '' for full document)
versionNoTarget documentation/language version ('DS2-SPEC-V1.1' / 'ds2/v1' or 'DS2-SPEC-V2.0' / 'ds2/v2')
documentNoAlias for document_id
exampleIdNoOptional specific example filename or ID to retrieve with source
sectionIdNoAlias for section
documentIdNoCamelCase alias for document_id
resultViewNoAlias for view
section_idNoAlias for section
document_idNoCanonical document ID or relative path (e.g. 'SPEC-00', 'SPEC-04', 'ST-EXPR-SPEC', 'AI-ST-KIT', 'AI-KIT', 'AI-IMAGE-KIT', 'STUDIO-3D-KIT', 'DS2-LANG-SPEC', 'grammar/ds2-v1.ebnf', 'grammar/ds2-v2.ebnf', 'contracts/diagnostics.json', 'examples/01_chain.ds2', 'wiki/home')
specVersionNoAlias for version
targetVersionNoAlias for version
includeExamplesNoWhether to include starter and preset .ds2 examples
includeExampleSourceNoWhether to include full .ds2 source text for examples even in summary view

Output Schema

NameRequiredDescriptionDefault
errorNoStructured error payload when status != OK
resultNoOperation result payload
statusNoOK | REJECTED
protocolNoDSDX-MCP/1.0 protocol URN
revisionNoWorkspace revision tag (e.g. rev-0001)
operationNoExecuted operation name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / status / description
      Previous value: -"OK | ACCEPTED | REJECTED"New value: +"OK | REJECTED"
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "OK",
      -  "ACCEPTED",
      -  "REJECTED"
      -]New value: +[
      +  "OK",
      +  "REJECTED"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / anyOf
      Removed value: -[
      -  {
      -    "required": [
      -      "document_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "documentId"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "docId"
      -    ]
      -  }
      -]
    • addedInput schema / required
      Added value: +[]
  3. Changed1 schema field changed
    • addedInput schema / properties / document_id / examples
      Added value: +[
      +  "AI-ST-KIT",
      +  "SPEC-00",
      +  "STUDIO-3D-KIT"
      +]
  4. Changed16 schema fields changed
    • addedInput schema / properties / anchor
      Added value: +{
      +  "description": "Alias for section",
      +  "type": "string"
      +}
    • addedInput schema / properties / doc_id
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / document
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / heading
      Added value: +{
      +  "description": "Alias for section",
      +  "type": "string"
      +}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / profile
      Added value: +{
      +  "description": "Alias for version",
      +  "type": "string"
      +}
    • addedInput schema / properties / sec
      Added value: +{
      +  "description": "Alias for section",
      +  "type": "string"
      +}
    • addedInput schema / properties / sectionId
      Added value: +{
      +  "description": "Alias for section",
      +  "type": "string"
      +}
    • addedInput schema / properties / section_id
      Added value: +{
      +  "description": "Alias for section",
      +  "type": "string"
      +}
    • addedInput schema / properties / specVersion
      Added value: +{
      +  "description": "Alias for version",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetVersion
      Added value: +{
      +  "description": "Alias for version",
      +  "type": "string"
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "Alias for document_id",
      +  "type": "string"
      +}
    • addedInput schema / properties / ver
      Added value: +{
      +  "description": "Alias for version",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real behavior with a lower bar: unknown IDs return an error that enumerates valid document_id values, and an omitted document_id returns the 'AI-ST-KIT' starter guide in summary view with fallback=true. It does not address how version selection defaults when omitted, leaving part of the read semantics to the schema.

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 verb, resource and scope are front-loaded, and the alternative routing follows immediately. The alias enumeration inside parentheses is bulky, but with 26 parameters and a dozen identifier aliases that density is doing real work rather than padding.

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 26-parameter read tool with an output schema, the description covers purpose, routing, alias precedence, view modes, error behavior, and the no-argument fallback. Remaining gaps such as default version resolution and when to set includeExamples/includeExampleSource are documented in the schema rather than the description.

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 earns above baseline by stating a precedence rule the schema does not ('document_id takes precedence' when aliases conflict) and the default for view ('full' default for body text vs 'summary' for metadata/TOC). The schema only labels each alias as 'Alias for document_id' without resolving conflicts.

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 specific verb and resource ('Read one known DS Platform document') and immediately scopes it to full text or a single heading section, plus the payload the caller gets back (TOC, code examples, sourceUrl, specVersion, buildCommit). It explicitly names the sibling it is not: 'use docs_search instead when discovering documents by keyword.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the ordering constraint ('Use after docs_search when you know the document_id') and the alternative with the condition that selects it ('use docs_search instead when discovering documents by keyword'). It also documents the zero-argument case, so an agent is never left guessing what happens when no document_id is supplied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources