Skip to main content
Glama

addPolyline

Draw a path or route on a 3D globe from geographic coordinates. Specify line color, width, and optional height to visualize routes or boundaries.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoLine color (CSS format)#3B82F6
labelNoPolyline label text
widthNoLine width (pixels)
sessionIdNoTarget browser session ID for multi-browser routing (optional)
coordinatesYesPolyline coordinates array [[lon, lat, height?], ...]
clampToGroundNoWhether to clamp to ground

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.139.19
    • addedInput schema / properties / coordinates / items / items
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "entityId": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "entityId"
      +      ],
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. Changed6 schema fields changedv1.139.18
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / coordinates / items / anyOf
      Removed value: -[
      -  {
      -    "items": [
      -      {
      -        "description": "Longitude in decimal degrees",
      -        "maximum": 180,
      -        "minimum": -180,
      -        "type": "number"
      -      },
      -      {
      -        "description": "Latitude in decimal degrees",
      -        "maximum": 90,
      -        "minimum": -90,
      -        "type": "number"
      -      }
      -    ],
      -    "maxItems": 2,
      -    "minItems": 2,
      -    "type": "array"
      -  },
      -  {
      -    "items": [
      -      {
      -        "$ref": "#/properties/coordinates/items/anyOf/0/items/0"
      -      },
      -      {
      -        "$ref": "#/properties/coordinates/items/anyOf/0/items/1"
      -      },
      -      {
      -        "description": "Optional height in meters",
      -        "maximum": 50000000,
      -        "minimum": -12000,
      -        "type": "number"
      -      }
      -    ],
      -    "maxItems": 3,
      -    "minItems": 3,
      -    "type": "array"
      -  }
      -]
    • addedInput schema / properties / coordinates / items / maxItems
      Added value: +3
    • addedInput schema / properties / coordinates / items / minItems
      Added value: +2
    • addedInput schema / properties / coordinates / items / prefixItems
      Added value: +[
      +  {
      +    "description": "Longitude in decimal degrees",
      +    "maximum": 180,
      +    "minimum": -180,
      +    "type": "number"
      +  },
      +  {
      +    "description": "Latitude in decimal degrees",
      +    "maximum": 90,
      +    "minimum": -90,
      +    "type": "number"
      +  },
      +  {
      +    "description": "Optional height in meters",
      +    "maximum": 50000000,
      +    "minimum": -12000,
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / coordinates / items / type
      Added value: +"array"
  3. Changed11 schema fields changedv1.139.17
    • addedInput schema / properties / color / maxLength
      Added value: +64
    • addedInput schema / properties / color / minLength
      Added value: +1
    • addedInput schema / properties / coordinates / items / anyOf
      Added value: +[
      +  {
      +    "items": [
      +      {
      +        "description": "Longitude in decimal degrees",
      +        "maximum": 180,
      +        "minimum": -180,
      +        "type": "number"
      +      },
      +      {
      +        "description": "Latitude in decimal degrees",
      +        "maximum": 90,
      +        "minimum": -90,
      +        "type": "number"
      +      }
      +    ],
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "type": "array"
      +  },
      +  {
      +    "items": [
      +      {
      +        "$ref": "#/properties/coordinates/items/anyOf/0/items/0"
      +      },
      +      {
      +        "$ref": "#/properties/coordinates/items/anyOf/0/items/1"
      +      },
      +      {
      +        "description": "Optional height in meters",
      +        "maximum": 50000000,
      +        "minimum": -12000,
      +        "type": "number"
      +      }
      +    ],
      +    "maxItems": 3,
      +    "minItems": 3,
      +    "type": "array"
      +  }
      +]
    • addedInput schema / properties / coordinates / items / description
      Added value: +"Coordinate tuple [longitude, latitude, optional height]"
    • removedInput schema / properties / coordinates / items / items
      Removed value: -{
      -  "type": "number"
      -}
    • removedInput schema / properties / coordinates / items / type
      Removed value: -"array"
    • addedInput schema / properties / coordinates / maxItems
      Added value: +10000
    • addedInput schema / properties / coordinates / minItems
      Added value: +2
    • addedInput schema / properties / label / maxLength
      Added value: +200
    • addedInput schema / properties / width / maximum
      Added value: +64
    • addedInput schema / properties / width / minimum
      Added value: +1
  4. Changed6 schema fields changedv1.139.14
    • changedInput schema / properties / clampToGround / description
      Previous value: -"是否贴地"New value: +"Whether to clamp to ground"
    • changedInput schema / properties / color / description
      Previous value: -"线条颜色(CSS 格式)"New value: +"Line color (CSS format)"
    • changedInput schema / properties / coordinates / description
      Previous value: -"折线坐标数组 [[lon, lat, height?], ...]"New value: +"Polyline coordinates array [[lon, lat, height?], ...]"
    • changedInput schema / properties / label / description
      Previous value: -"折线标注文本"New value: +"Polyline label text"
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Target browser session ID for multi-browser routing (optional)",
      +  "type": "string"
      +}
    • changedInput schema / properties / width / description
      Previous value: -"线条宽度(像素)"New value: +"Line width (pixels)"
  5. First observedv1.139.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only provide readOnlyHint=false and destructiveHint=false, which are minimal. The description adds value by specifying the return schema ({ success, data: { entityId }, message? }) and instructs to keep entityId for removeEntity, disclosing that the tool creates a persistent entity that can later be removed. It does not mention side effects like persistence across sessions or overlay behavior, but it goes beyond the annotations.

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 only two sentences and front-loaded with the primary purpose. It avoids redundancy, condenses the return format and a key usage hint into the second sentence, and contains zero filler words.

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

Completeness5/5

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

With six parameters (one required), a rich input schema, and an output schema implicitly defined in the description, the tool is fully specified. The description explains the return value and points to removal, covering the necessary context for an agent to use the tool correctly without requiring additional details about return values or behavior.

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 each parameter (coordinates, color, width, label, sessionId, clampToGround) having its own detailed description. The tool description adds minimal parameter information beyond what the schema already provides, so it meets the baseline of 3 without compensating for any gaps.

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 states the tool draws a path or route from geographic coordinate tuples, using a specific verb ('draw') and resource ('path or route'), and it distinctly differs from siblings like addPolygon, addMarker, and addLabel. It also clarifies the return structure and entityId purpose.

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?

The description does not explicitly state when to use this tool versus alternatives like addPolygon or addGeoJsonPrimitive. The mention of 'path or route' implies use for line-based geometry, but no exclusions or alternative guidance is given. The return note about keeping entityId for removeEntity is a usage hint but not a direct guideline.

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