Skip to main content
Glama

Fetch Part

fetch_part
Read-onlyIdempotent

Fetch one bundled catalog part. Prefer await lib.standard.nema17() and await lib.standard.bearing608() — they are offline and do not download remote STEP. A lookup that cannot finish fails within 45s with errorCode parts.lookup.timeout. Do not retry in parallel.

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": "fetch_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
modelNoVerified model options; supplying model implies include_model.
queryNo
familyNo
categoryNo
standardNo
include_modelNoResolve a hash-verified STEP/GLB model file instead of the plain catalog STEP record.
parts_base_urlNoOpt-in remote endpoint; no default value ships with kernelCAD.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / includeModel
      Removed value: -{
      -  "description": "Resolve a hash-verified STEP/GLB model file instead of the plain catalog STEP record.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / include_model
      Added value: +{
      +  "description": "Resolve a hash-verified STEP/GLB model file instead of the plain catalog STEP record.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Verified model options; supplying model implies includeModel."New value: +"Verified model options; supplying model implies include_model."
    • removedInput schema / properties / model / properties / expectedBboxMm
      Removed value: -{
      -  "description": "Expected [x,y,z] dimensions to compare with the measured model.",
      -  "items": {
      -    "type": "number"
      -  },
      -  "maxItems": 3,
      -  "minItems": 3,
      -  "type": "array"
      -}
    • addedInput schema / properties / model / properties / expected_bbox_mm
      Added value: +{
      +  "description": "Expected [x,y,z] dimensions to compare with the measured model.",
      +  "items": {
      +    "type": "number"
      +  },
      +  "maxItems": 3,
      +  "minItems": 3,
      +  "type": "array"
      +}
    • removedInput schema / properties / model / properties / toleranceRatio
      Removed value: -{
      -  "description": "Relative expected-versus-measured bbox tolerance, default 0.25.",
      -  "type": "number"
      -}
    • addedInput schema / properties / model / properties / tolerance_ratio
      Added value: +{
      +  "description": "Relative expected-versus-measured bbox tolerance, default 0.25.",
      +  "type": "number"
      +}
    • removedInput schema / properties / partsBaseUrl
      Removed value: -{
      -  "description": "Opt-in remote endpoint; no default value ships with kernelCAD.",
      -  "type": "string"
      -}
    • addedInput schema / properties / parts_base_url
      Added value: +{
      +  "description": "Opt-in remote endpoint; no default value ships with kernelCAD.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / includeModel
      Added value: +{
      +  "description": "Resolve a hash-verified STEP/GLB model file instead of the plain catalog STEP record.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Verified model options; supplying model implies includeModel.",
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "expectedBboxMm": {
      +      "description": "Expected [x,y,z] dimensions to compare with the measured model.",
      +      "items": {
      +        "type": "number"
      +      },
      +      "maxItems": 3,
      +      "minItems": 3,
      +      "type": "array"
      +    },
      +    "license": {
      +      "description": "License string supplied by the source.",
      +      "type": "string"
      +    },
      +    "sha256": {
      +      "description": "Required SHA-256 digest for an explicit URL; for catalog parts it overrides the catalog GLB digest.",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Catalog or manufacturer name, such as KiCad Packages3D.",
      +      "type": "string"
      +    },
      +    "toleranceRatio": {
      +      "description": "Relative expected-versus-measured bbox tolerance, default 0.25.",
      +      "type": "number"
      +    },
      +    "url": {
      +      "description": "Direct public HTTPS .step/.stp/.glb download URL. Requires sha256, source and license.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "cachePath": {
      -    "description": "Local cache path of the written STEP file (success).",
      -    "type": "string"
      -  },
      -  "disclosure": {
      -    "description": "Referral disclosure. Present only when url carries a referral tag; show it with the link.",
      -    "type": "string"
      -  },
      -  "error": {
      -    "type": "string"
      -  },
      -  "errorCode": {
      -    "type": "string"
      -  },
      -  "errorHint": {
      -    "type": "string"
      -  },
      -  "instruction": {
      -    "description": "What to do with the link_out URL.",
      -    "type": "string"
      -  },
      -  "kind": {
      -    "description": "'link_out' when the URL is a vendor configurator the agent must drive by hand.",
      -    "type": "string"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "record": {
      -    "additionalProperties": true,
      -    "description": "Resolved part record (success).",
      -    "type": "object"
      -  },
      -  "sha256": {
      -    "description": "SHA-256 fingerprint of the STEP file (success).",
      -    "type": "string"
      -  },
      -  "source": {
      -    "description": "Where the part came from ('local' | 'remote') (success).",
      -    "type": "string"
      -  },
      -  "url": {
      -    "description": "Outbound vendor URL (link_out). May carry a referral tag; see disclosure.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok"
      -]
  4. Changed4 schema fields changed
    • addedOutput schema / properties / disclosure
      Added value: +{
      +  "description": "Referral disclosure. Present only when url carries a referral tag; show it with the link.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / instruction
      Added value: +{
      +  "description": "What to do with the link_out URL.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / kind
      Added value: +{
      +  "description": "'link_out' when the URL is a vendor configurator the agent must drive by hand.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / url
      Added value: +{
      +  "description": "Outbound vendor URL (link_out). May carry a referral tag; see disclosure.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cachePath": {
      +      "description": "Local cache path of the written STEP file (success).",
      +      "type": "string"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "errorCode": {
      +      "type": "string"
      +    },
      +    "errorHint": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "record": {
      +      "additionalProperties": true,
      +      "description": "Resolved part record (success).",
      +      "type": "object"
      +    },
      +    "sha256": {
      +      "description": "SHA-256 fingerprint of the STEP file (success).",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Where the part came from ('local' | 'remote') (success).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  6. Added

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses a hard 45s timeout with the specific errorCode parts.lookup.timeout and a concurrency rule (do not retry in parallel). It also implies model resolution may download remote STEP files, which is meaningful operational context. It lacks detail on caching or what a partial failure leaves behind, but it adds substantial value over 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?

Three short sentences, front-loaded with the purpose and followed by the recommended alternative and the failure semantics. No filler, though embedding code snippets like `await lib.standard.nema17()` in a tool description is slightly unusual phrasing.

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

Completeness3/5

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

Failure behavior and retry policy are well covered, and an output schema exists so return values need not be described. For a nested-object, 8-parameter lookup tool at 38% schema coverage, though, the description leaves the parameter-selection story largely untold.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 8 parameters at 38% schema description coverage, the description should clarify the lookup keys, but it never mentions id, query, family, category, standard, include_model, or parts_base_url. The only indirect signal is that remote STEP downloads are involved, hinting at the model/include_model path, which leaves most parameters' selection logic unstated.

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 first sentence gives a specific verb and resource ("Fetch one bundled catalog part") and the scope word "bundled" signals it is a catalog lookup. It does not distinguish this from siblings such as find_part or add_part, so the reader must still infer the boundary.

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 offers a concrete preference: use the offline lib.standard helpers instead when the part is one of those known shapes, which is a real when-not condition. However, the alternatives named are code-level helpers rather than sibling tools, and there is no guidance on when fetch_part beats find_part or add_part.

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.