Skip to main content
Glama

CityVistion MCP (CityEngine / CGA.js / NL2CGA)

Nl2Cga Generate Cga

nl2cga_generate_cga

用一句自然语言生成 CGA 规则源码(NL2CGA,同步等待直到完成,不渲染模型)。

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": {
      "prompt": "<prompt>"
    },
    "name": "nl2cga_generate_cga"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes自然语言建模描述,如「三层临街商铺,骑楼退界」。
timeout_sNo最长等待秒数(上限 300)。

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden and does disclose two important traits: the call is a synchronous blocking wait, and it deliberately stops at source code without rendering. It omits what happens when the 300s ceiling is hit, whether the call consumes quota (a get_quota sibling exists), and whether the generated source is persisted or only returned.

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?

A single compact sentence with zero filler, and the two differentiating behavioral clauses are packed inline rather than buried. Nothing could be removed without losing information.

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?

An output schema exists, so return values need no explanation, and both parameters are fully documented. However, for a blocking generation call with a timeout parameter, the description never says what a timeout yields or whether output is persisted, and it does not differentiate itself from the sibling generation tools.

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%, with both parameters documented including the default and 300s cap, so the schema does the heavy lifting. The description adds only the mild nuance that the prompt should be a single natural-language sentence, matching the example already in the schema — baseline 3.

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 gives a specific verb and resource: turn one natural-language sentence into CGA rule source code (NL2CGA). It also marks the two defining traits an agent needs — it blocks synchronously until completion and it does not render a model — which implicitly distinguishes it from model-generating siblings, though no sibling is named.

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

Usage Guidelines3/5

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

Usage is only implied: the clause '不渲染模型' hints that an agent wanting a rendered model should look elsewhere, but no alternative (e.g. cityengine_generate_cga) is named and no explicit when-to-use/when-not-to-use rule is given. An agent must infer routing from the negative clause alone.

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.