Skip to main content
Glama

DualSoft AAS & PLC (DS Studio)

dsdx.examples.get

Read-onlyIdempotent

Fetch the full official .ds2 source code, syntax notes, and metadata for a single starter example by id (equivalent aliases: exampleId, filename, key, name, example; id takes precedence) and optional lang ('ko', 'en', 'de', 'ja'). Missing or unknown id returns a validation error listing valid example IDs. Use after dsdx.examples.list when you need runnable DS2 code for /play or local editing; use dsdx.examples.list instead when browsing available examples. Omitting id on public /mcp returns default ds2/v2 starter example 'st-conditions-v2' 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": "dsdx.examples.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoAlias for id
idNoOfficial example id or filename, e.g. 'basic', 'tutorial-basic', 'intermediate', 'xg5000-demo-kit', 'advanced', 'library-advanced', 'carwash', 'carwash-continuous', 'st-conditions-v2', 'robot-assembly-cell-v2', 'status-indicator-cell-v2'
bpmNoTimeline tempo BPM when buildShow is true (40..220, default: 140.0)
keyNoAlias for id
fileNoAlias for id
langNoPreferred localized language: 'ko' (default) | 'en' | 'de' | 'ja'
nameNoAlias for id
pathNoAlias for id
queryNoAlias for id
widthNoCanvas width in pixels when buildShow is true (320..3840)
heightNoCanvas height in pixels when buildShow is true (180..3840)
targetNoAlias for id
exampleNoAlias for id
filenameNoAlias for id (exact example filename)
buildShowNoWhen true, generate a self-contained 3D Build Show + AAS offline viewer resourceUri for this official example
exampleIdNoAlias for id
example_idNoSnake_case alias for id
includeHtmlNoWhether to inline UTF-8 HTML text in artifacts when buildShow is true (default: false)
aspectPresetNoOptional 3D Build Show viewport preset when buildShow is true: 'landscape-16x9' | 'shorts-9x16' | 'square-1x1'
example_nameNoAlias for id
cleanShortsModeNoHide all chrome in ?shorts=1 mode when buildShow is true (default: true)
durationSecondsNoBuild Show timeline duration in seconds when buildShow is true (3..300, default: 32.0)
subPartAssemblyNoAnimate sub-part assembly sequence when buildShow is true (default: true)
buildShowOptionsNoOptional dsdx-build-show/1.0 configuration object when buildShow is true

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": [
      -      "id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "exampleId"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "key"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "filename"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "example_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "name"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "example"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "example_name"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "path"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "target"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "file"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "query"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "q"
      -    ]
      -  }
      -]
    • addedInput schema / required
      Added value: +[]
  3. Changed6 schema fields changed
    • addedInput schema / properties / bpm
      Added value: +{
      +  "description": "Timeline tempo BPM when buildShow is true (40..220, default: 140.0)",
      +  "type": "number"
      +}
    • addedInput schema / properties / cleanShortsMode
      Added value: +{
      +  "description": "Hide all chrome in ?shorts=1 mode when buildShow is true (default: true)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / durationSeconds
      Added value: +{
      +  "description": "Build Show timeline duration in seconds when buildShow is true (3..300, default: 32.0)",
      +  "type": "number"
      +}
    • addedInput schema / properties / height
      Added value: +{
      +  "description": "Canvas height in pixels when buildShow is true (180..3840)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / subPartAssembly
      Added value: +{
      +  "description": "Animate sub-part assembly sequence when buildShow is true (default: true)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / width
      Added value: +{
      +  "description": "Canvas width in pixels when buildShow is true (320..3840)",
      +  "type": "integer"
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / aspectPreset
      Added value: +{
      +  "description": "Optional 3D Build Show viewport preset when buildShow is true: 'landscape-16x9' | 'shorts-9x16' | 'square-1x1'",
      +  "enum": [
      +    "landscape-16x9",
      +    "shorts-9x16",
      +    "square-1x1"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / buildShow
      Added value: +{
      +  "description": "When true, generate a self-contained 3D Build Show + AAS offline viewer resourceUri for this official example",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / buildShowOptions
      Added value: +{
      +  "description": "Optional dsdx-build-show/1.0 configuration object when buildShow is true",
      +  "type": "object"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Official example id or filename, e.g. 'basic', 'tutorial-basic', 'intermediate', 'xg5000-demo-kit', 'advanced', 'library-advanced', 'carwash', 'carwash-continuous', 'st-conditions-v2', 'robot-assembly-cell-v2'"New value: +"Official example id or filename, e.g. 'basic', 'tutorial-basic', 'intermediate', 'xg5000-demo-kit', 'advanced', 'library-advanced', 'carwash', 'carwash-continuous', 'st-conditions-v2', 'robot-assembly-cell-v2', 'status-indicator-cell-v2'"
    • addedInput schema / properties / includeHtml
      Added value: +{
      +  "description": "Whether to inline UTF-8 HTML text in artifacts when buildShow is true (default: false)",
      +  "type": "boolean"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / anyOf
      Previous value: -[
      -  {
      -    "required": [
      -      "id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "exampleId"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "key"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "filename"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "required": [
      +      "id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "exampleId"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "key"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "filename"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "example_id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "name"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "example"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "example_name"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "path"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "target"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "file"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "query"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "q"
      +    ]
      +  }
      +]
    • addedInput schema / properties / id / examples
      Added value: +[
      +  "tutorial-basic",
      +  "st-conditions-v2"
      +]
  6. Changed9 schema fields changed
    • addedInput schema / properties / example
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / example_id
      Added value: +{
      +  "description": "Snake_case alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / example_name
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / q
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "Alias for id",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "exampleId"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "key"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "filename"
      +    ]
      +  }
      +]
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  8. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint false, openWorldHint false), but the description adds behavior annotations cannot express: a missing or unknown id returns a validation error enumerating valid IDs, and omitting id on public /mcp silently returns the default 'st-conditions-v2' with fallback=true. Those are non-obvious failure and default behaviors an agent needs before calling.

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 action, then routing guidance, then fallback behavior — a sensible order with no filler sentences. It loses a point only because the long alias parenthetical duplicates schema property names rather than adding new information.

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

Completeness5/5

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

For a 24-parameter tool with a full output schema and complete annotations, the description covers what an agent must know: the returned payload (source code, syntax notes, metadata), id resolution, language option, error behavior, and default fallback. The buildShow artifact mode is left to per-parameter schema descriptions, which is reasonable given that coverage.

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 a precedence rule the schema does not state: the alias set (exampleId, filename, key, name, example) is enumerated and 'id takes precedence.' That resolves ambiguity the schema leaves open; the parenthetical alias list itself is partly redundant with the schema.

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: 'Fetch the full official .ds2 source code, syntax notes, and metadata for a single starter example by id.' It also explicitly distinguishes itself from dsdx.examples.list, so an agent can separate retrieval-by-id from browsing without opening either schema.

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 both the when-to-use ('after dsdx.examples.list when you need runnable DS2 code for /play or local editing') and the when-not-to-use ('use dsdx.examples.list instead when browsing available examples'). The alternative is named along with the condition that selects it.

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