Skip to main content
Glama

await_generation

Read-only

Block until a 3D model generation job finishes by polling its provider, then return the final status or timeout result for agent workflows.

Instructions

Wait for a generation job to complete and return the final status.

        Polls the provider until the job reaches a terminal state or the
        timeout is exceeded.  Useful for agents that want to block until
        a model is ready.

        ``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:
            job_id: Job ID from ``generate_model``.
            provider: Provider that owns the job.
            timeout: Max seconds to wait for generation (default 600 = 10 min).
            poll_interval: Seconds between polls (default 10).
        

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

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID from ``generate_model``.
timeoutNoMax seconds to wait for generation (default 600 = 10 min). Default: 600.
providerNoProvider that owns the job. Default: "meshy".
poll_intervalNoSeconds between polls (default 10). Default: 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.5.1
    • addedInput schema / properties / job_id / description
      Added value: +"Job ID from ``generate_model``."
    • changedInput schema / properties / poll_interval / description
      Previous value: -"Default: 10."New value: +"Seconds between polls (default 10). Default: 10."
    • changedInput schema / properties / provider / description
      Previous value: -"Default: \"meshy\"."New value: +"Provider that owns the job. Default: \"meshy\"."
    • changedInput schema / properties / timeout / description
      Previous value: -"Default: 600."New value: +"Max seconds to wait for generation (default 600 = 10 min). Default: 600."
  2. Changed6 schema fields changedv1.5.0
    • removedInput schema / properties / poll_interval / default
      Removed value: -10
    • addedInput schema / properties / poll_interval / description
      Added value: +"Default: 10."
    • removedInput schema / properties / provider / default
      Removed value: -"meshy"
    • addedInput schema / properties / provider / description
      Added value: +"Default: \"meshy\"."
    • removedInput schema / properties / timeout / default
      Removed value: -600
    • addedInput schema / properties / timeout / description
      Added value: +"Default: 600."
  3. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive), and the description adds real behavioral context beyond them: the tool polls the provider, terminates on a terminal state or timeout, and may require the user's own provider API key (KILN_MESHY_API_KEY) for foreign task ids. It does not say what is returned or raised when the timeout is exceeded, which is the main behavioral gap.

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?

The opening sentences are well front-loaded and earn their place, but the Args section duplicates the input schema word-for-word, adding length without adding information. Removing it would leave a tighter, equally complete definition.

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?

With four parameters and no output schema, the description carries the burden of explaining what 'the final status' actually looks like and what happens on timeout — it does neither. It is otherwise adequate for a simple polling waiter, since the key behavioral traits (blocking, polling, provider key) are covered.

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 Args block largely restates the schema verbatim, so the baseline is 3. The one genuine addition is that job_id also accepts a provider-side task id and that this path needs the user's provider key, which is meaning the schema does not carry.

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 names a specific verb and resource ('Wait for a generation job') and states the outcome ('return the final status'), and the second clarifies the mechanism (polling until terminal state or timeout). It is clear enough to distinguish this blocking waiter from a status-check tool, though it never names the non-blocking sibling (e.g. generation_status) explicitly.

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?

'Useful for agents that want to block until a model is ready' implies the usage context, and the provider-task-id paragraph clarifies a legitimate alternate input. There is no explicit when-not guidance (e.g. 'prefer generation_status if you don't want to block') and no warning about holding a connection for up to 600 seconds.

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