Skip to main content
Glama

Generate a 3D model

generate_3d
DestructiveIdempotent

Start a textured GLB 3D model from a 10–600 character description (input_mode prompt) or from 1–4 PNG/JPG/WebP photos of one object (input_mode photo, front view first). Send the photos in exactly one way: images (inline base64), image_urls (public https links to the image files) or upload_id (from create_3d_upload, when the photos are attached in chat or are local files you cannot send inline). Costs one charge of the chosen quality: basic 25, medium 35 or high 50 shared Cormak credits (default basic); quote_3d returns the exact maximum. A failed build is refunded automatically. Optional glasses_spec tunes a photo build for eyewear; optional frame_material makes a regular photo build translucent or clear. Returns an operation; poll get_3d_status with the same request_id. Never retry with a new request_id automatically. If the owner allowed advance spending for this connection in Cormak and you send expected_max_credits from quote_3d, the build starts at once within those limits. Otherwise the owner must approve the exact request at the returned approval_url in Cormak; then repeat the same request_id and parameters.

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": {
      "request_id": "<request_id>",
      "confirm_spend": "<confirm_spend>",
      "input_mode": "<input_mode>"
    },
    "name": "generate_3d"
  }
}

Input Schema

NameRequiredDescriptionDefault
imagesNoPhoto mode: 1–4 inline photos of the same object. Put the front view first; with glasses_spec the order must match views.
promptNo
qualityNobasic (default): 25 credits, 2K textures. medium: 35 credits, 4K PBR textures. high: 50 credits, 8K PBR textures and finer geometry.
upload_idNoPhoto mode instead of images: the upload_id from create_3d_upload once the user has added the photos. Slot order is photo order.
image_urlsNoPhoto mode instead of images: 1–4 public https:// links straight to PNG/JPEG/WebP files (up to 2.25 MB each), front view first. Cormak downloads them; pages that need a sign-in will not work.
input_modeYes
request_idYesA UUID for this exact request. Reuse it on retries; changing it requests another paid generation.
glasses_specNoEyewear photo build: 2–4 photos matching views, no prompt. Uses a lighter mesh with PBR materials and keeps the specification and front photo with the model.
confirm_spendYesSet true only after the user confirms spending their Cormak credits.
frame_materialNoPhoto build without glasses_spec: make the whole model translucent (acetate-like) or clear, keeping the photo tint.
expected_max_creditsNomaximum from quote_3d. Required to start within the owner's advance spending permission; a lower value than the current price is rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / image_urls
      Added value: +{
      +  "description": "Photo mode instead of images: 1–4 public https:// links straight to PNG/JPEG/WebP files (up to 2.25 MB each), front view first. Cormak downloads them; pages that need a sign-in will not work.",
      +  "items": {
      +    "maxLength": 2048,
      +    "minLength": 12,
      +    "type": "string"
      +  },
      +  "maxItems": 4,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / images / description
      Previous value: -"Photo mode: 1–4 photos of the same object. Put the front view first; with glasses_spec the order must match views."New value: +"Photo mode: 1–4 inline photos of the same object. Put the front view first; with glasses_spec the order must match views."
    • addedInput schema / properties / upload_id
      Added value: +{
      +  "description": "Photo mode instead of images: the upload_id from create_3d_upload once the user has added the photos. Slot order is photo order.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / expected_max_credits
      Added value: +{
      +  "description": "maximum from quote_3d. Required to start within the owner's advance spending permission; a lower value than the current price is rejected.",
      +  "maximum": 1000000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / frame_material
      Added value: +{
      +  "description": "Photo build without glasses_spec: make the whole model translucent (acetate-like) or clear, keeping the photo tint.",
      +  "enum": [
      +    "translucent",
      +    "clear"
      +  ]
      +}
    • addedInput schema / properties / glasses_spec
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Eyewear photo build: 2–4 photos matching views, no prompt. Uses a lighter mesh with PBR materials and keeps the specification and front photo with the model.",
      +  "properties": {
      +    "material": {
      +      "enum": [
      +        "acetate",
      +        "metal",
      +        "rimless"
      +      ]
      +    },
      +    "name": {
      +      "maxLength": 80,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "views": {
      +      "description": "Label of each photo in order; the first must be front, no repeats.",
      +      "items": {
      +        "enum": [
      +          "front",
      +          "side",
      +          "quarter",
      +          "top"
      +        ]
      +      },
      +      "maxItems": 4,
      +      "minItems": 2,
      +      "type": "array"
      +    },
      +    "width_mm": {
      +      "description": "Full frame width in millimetres.",
      +      "maximum": 170,
      +      "minimum": 110,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "width_mm",
      +    "material",
      +    "views"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / images / description
      Added value: +"Photo mode: 1–4 photos of the same object. Put the front view first; with glasses_spec the order must match views."
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "basic (default): 25 credits, 2K textures. medium: 35 credits, 4K PBR textures. high: 50 credits, 8K PBR textures and finer geometry.",
      +  "enum": [
      +    "basic",
      +    "medium",
      +    "high"
      +  ]
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true, openWorldHint=true); the description still earns credit for disclosing concrete consequences the annotations do not: per-quality credit costs, automatic refund on a failed build, and the human-approval path via approval_url. The remaining gap is what the returned operation object looks like and how long a build typically takes, which matters for a long-running paid task.

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?

Front-loaded with the purpose and the two modes, and every clause carries actionable content (costs, refund, approval, retry rule) with no filler. It is a single dense block of roughly 150 words, though, and the spend/approval mechanics would be easier to parse as a short ordered list.

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 an 11-parameter, nested-schema, paid, asynchronous tool with no output schema, the description covers everything an agent needs to call it correctly: input selection, cost, refund, the returned operation and how to poll it, and the two approval branches. Nothing essential is left to inference.

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 already 82%, so the baseline is 3; the description goes beyond it by stating cross-parameter rules the schema never encodes, such as 'Send the photos in exactly one way' across images/image_urls/upload_id, glasses_spec excluding prompt, and view order having to match photo order. It also adds the practical sourcing hint for upload_id (from create_3d_upload) and expected_max_credits (from quote_3d).

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?

Opens with a specific verb+resource ('Start a textured GLB 3D model') and then splits the two input modes by name (input_mode prompt vs photo) with their exact constraints. It also implicitly distinguishes itself from the sibling tools it names (create_3d_upload for uploads, get_3d_status for polling, quote_3d for pricing), so an agent can route without opening other schemas.

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?

Explicit when-to-use for every alternative: use images for inline base64, image_urls for public https links, upload_id only when photos are in chat or are local files that cannot be sent inline. It also states the correct follow-up sequence (quote_3d for the max, then poll get_3d_status with the same request_id) and the failure mode 'Never retry with a new request_id automatically'.

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.