Skip to main content
Glama

CityVistion MCP (CityEngine / CGA.js / NL2CGA)

Cityengine Generate Cga

cityengine_generate_cga

自然语言 → CGA 规则源码(CityEngine 网关 NL2CGA 通道,不渲染)。

两种模式二选一:

  1. text:自然语言描述,如「三层小楼,坡屋顶,底层商铺」。

  2. base_cga + instruction:在既有 CGA 上按指令修改。

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

Input Schema

NameRequiredDescriptionDefault
textNo
base_cgaNo
instructionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 does disclose an important trait — generation only, no rendering — and that it routes through the CityEngine gateway. It says nothing about whether the call is synchronous or returns a job handle (siblings like nl2cga_get_job and cgajs_get_job suggest async workflows), nor about quota, auth, or what happens on invalid input.

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?

The core purpose is front-loaded, followed by a compact two-item mode list, with no filler sentences. Every line contributes information an agent needs to construct a call.

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 output schema means return values need not be explained, and the mode logic is covered. However, for a gateway tool with zero annotation coverage and zero schema description coverage, the absence of any statement about call semantics (sync vs job), failure behavior, or expected CGA output shape leaves meaningful gaps.

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 description coverage is 0%, so the description must compensate, and it does: it assigns each parameter a role and pairs text alone against base_cga + instruction. It still leaves gaps — no indication of whether both modes may be supplied, or what an all-null call does.

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 transformation: natural language into CGA rule source via the CityEngine gateway NL2CGA channel, and explicitly notes it does not render — which separates it from rendering siblings like cityengine_generate_model. It does not differentiate itself from the closely named nl2cga_generate_cga, so an agent must compare schemas to tell those two apart.

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 two mutually exclusive calling modes are spelled out with a concrete example for text mode and a clear statement of what base_cga + instruction means. It stops short of naming when to prefer a sibling tool or what to do when neither mode is satisfied, so exclusions are left implicit.

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.