Skip to main content
Glama

addGeoJsonLayer

Add styled GeoJSON points, lines, or polygons as a layer on a 3D Cesium globe. Returns a layer ID for highlighting.

Instructions

Add a styled GeoJSON Point, LineString, or Polygon layer. Returns { success, data: { id, name, type, visible, color, dataRefId? }, message? }; use id with highlight.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoLayer ID (auto-generated if omitted)
urlNoGeoJSON file URL (mutually exclusive with data, fetched in browser)
dataNoGeoJSON FeatureCollection object (mutually exclusive with url)
nameNoLayer display name
styleNoStyle config (color, opacity, pointSize, choropleth, category)
sessionIdNoTarget browser session ID for multi-browser routing (optional)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.139.19
    • changedInput schema / properties / data / properties / features / items / properties / geometry / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "description": "Coordinate tuple [longitude, latitude, optional height]",
      -        "maxItems": 3,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "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"
      -          }
      -        ],
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "Point"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "items": {
      -          "description": "Coordinate tuple [longitude, latitude, optional height]",
      -          "maxItems": 3,
      -          "minItems": 2,
      -          "prefixItems": [
      -            {
      -              "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"
      -            }
      -          ],
      -          "type": "array"
      -        },
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "LineString"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "items": {
      -          "items": {
      -            "description": "Coordinate tuple [longitude, latitude, optional height]",
      -            "maxItems": 3,
      -            "minItems": 2,
      -            "prefixItems": [
      -              {
      -                "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"
      -              }
      -            ],
      -            "type": "array"
      -          },
      -          "minItems": 4,
      -          "type": "array"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "Polygon"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "description": "Coordinate tuple [longitude, latitude, optional height]",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 3,
      +        "minItems": 2,
      +        "prefixItems": [
      +          {
      +            "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"
      +          }
      +        ],
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "Point"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "items": {
      +          "description": "Coordinate tuple [longitude, latitude, optional height]",
      +          "items": {
      +            "type": "number"
      +          },
      +          "maxItems": 3,
      +          "minItems": 2,
      +          "prefixItems": [
      +            {
      +              "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"
      +            }
      +          ],
      +          "type": "array"
      +        },
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "LineString"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "items": {
      +          "items": {
      +            "description": "Coordinate tuple [longitude, latitude, optional height]",
      +            "items": {
      +              "type": "number"
      +            },
      +            "maxItems": 3,
      +            "minItems": 2,
      +            "prefixItems": [
      +              {
      +                "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"
      +              }
      +            ],
      +            "type": "array"
      +          },
      +          "minItems": 4,
      +          "type": "array"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "Polygon"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "color": {
      +          "type": "string"
      +        },
      +        "dataRefId": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "type": "string"
      +        },
      +        "visible": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "type",
      +        "visible",
      +        "color"
      +      ],
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. Changed7 schema fields changedv1.139.18
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / data / properties / features / items / properties / geometry / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "anyOf": [
      -          {
      -            "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/data/properties/features/items/properties/geometry/anyOf/0/properties/coordinates/anyOf/0/items/0"
      -              },
      -              {
      -                "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/0/properties/coordinates/anyOf/0/items/1"
      -              },
      -              {
      -                "description": "Optional height in meters",
      -                "maximum": 50000000,
      -                "minimum": -12000,
      -                "type": "number"
      -              }
      -            ],
      -            "maxItems": 3,
      -            "minItems": 3,
      -            "type": "array"
      -          }
      -        ],
      -        "description": "Coordinate tuple [longitude, latitude, optional height]"
      -      },
      -      "type": {
      -        "const": "Point",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "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/data/properties/features/items/properties/geometry/anyOf/1/properties/coordinates/items/anyOf/0/items/0"
      -                },
      -                {
      -                  "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/1/properties/coordinates/items/anyOf/0/items/1"
      -                },
      -                {
      -                  "description": "Optional height in meters",
      -                  "maximum": 50000000,
      -                  "minimum": -12000,
      -                  "type": "number"
      -                }
      -              ],
      -              "maxItems": 3,
      -              "minItems": 3,
      -              "type": "array"
      -            }
      -          ],
      -          "description": "Coordinate tuple [longitude, latitude, optional height]"
      -        },
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "LineString",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "coordinates": {
      -        "items": {
      -          "items": {
      -            "anyOf": [
      -              {
      -                "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/data/properties/features/items/properties/geometry/anyOf/2/properties/coordinates/items/items/anyOf/0/items/0"
      -                  },
      -                  {
      -                    "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/2/properties/coordinates/items/items/anyOf/0/items/1"
      -                  },
      -                  {
      -                    "description": "Optional height in meters",
      -                    "maximum": 50000000,
      -                    "minimum": -12000,
      -                    "type": "number"
      -                  }
      -                ],
      -                "maxItems": 3,
      -                "minItems": 3,
      -                "type": "array"
      -              }
      -            ],
      -            "description": "Coordinate tuple [longitude, latitude, optional height]"
      -          },
      -          "minItems": 4,
      -          "type": "array"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "Polygon",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "coordinates"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / data / properties / features / items / properties / geometry / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "description": "Coordinate tuple [longitude, latitude, optional height]",
      +        "maxItems": 3,
      +        "minItems": 2,
      +        "prefixItems": [
      +          {
      +            "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"
      +          }
      +        ],
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "Point"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "items": {
      +          "description": "Coordinate tuple [longitude, latitude, optional height]",
      +          "maxItems": 3,
      +          "minItems": 2,
      +          "prefixItems": [
      +            {
      +              "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"
      +            }
      +          ],
      +          "type": "array"
      +        },
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "LineString"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coordinates": {
      +        "items": {
      +          "items": {
      +            "description": "Coordinate tuple [longitude, latitude, optional height]",
      +            "maxItems": 3,
      +            "minItems": 2,
      +            "prefixItems": [
      +              {
      +                "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"
      +              }
      +            ],
      +            "type": "array"
      +          },
      +          "minItems": 4,
      +          "type": "array"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "Polygon"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "coordinates"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / data / properties / features / items / properties / properties / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / data / properties / features / items / properties / properties / type
      Added value: +[
      +  "object",
      +  "null"
      +]
    • removedInput schema / properties / data / properties / features / items / properties / type / type
      Removed value: -"string"
    • removedInput schema / properties / data / properties / type / type
      Removed value: -"string"
  3. Changed11 schema fields changedv1.139.17
    • changedInput schema / properties / data / additionalProperties
      Previous value: -{}New value: +false
    • addedInput schema / properties / data / properties
      Added value: +{
      +  "features": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "geometry": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "coordinates": {
      +                  "anyOf": [
      +                    {
      +                      "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/data/properties/features/items/properties/geometry/anyOf/0/properties/coordinates/anyOf/0/items/0"
      +                        },
      +                        {
      +                          "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/0/properties/coordinates/anyOf/0/items/1"
      +                        },
      +                        {
      +                          "description": "Optional height in meters",
      +                          "maximum": 50000000,
      +                          "minimum": -12000,
      +                          "type": "number"
      +                        }
      +                      ],
      +                      "maxItems": 3,
      +                      "minItems": 3,
      +                      "type": "array"
      +                    }
      +                  ],
      +                  "description": "Coordinate tuple [longitude, latitude, optional height]"
      +                },
      +                "type": {
      +                  "const": "Point",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "coordinates"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "coordinates": {
      +                  "items": {
      +                    "anyOf": [
      +                      {
      +                        "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/data/properties/features/items/properties/geometry/anyOf/1/properties/coordinates/items/anyOf/0/items/0"
      +                          },
      +                          {
      +                            "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/1/properties/coordinates/items/anyOf/0/items/1"
      +                          },
      +                          {
      +                            "description": "Optional height in meters",
      +                            "maximum": 50000000,
      +                            "minimum": -12000,
      +                            "type": "number"
      +                          }
      +                        ],
      +                        "maxItems": 3,
      +                        "minItems": 3,
      +                        "type": "array"
      +                      }
      +                    ],
      +                    "description": "Coordinate tuple [longitude, latitude, optional height]"
      +                  },
      +                  "minItems": 2,
      +                  "type": "array"
      +                },
      +                "type": {
      +                  "const": "LineString",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "coordinates"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "coordinates": {
      +                  "items": {
      +                    "items": {
      +                      "anyOf": [
      +                        {
      +                          "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/data/properties/features/items/properties/geometry/anyOf/2/properties/coordinates/items/items/anyOf/0/items/0"
      +                            },
      +                            {
      +                              "$ref": "#/properties/data/properties/features/items/properties/geometry/anyOf/2/properties/coordinates/items/items/anyOf/0/items/1"
      +                            },
      +                            {
      +                              "description": "Optional height in meters",
      +                              "maximum": 50000000,
      +                              "minimum": -12000,
      +                              "type": "number"
      +                            }
      +                          ],
      +                          "maxItems": 3,
      +                          "minItems": 3,
      +                          "type": "array"
      +                        }
      +                      ],
      +                      "description": "Coordinate tuple [longitude, latitude, optional height]"
      +                    },
      +                    "minItems": 4,
      +                    "type": "array"
      +                  },
      +                  "minItems": 1,
      +                  "type": "array"
      +                },
      +                "type": {
      +                  "const": "Polygon",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "coordinates"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "id": {
      +          "type": [
      +            "string",
      +            "number"
      +          ]
      +        },
      +        "properties": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Feature attributes used for labels and thematic styling"
      +        },
      +        "type": {
      +          "const": "Feature",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "geometry",
      +        "properties"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "type": {
      +    "const": "FeatureCollection",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / data / required
      Added value: +[
      +  "type",
      +  "features"
      +]
    • addedInput schema / properties / id / maxLength
      Added value: +100
    • addedInput schema / properties / id / minLength
      Added value: +1
    • addedInput schema / properties / name / maxLength
      Added value: +200
    • addedInput schema / properties / name / minLength
      Added value: +1
    • changedInput schema / properties / style / additionalProperties
      Previous value: -{}New value: +false
    • addedInput schema / properties / style / properties
      Added value: +{
      +  "category": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "colors": {
      +        "items": {
      +          "description": "CSS color such as #3B82F6 or rgba(59,130,246,0.8)",
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "field": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field"
      +    ],
      +    "type": "object"
      +  },
      +  "choropleth": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "breaks": {
      +        "items": {
      +          "type": "number"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "colors": {
      +        "items": {
      +          "description": "CSS color such as #3B82F6 or rgba(59,130,246,0.8)",
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "field": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "breaks",
      +      "colors"
      +    ],
      +    "type": "object"
      +  },
      +  "color": {
      +    "description": "CSS color such as #3B82F6 or rgba(59,130,246,0.8)",
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "gradient": {
      +    "items": {
      +      "description": "CSS color such as #3B82F6 or rgba(59,130,246,0.8)",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "type": "array"
      +  },
      +  "opacity": {
      +    "maximum": 1,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "pointSize": {
      +    "maximum": 128,
      +    "minimum": 1,
      +    "type": "number"
      +  },
      +  "randomColor": {
      +    "type": "boolean"
      +  },
      +  "strokeWidth": {
      +    "maximum": 64,
      +    "minimum": 0,
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / url / maxLength
      Added value: +4096
    • addedInput schema / properties / url / minLength
      Added value: +1
  4. Changed7 schema fields changedv1.139.14
    • changedInput schema / properties / data / description
      Previous value: -"GeoJSON FeatureCollection 对象"New value: +"GeoJSON FeatureCollection object (mutually exclusive with url)"
    • changedInput schema / properties / id / description
      Previous value: -"图层ID(不传则自动生成)"New value: +"Layer ID (auto-generated if omitted)"
    • changedInput schema / properties / name / description
      Previous value: -"图层显示名称"New value: +"Layer display name"
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Target browser session ID for multi-browser routing (optional)",
      +  "type": "string"
      +}
    • changedInput schema / properties / style / description
      Previous value: -"样式配置(color, opacity, pointSize, choropleth, category)"New value: +"Style config (color, opacity, pointSize, choropleth, category)"
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "GeoJSON file URL (mutually exclusive with data, fetched in browser)",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "data"
      -]
  5. First observedv1.139.4

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not idempotent, not destructive), and the description adds the return shape and a practical pointer to use the returned id with highlight. No contradictions; it confirms the additive nature of the operation.

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?

Two sentences, front-loaded with the core purpose and a compact return signature/tip. No filler or redundant 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 a moderately complex tool with nested schema, the description covers the core behavior, supported geometries, return format, and a highlight integration tip. It relies on the schema for parameter details, which is acceptable given 100% schema coverage.

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 schema already documents all six parameters with descriptions, so the description does not need to elaborate. It mentions 'styled' which maps to the style parameter, but doesn't add new semantic value beyond what the schema provides.

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 uses a specific verb ('Add') and resource ('styled GeoJSON Point, LineString, or Polygon layer'), clearly distinguishing it from sibling tools like addMarker or addGeoJsonPrimitive. It also notes the return id for highlight, reinforcing its function.

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 over alternatives like addGeoJsonPrimitive. It provides a post-use hint ('use id with highlight') but no selection criteria or exclusions, leaving the choice to inference.

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