Skip to main content
Glama

addPolygon

Draw a polygon area on a 3D map. Specify outer ring coordinates, fill color, opacity, outline, extrusion height, and optional label. Returns an entity ID for subsequent updates.

Instructions

Add a polygon area on the map (area/boundary), returns entityId

Input Schema

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

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

The description adds no behavioral details beyond what annotations provide. Annotations already indicate it's not read-only nor destructive, but the description doesn't clarify other traits like coordinate system, polygon validation, or interaction with existing entities.

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 description is a single, clear sentence with no unnecessary words. It efficiently conveys the core purpose and return value.

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?

With 8 parameters and no output schema, the description is too sparse. It mentions returns entityId but doesn't explain display behavior, coordinate system, or interaction with the map. The complexity of the tool demands more context.

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?

The input schema has 100% coverage with descriptions for all parameters. The description does not add additional meaning beyond what the schema already explains, so a baseline score of 3 is appropriate.

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?

The description clearly states the action ('Add'), the resource ('polygon area on the map'), and the return value ('entityId'), which distinguishes it from sibling tools like addMarker or addPolyline.

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 on when to use this tool versus alternatives (e.g., addGeoJsonLayer for bulk imports, addPolyline for lines). No context about prerequisites or when not to use it.

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