Skip to main content
Glama

Price an AI 3D generation

prepare_3d_generation
Read-onlyIdempotent

Step 1 of AI 3D generation on the user's connected PrintPal account. Validates the prompt or attached image, quality and format, and returns the exact credit cost, the account's available credits, normalised settings and a short-lived quote_token. Nothing is generated or charged. Show the user the cost and settings, then call generate_3d_model only if they agree. Text: pass prompt. Image-to-3D: pass the attached image as image (prompt is then an optional label). Qualities, cheapest first: super (768³, the default), superplus (1024³), superplus_1280, superplus_1536, superplus_2048 and superplus_2048_master (the most detailed and most expensive). Geometry tiers export stl/glb/obj/fbx; their *_texture variants add colour textures and export glb or obj (obj arrives as a zip). Every tier accepts a text prompt or an image; an image gives the most faithful result, and a text prompt adds about a minute to make a reference image first. The 2048 tiers return 5M-face files and take 10-20 minutes. prepare_3d_generation returns the exact credit cost.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prepare_3d_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoAn image the user attached in the conversation (PNG, JPEG or WebP).
formatNoglb
promptNoWhat to generate, e.g. "low-poly seated fox figurine". Required without an image.
qualityNosuper
image_urlNoFor clients without file attachments: an https URL of a PNG/JPEG/WebP image.

Output Schema

NameRequiredDescriptionDefault
imageNo
promptNo
settingsYes
next_stepYes
quote_tokenYes
credits_costYes
billing_policyNo
quote_expires_atNo
credits_availableYes
sufficient_creditsYes
estimated_time_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / default
      Previous value: -"default"New value: +"super"
    • 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. Added

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent/destructive annotations by stating 'Nothing is generated or charged' and that the quote_token is short-lived, which is the key safety fact for a pricing step. It also discloses latency expectations (~1 extra minute for text prompts, 10-20 minutes and 5M-face files for the 2048 tiers) and cost ordering across quality tiers. Minor gap: it doesn't say how long the quote_token remains valid.

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, cost-only guarantee, and the consent handoff, then organised into input-path, quality, and format guidance. Slightly over-long: the closing sentence 'prepare_3d_generation returns the exact credit cost' repeats the opening claim and could be cut.

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?

Complete for a parameter-heavy pricing tool: it covers both input modes, the quality ladder with cost/time implications, format/export constraints, and the consent step before generation. An output schema exists, so it needn't document return structure, though it still names what comes back (cost, credits, normalised settings, quote_token).

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

Parameters5/5

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

Adds substantial meaning beyond a 60%-covered schema: it ranks qualities cheapest-first with resolutions (super 768³ default through superplus_2048_master), explains that *_texture variants add colour and restrict export to glb/obj with obj arriving as a zip, and clarifies that image input yields the most faithful result. This resolves the ambiguity of a 12-value quality enum that the schema lists without explanation.

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 and resource: 'Step 1 of AI 3D generation... validates the prompt or attached image, quality and format, and returns the exact credit cost... and a short-lived quote_token.' It explicitly distinguishes itself from the sibling generate_3d_model by stating 'Nothing is generated or charged' and by routing the agent onward only after user consent.

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 an explicit workflow: 'Show the user the cost and settings, then call generate_3d_model only if they agree.' It also spells out the two input paths (text via `prompt`, image via `image` where prompt is an optional label) and the fallback for clients without attachments, so the agent knows which mode to pick.

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