Skip to main content
Glama

get_ldr_artifact

Read-only

Retrieve a generated .ldr file as an embedded MCP binary resource with SHA-256 and a download link when clients cannot access local server paths or call resources/read directly.

Instructions

Retrieve a generated .ldr as an embedded MCP binary resource and download link.

    Use the original output_name, including .ldr. Returns exact file bytes as base64
    with SHA-256; only reads the configured output directory. Useful when the client
    cannot access local server paths or cannot invoke resources/read directly.
    

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": {
      "output_name": "<output_name>"
    },
    "name": "get_ldr_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
output_nameYesExact plain .ldr filename previously created in the artifact directory.

Output Schema

NameRequiredDescriptionDefault
errorNoValidation error code, message and written=false.
artifactNoArtifact metadata on success; absent when validation fails before writing.
warningsNoGeneration or verification warnings; empty when none were reported.
diagnosisNoLDR failure diagnosis, when available.
response_modeYesCompact or full response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.0
    • changedOutput schema / $defs / ArtifactDescriptor / properties / uri / description
      Previous value: -"MCP resource URI for the artifact bytes."New value: +"Artifact MCP resource URI."
    • changedOutput schema / properties / diagnosis / description
      Previous value: -"Structured LDR generation failure diagnosis; absent on success."New value: +"LDR failure diagnosis, when available."
    • changedOutput schema / properties / error / description
      Previous value: -"Structured error code, message and written=false on handled validation failure."New value: +"Validation error code, message and written=false."
    • changedOutput schema / properties / response_mode / description
      Previous value: -"Whether repeated design metadata was compacted or returned in full."New value: +"Compact or full response."
  2. Changed2 schema fields changedv1.1.1
    • addedInput schema / properties / output_name / description
      Added value: +"Exact plain .ldr filename previously created in the artifact directory."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ArtifactDescriptor": {
      +      "description": "Download metadata shared by generated and retrieved artifacts.",
      +      "properties": {
      +        "mime_type": {
      +          "description": "Media type of the returned bytes.",
      +          "title": "Mime Type",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Plain artifact filename.",
      +          "title": "Name",
      +          "type": "string"
      +        },
      +        "sha256": {
      +          "description": "Lowercase SHA-256 digest of the exact artifact bytes.",
      +          "title": "Sha256",
      +          "type": "string"
      +        },
      +        "size": {
      +          "description": "Artifact size in bytes.",
      +          "minimum": 0,
      +          "title": "Size",
      +          "type": "integer"
      +        },
      +        "uri": {
      +          "description": "MCP resource URI for the artifact bytes.",
      +          "title": "Uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "uri",
      +        "name",
      +        "mime_type",
      +        "size",
      +        "sha256"
      +      ],
      +      "title": "ArtifactDescriptor",
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": true,
      +  "description": "Structured result for artifact-writing and artifact-retrieval tools.",
      +  "properties": {
      +    "artifact": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/ArtifactDescriptor"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Artifact metadata on success; absent when validation fails before writing."
      +    },
      +    "diagnosis": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Structured LDR generation failure diagnosis; absent on success.",
      +      "title": "Diagnosis"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Structured error code, message and written=false on handled validation failure.",
      +      "title": "Error"
      +    },
      +    "response_mode": {
      +      "description": "Whether repeated design metadata was compacted or returned in full.",
      +      "enum": [
      +        "compact",
      +        "full"
      +      ],
      +      "title": "Response Mode",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "description": "Generation or verification warnings; empty when none were reported.",
      +      "items": {},
      +      "title": "Warnings",
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "response_mode"
      +  ],
      +  "title": "ArtifactToolOutput",
      +  "type": "object"
      +}
  3. Addedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond the annotations: the response contains exact file bytes as base64 with a SHA-256 checksum, and the read is scoped to the configured output directory only. Annotations already cover readOnly/non-destructive, so this supplemental detail on output shape and sandbox scope earns credit; slightly more on failure modes (missing file, name mismatch) would push it higher.

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?

Short and front-loaded: purpose first, then usage constraint, then return characteristics. Only minor redundancy between the 'including .ldr' note and the schema text.

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?

Single-parameter read tool with an output schema, so return values needn't be spelled out; the description still notes base64/SHA-256 and the directory scoping. It omits error behavior for unknown names, but nothing needed to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and the parameter description already says 'Exact plain .ldr filename previously created in the artifact directory.' The description's 'Use the original output_name, including .ldr' largely restates this, adding only mild emphasis, so it sits at the baseline.

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 (Retrieve) and resource (.ldr artifact) plus the delivery mechanism (embedded MCP binary resource and download link). An agent can immediately distinguish this from siblings like read_ldr, inspect_ldr, or export_ldr, which don't deliver bytes as a resource.

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?

Explicit trigger condition: 'Useful when the client cannot access local server paths or cannot invoke resources/read directly.' This effectively implies the alternative (resources/read) and when not to use it, though it does not name a sibling tool explicitly as a substitute.

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