Skip to main content
Glama

Xem Studio: Part Dimensions & CAD

Read one CAD file's contents

get_file_content
Read-onlyIdempotent

Return the contents of one free file so the geometry can be read or modified directly: STEP and DXF as UTF-8 text, STL as base64. Units are millimetres, true size. Use it after get_free_files gives the file name and the content itself is needed; use get_free_files when a download URL is enough, which is cheaper for large files. Files over 600 KB are not inlined: the response carries inlined=false, size_bytes and the URL to fetch instead. An unknown file name is an error that lists the valid names. Read-only, no auth, no charge.

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": {
      "object": "<object>",
      "file": "<file>"
    },
    "name": "get_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesA file name exactly as get_free_files lists it, e.g. '4080-100'.
formatNoDefault step. DXF exists only for 2D sections such as extrusion profiles.
objectYesObject slug as returned by find_geometry or find_by_dimensions, e.g. '4080-aluminum-extrusion'. An exact object name or alias also resolves; anything else is an error with a hint to search first.

Output Schema

NameRequiredDescriptionDefault
urlYesDirect download URL for the same file.
fileYesFile name.
unitsNomm.
formatYesstep | dxf | stl.
objectYesObject slug.
contentNoThe file contents, present when inlined is true.
inlinedNoFalse when the file was too large to include; fetch url instead.
licenseNoLicense and credit.
encodingNoutf-8 for STEP and DXF, base64 for STL.
size_bytesNoFile size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / object / description
      Previous value: -"Slug as returned by find_geometry or find_by_dimensions, e.g. '4080-aluminum-extrusion'. An exact name or alias also resolves."New value: +"Object slug as returned by find_geometry or find_by_dimensions, e.g. '4080-aluminum-extrusion'. An exact object name or alias also resolves; anything else is an error with a hint to search first."
    • addedOutput schema / properties / content / description
      Added value: +"The file contents, present when inlined is true."
    • addedOutput schema / properties / encoding / description
      Added value: +"utf-8 for STEP and DXF, base64 for STL."
    • addedOutput schema / properties / file / description
      Added value: +"File name."
    • addedOutput schema / properties / format / description
      Added value: +"step | dxf | stl."
    • addedOutput schema / properties / inlined / description
      Added value: +"False when the file was too large to include; fetch url instead."
    • addedOutput schema / properties / license / description
      Added value: +"License and credit."
    • addedOutput schema / properties / object / description
      Added value: +"Object slug."
    • addedOutput schema / properties / size_bytes / description
      Added value: +"File size."
    • addedOutput schema / properties / units / description
      Added value: +"mm."
    • addedOutput schema / properties / url / description
      Added value: +"Direct download URL for the same file."
  2. Changed4 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"File name from get_free_files, e.g. '4080-100' or 'spool-2in-6in'."New value: +"A file name exactly as get_free_files lists it, e.g. '4080-100'."
    • changedInput schema / properties / format / description
      Previous value: -"Default step."New value: +"Default step. DXF exists only for 2D sections such as extrusion profiles."
    • changedInput schema / properties / object / description
      Previous value: -"The object's slug exactly as find_geometry or find_by_dimensions returns it (e.g. '4080-aluminum-extrusion'). A name or alias also works; slugs are safest."New value: +"Slug as returned by find_geometry or find_by_dimensions, e.g. '4080-aluminum-extrusion'. An exact name or alias also resolves."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "content": {
      +      "type": "string"
      +    },
      +    "encoding": {
      +      "type": "string"
      +    },
      +    "file": {
      +      "type": "string"
      +    },
      +    "format": {
      +      "type": "string"
      +    },
      +    "inlined": {
      +      "type": "boolean"
      +    },
      +    "license": {
      +      "type": "string"
      +    },
      +    "object": {
      +      "type": "string"
      +    },
      +    "size_bytes": {
      +      "type": "integer"
      +    },
      +    "units": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "object",
      +    "file",
      +    "format",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, so the description adds value beyond them: encoding per format (UTF-8 text vs base64 STL), millimetre/true-size units, the 600 KB inline cutoff with inlined=false, size_bytes and a URL fallback, the error-on-unknown-name behavior that lists valid names, and no auth or charge. These are operational facts an agent cannot get from the annotations.

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 the size-limit caveat and error behavior. Dense but every sentence carries a distinct fact; the only mild density cost is the long compound sentence about the inline cutoff.

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?

Covers the full lifecycle for a 3-parameter read tool: how to obtain the file name, what encodings come back, units, the overflow path for large files, and the failure mode. With an output schema present, it correctly stops short of documenting the full response shape while still flagging the inlined/URL fork.

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 real meaning: default format is step, DXF is limited to 2D sections, file names must match the get_free_files listing exactly, and object accepts slugs from find_geometry/find_by_dimensions or aliases. The precise enum semantics for DXF go slightly beyond the schema's phrasing.

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?

States a specific verb and resource ('Return the contents of one free file') plus what the content is for (reading or modifying geometry), and immediately distinguishes itself from get_free_files. An agent knows this is a single-file content fetch, not a listing or download-URL tool.

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?

Explicit sequencing ('use it after get_free_files gives the file name') and an explicit alternative with the condition that selects it ('use get_free_files when a download URL is enough, which is cheaper for large files'). Both when-to-use and when-not-to-use are stated, with the tradeoff rationale.

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