Skip to main content
Glama

CityVistion MCP (CityEngine / CGA.js / NL2CGA)

Cgajs Compile Cga

cgajs_compile_cga

把 CGA 规则源码编译为三维模型(GLB),经 CGA.js 云端引擎。

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": {
      "cga_source": "<cga_source>"
    },
    "name": "cgajs_compile_cga"
  }
}

Input Schema

NameRequiredDescriptionDefault
engineNo"" = js(默认,×1 配额);"python" = 服务器原生引擎(×3 配额, 对 CityEngine 方言兼容性更好)。
cga_sourceYesCGA 规则源码全文(需含 @StartRule 与 Lot 规则)。
output_dirNoglb 落盘目录。
download_glbNo是否把 glb 落盘(默认 True)。

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It identifies the cloud engine and GLB output, but says nothing about authentication, quota consumption, execution time, async job behavior, failure modes, or whether compilation has side effects such as writing files to output_dir.

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?

A single short sentence that is front-loaded and free of wasted wording. It is perhaps overly terse for a compile operation with meaningful engine selection and quota implications, but it is structurally clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a compile tool with four parameters, engine quota tradeoffs, file output behavior, and an output schema, the description is too thin. It omits how long compilation may take, whether it is synchronous or job-based, and how errors are surfaced, leaving the agent underprepared beyond what the schema states.

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 description coverage is 100%, so the input schema already explains cga_source, engine, output_dir, and download_glb, including the quota differences between JS and Python engines. The description adds no parameter meaning beyond the schema, so the baseline of 3 is appropriate.

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?

States a clear verb and resource: compiling CGA rule source into a 3D GLB model via the CGA.js cloud engine. It does not explicitly distinguish this from sibling tools such as cityengine_generate_cga or cityengine_generate_model, so the agent must infer the distinction.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool versus the multiple CGA generation or model generation siblings. There are no exclusions, prerequisites, or selection criteria beyond the implicit idea that the input is CGA source code.

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.