Skip to main content
Glama
CityEngine Cloud MCP Server

CityEngine Cloud MCP Server

generate_model

Creates 3D city building models from natural-language prompts or by applying instructions to existing CGA rules, returning CGA source, model stats, GLB files, and signed download links.

Instructions

自然语言一句话 → 直接生成三维模型(NL2CGA + 引擎解析一键串联)。

两种模式二选一:

  1. text:自然语言描述,如「生成一栋 12 层现代玻璃幕墙办公楼」。

  2. base_cga + instruction:回传既有 CGA + 修改指令,二次生成再出模型。

Args:(其余参数同 parse_cga)

Returns: cga_source(供后续 cga_edit 回传)、模型统计、glb 本地路径、 签名下载地址、sha256、usage、warnings。

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

Input Schema

NameRequiredDescriptionDefault
seedNo
textNo
base_cgaNo
timeout_sNo
attributesNo
output_dirNo
instructionNo
download_glbNo
initial_shapeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it discloses the returns (cga_source for later round-trips, model stats, local glb path, signed download URL, sha256, usage, warnings) which is useful. However, it does not disclose cost/quota behavior (the `usage` field hints at it), whether local files are written to output_dir, or timeout semantics.

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?

The structure is clean: a one-line summary, an enumerated mode list with a concrete example, and a Returns block. Every sentence carries information, though the 'Args: same as parse_cga' line is a shortcut that weakens the definition rather than adding value.

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?

The Returns section covers the absence of an output schema well, and the two primary modes are fully described. However, for a 9-parameter generation tool with 0% schema coverage, the majority of parameters go unexplained, leaving an agent to guess at behavior like download_glb and output_dir.

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

Parameters2/5

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

With 9 parameters at 0% schema description coverage, the description only explains how `text`, `base_cga`, and `instruction` are used. seed, timeout_s, attributes, output_dir, download_glb, and initial_shape are left entirely to the schema titles, and the cross-reference 'other params same as parse_cga' pushes the burden onto another tool's documentation.

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 description states a specific action (generate a 3D model), names the underlying pipeline (NL2CGA + engine parsing), and explains the two generation modes (text vs. base_cga + instruction). It doesn't clearly distinguish the tool from generate_cga or generate_model's role relative to parse_cga, leaving sibling differentiation weak.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition gives explicit mode-selection conditions: use `text` for a fresh description, or `base_cga` + `instruction` to revise an existing CGA. It doesn't say when to prefer generate_cga or parse_cga instead, so there is no exclusion guidance.

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