Skip to main content
Glama

download_generated_model

Downloads a completed 3D generation job, checks the model, records its source, and opens it on Kiln's interactive stage for review and iteration.

Instructions

Download a completed generated model, check it, and open it on the stage.

        The result says where the model came from (``came_from``: the
        provider and the prompt) and, when the provider was asked for a
        shape and not a size, that its numbers are not millimetres
        (``size_check``).  A note beside the file keeps where it came
        from, so the stage and design history can say so later.

        ``job_id`` may also be a task id from the provider's own app (Meshy or
        Tripo3D): Kiln finds what kind of task it is and handles it like its
        own.  It needs that person's own provider key (``KILN_MESHY_API_KEY``
        for Meshy).

        Args:
            goal_id: The saved goal's id from ``design_session``, so this make
                is recorded against the goal and checked against it. Empty when
                there is no goal.
            job_id: Job ID of a completed generation job.
            provider: Provider that owns the job: ``"meshy"``, ``"gemini"``,
                ``"tripo3d"``, ``"stability"`` or ``"openscad"``.  Default
                ``"meshy"``.
            output_path: Directory to save the file.  Defaults to Kiln's
                own ``kiln_generated`` output folder.

INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.

MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.

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": {
      "job_id": "<job_id>"
    },
    "name": "download_generated_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID of a completed generation job.
goal_idNoThe saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: "".
providerNoProvider that owns the job: ``"meshy"``, ``"gemini"``, ``"tripo3d"``, ``"stability"`` or ``"openscad"``. Default ``"meshy"``. Default: "meshy".
output_pathNoDirectory to save the file. Defaults to Kiln's own ``kiln_generated`` output folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • removedInput schema / properties / brief_id
      Removed value: -{
      -  "description": "The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\".",
      -  "title": "Brief Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / goal_id
      Added value: +{
      +  "description": "The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\".",
      +  "title": "Goal Id",
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv1.5.1
    • changedInput schema / properties / brief_id / description
      Previous value: -"Default: \"\"."New value: +"The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\"."
    • addedInput schema / properties / job_id / description
      Added value: +"Job ID of a completed generation job."
    • addedInput schema / properties / output_path / description
      Added value: +"Directory to save the file.  Defaults to Kiln's own ``kiln_generated`` output folder."
    • changedInput schema / properties / provider / description
      Previous value: -"Default: \"meshy\"."New value: +"Provider that owns the job: ``\"meshy\"``, ``\"gemini\"``, ``\"tripo3d\"``, ``\"stability\"`` or ``\"openscad\"``.  Default ``\"meshy\"``. Default: \"meshy\"."
  3. Changed4 schema fields changedv1.5.0
    • addedInput schema / properties / brief_id
      Added value: +{
      +  "description": "Default: \"\".",
      +  "title": "Brief Id",
      +  "type": "string"
      +}
    • removedInput schema / properties / output_path / default
      Removed value: -null
    • removedInput schema / properties / provider / default
      Removed value: -"meshy"
    • addedInput schema / properties / provider / description
      Added value: +"Default: \"meshy\"."
  4. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With annotations declaring readOnlyHint=false and destructiveHint=false, the description adds real substance: it writes a file into output_path, drops a sidecar note recording provenance, can require the user's own provider API key (KILN_MESHY_API_KEY), and auto-decimates oversized meshes for the stage viewer. It does not say whether existing files at output_path are overwritten or what happens on partial failure, so it stops short of full disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the return-shape paragraph is efficient, but the Args block largely duplicates a schema that already has 100% description coverage. The MAKE DOORS paragraph about design_session not being installed is tangential to invoking this tool and dilutes the signal.

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?

There is no output schema, so the description carries the load of explaining results, and it does so concretely via came_from and size_check. Combined with the stage-open side effect and the provider-key prerequisite, an agent has enough to call this correctly; only overwrite semantics and failure behavior are absent.

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, and the description earns one step above it by giving job_id behavior the schema lacks, namely that it may be a provider-app task id (Meshy/Tripo3D) that Kiln resolves itself, plus the associated provider-key requirement. goal_id, provider, and output_path are restated almost verbatim from the schema and add little.

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 opening line gives a specific verb and resource ("Download a completed generated model") plus two follow-on actions: verify it and open it on the stage. It also explains the return payload (came_from, size_check) so the agent knows what a successful call yields. It does not distinguish itself from the sibling download_model or preview_generated_model, which is the remaining gap.

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?

Usage context is implied rather than stated: the tool takes a completed job_id, so the agent must infer it is used after a generation job finishes, and the note that job_id may be a provider-side task id is a genuine usage extension. Nothing tells the agent when to choose this over download_model or preview_generated_model, and the closing compile_scad paragraph is install-inventory context rather than routing guidance.

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

Deploy Server

Other Tools