Skip to main content
Glama

addPolygon

Draw a polygon on a 3D globe from geographic coordinates, with options for fill color, opacity, outline, and extrusion. Returns an entity ID for later removal.

Instructions

Draw a polygon area from geographic coordinate tuples. Returns { success, data: { entityId }, message? }; keep entityId for removeEntity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoFill color (CSS format)#3B82F6
labelNoPolygon label text
opacityNoFill opacity (0-1)
sessionIdNoTarget browser session ID for multi-browser routing (optional)
coordinatesYesPolygon outer ring coordinates [[lon, lat, height?], ...]
outlineColorNoOutline color#FFFFFF
clampToGroundNoWhether to clamp to ground
extrudedHeightNoExtruded height (meters), for 3D effect

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
Behavior4/5

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

The description explicitly states the return shape { success, data: { entityId }, message? } and instructs the agent to keep entityId for removeEntity, adding valuable lifecycle behavior beyond the annotations. Annotations are all false and don't contradict the description, though it omits side effects like render persistence or permission requirements.

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?

One concise, front-loaded sentence plus a compact return note. Every word earns its place, with no filler or repetition of schema details.

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

Completeness4/5

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

For an 8-parameter tool, the description is short but compensates with a fully documented schema, explicit output contract, and entity lifecycle hint. The main missing contextual element is usage comparison, but the essential invocation details are covered.

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% and each parameter already has detailed descriptions including defaults and ranges. The description only adds the context of 'geographic coordinate tuples', which is marginal, so the schema carries the semantic burden and baseline 3 applies.

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?

Description uses a specific verb 'Draw' and resource 'polygon area' from geographic coordinate tuples, clearly distinct from sibling tools like addPolyline or addMarker. The action is unambiguous and directly tied to the tool name.

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?

No guidance is provided on when to use addPolygon versus alternatives like addGeoJsonLayer or addPolyline. It lacks preconditions, exclusions, or context about preferred use cases, so the agent receives no decision support.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gaopengbin/cesium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server