Skip to main content
Glama

addGeoJsonLayer

Add styled GeoJSON Point, LineString, or Polygon layers to a Cesium 3D globe. Supports color, opacity, choropleth styling and returns an 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)
resourceIdNoStored GeoJSON resource ID (mutually exclusive with data or url)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.139.22
    • addedInput schema / properties / resourceId
      Added value: +{
      +  "description": "Stored GeoJSON resource ID (mutually exclusive with data or url)",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. 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"
      +}
  3. 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"
  4. 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
  5. 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"
      -]
  6. First observedv1.139.4

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the response envelope shape and points the agent at highlight for the returned id, which is genuinely useful, but it says nothing about side effects, whether repeated calls with the same id overwrite, or staging/commit behavior of an idempotentHint=false write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, front-loaded with the action and geometry types, with no filler. The return-shape sentence is somewhat redundant given an output schema exists, which keeps it from a 5.

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?

Schema and output schema are both rich, so most detail is carried elsewhere. Still, for a 7-param write tool in a crowded layer-creation family, the description omits how it relates to sibling layer tools and any behavioral caveats beyond the returned id, leaving meaningful gaps an agent must resolve from other sources.

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%, so the seven parameters — including the mutual exclusivity of data/url/resourceId and the full style object — are already documented in structured fields. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Add a styled GeoJSON ... layer') and enumerates supported geometry types (Point, LineString, Polygon), which is more than a restatement of the name. It does not, however, differentiate itself from close siblings such as addGeoJsonPrimitive, addPolygon, 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 choose this over addGeoJsonPrimitive or the addPolygon/addPolyline/addMarker siblings, and no prerequisites or exclusions stated. The agent is left to infer usage entirely from the name and schema.

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