Skip to main content
Glama

Start an AI 3D generation (uses credits)

generate_3d_model
DestructiveIdempotent

Step 2 of AI 3D generation. Starts the job priced by prepare_3d_generation on the user's connected PrintPal account and spends the quoted credits. Call only after the user has agreed to the cost shown by prepare_3d_generation, passing its quote_token and the approved credit amount. Pass a stable idempotency_key and reuse it when retrying after a timeout: a retry returns the original job and is never charged twice. A new generation needs a new quote. Returns a generation_uid; the model is not finished yet, so poll check_3d_generation.

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": {
      "quote_token": "<quote_token>",
      "approved_credits": "<approved_credits>"
    },
    "name": "generate_3d_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOptional; must match the quote.
promptNoOptional; must match the quote.
qualityNoOptional; must match the quote.
quote_tokenYesquote_token from prepare_3d_generation.
idempotency_keyNoUnique id for this generation request, reused on retries. Defaults to one derived from the quote.
approved_creditsYesThe credit cost the user approved.

Output Schema

NameRequiredDescriptionDefault
phaseNo
promptNo
statusYes
creditsNo
downloadNo
replayedNo
settingsNo
next_stepYes
created_atNo
completed_atNo
billing_policyNo
download_errorNo
generation_uidNo
elapsed_secondsNo
poll_after_secondsNo
reference_image_urlNo
estimated_time_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "glb",
      -  "stl",
      -  "obj",
      -  "ply",
      -  "fbx"
      -]New value: +[
      +  "glb",
      +  "stl",
      +  "obj",
      +  "fbx"
      +]
    • changedInput schema / properties / quality / enum
      Previous value: -[
      -  "default",
      -  "high",
      -  "ultra",
      -  "super",
      -  "super_texture",
      -  "superplus",
      -  "superplus_texture",
      -  "superplus_1280",
      -  "superplus_1280_texture",
      -  "superplus_1536",
      -  "superplus_1536_texture"
      -]New value: +[
      +  "super",
      +  "super_texture",
      +  "superplus",
      +  "superplus_texture",
      +  "superplus_1280",
      +  "superplus_1280_texture",
      +  "superplus_1536",
      +  "superplus_1536_texture",
      +  "superplus_2048",
      +  "superplus_2048_texture",
      +  "superplus_2048_master",
      +  "superplus_2048_master_texture"
      +]
  2. Changed11 schema fields changed
    • addedInput schema / properties / approved_credits
      Added value: +{
      +  "description": "The credit cost the user approved.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / format / default
      Removed value: -"glb"
    • addedInput schema / properties / format / description
      Added value: +"Optional; must match the quote."
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Unique id for this generation request, reused on retries. Defaults to one derived from the quote.",
      +  "maxLength": 160,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • removedInput schema / properties / image_url
      Removed value: -{
      -  "description": "Optional public PNG/JPEG/WebP URL for image-to-3D (API-key mode only).",
      -  "type": "string"
      -}
    • changedInput schema / properties / prompt / description
      Previous value: -"What to generate, e.g. \"low-poly fox figurine, sitting\"."New value: +"Optional; must match the quote."
    • removedInput schema / properties / quality / default
      Removed value: -"default"
    • changedInput schema / properties / quality / description
      Previous value: -"default/high/ultra for text or image; super*/superplus* tiers are image-only high-res."New value: +"Optional; must match the quote."
    • addedInput schema / properties / quote_token
      Added value: +{
      +  "description": "quote_token from prepare_3d_generation.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "prompt"
      -]New value: +[
      +  "quote_token",
      +  "approved_credits"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "billing_policy": {
      +      "type": "string"
      +    },
      +    "completed_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "credits": {
      +      "properties": {
      +        "amount": {
      +          "type": "integer"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "remaining": {
      +          "type": "integer"
      +        },
      +        "state": {
      +          "enum": [
      +            "reserved",
      +            "charged",
      +            "restored",
      +            "refunded",
      +            "unknown"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "download": {
      +      "properties": {
      +        "expires_in_seconds": {
      +          "type": "integer"
      +        },
      +        "file_name": {
      +          "type": "string"
      +        },
      +        "format": {
      +          "type": "string"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "download_error": {
      +      "type": "string"
      +    },
      +    "elapsed_seconds": {
      +      "type": "integer"
      +    },
      +    "estimated_time_seconds": {
      +      "type": "integer"
      +    },
      +    "generation_uid": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "type": "string"
      +    },
      +    "poll_after_seconds": {
      +      "type": "integer"
      +    },
      +    "prompt": {
      +      "type": "string"
      +    },
      +    "reference_image_url": {
      +      "type": "string"
      +    },
      +    "replayed": {
      +      "type": "boolean"
      +    },
      +    "settings": {
      +      "properties": {
      +        "delivered_contents": {
      +          "type": "string"
      +        },
      +        "delivered_format": {
      +          "type": "string"
      +        },
      +        "format": {
      +          "type": "string"
      +        },
      +        "input": {
      +          "enum": [
      +            "text",
      +            "image"
      +          ],
      +          "type": "string"
      +        },
      +        "quality": {
      +          "type": "string"
      +        },
      +        "resolution": {
      +          "type": "string"
      +        },
      +        "texture": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "starting",
      +        "processing",
      +        "completed",
      +        "failed",
      +        "stalled"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "next_step"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructive/credit-spending and idempotency; the description adds the meaningful context that credits are actually spent, that a retry with the same idempotency_key returns the original job and is "never charged twice," and that the returned generation_uid is not a finished model. Those are exactly the facts an agent needs before a billable mutation.

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

Conciseness5/5

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

Front-loads what the tool is, then the precondition, then retry safety, then the handoff to polling. Five short sentences, each carrying a distinct operational constraint, with no restatement of the schema or name.

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?

For a destructive, credit-spending step tool with six parameters, an output schema, and annotations, the description covers prerequisites, cost consent, idempotent retry, and next step. Nothing needed to invoke it correctly or safely is missing.

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?

With 100% schema coverage the baseline is 3; the description goes further by tying quote_token and approved_credits to the prior prepare call and by explaining the retry/timeout semantics of idempotency_key. It adds little on format/prompt/quality beyond the schema's own "must match the quote" notes.

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 ("Starts the job") and pins its position in a workflow as "Step 2 of AI 3D generation, priced by prepare_3d_generation." An agent can distinguish it from prepare_3d_generation (pricing) and check_3d_generation (polling) without opening a schema.

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?

Gives explicit preconditions ("Call only after the user has agreed to the cost shown by prepare_3d_generation"), what to pass from the prior step, and the post-call handoff ("poll check_3d_generation"). It also excludes reuse of stale quotes: "A new generation needs a new quote."

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