Skip to main content
Glama

addGeoJsonLayer

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

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

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
flyToNoAutomatically frame the layer (default true); use false when controlling the camera separately
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

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.139.23
    • addedInput schema / properties / flyTo
      Added value: +{
      +  "description": "Automatically frame the layer (default true); use false when controlling the camera separately",
      +  "type": "boolean"
      +}
  2. 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"
      +}
  3. 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"
      +}
  4. 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"
  5. 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
  6. 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"
      -]
  7. First observedv1.139.4

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), lowering the bar. The description adds the highlight workflow hint, but the return-shape narrative is largely redundant with the existing output schema, and it says nothing about id-collision behavior or persistence.

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?

Front-loads the core action in one sentence and follows with a return/hand-off note. Reasonably tight, though the return-shape enumeration partially duplicates the output schema.

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?

For a complex tool with nested objects and eight parameters, the schema and output schema carry most of the burden, and the description is adequate on geometry and return shape. It falls short on routing versus the near-identical addGeoJsonPrimitive sibling, which is the main thing an agent needs to decide correctly.

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 all eight parameters are already documented in the schema. The description mentions GeoJSON geometry types and styling but adds no syntax or format detail beyond what the schema already provides; baseline 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 Point, LineString, or Polygon layer'), so the agent knows exactly what is created. However, it does not distinguish this from the very similar sibling addGeoJsonPrimitive, nor from addPolygon/addPolyline, leaving a genuine ambiguity unresolved.

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 'use id with highlight' clause gives one follow-up workflow hint, but there is no explicit when-to-use or when-not guidance against addGeoJsonPrimitive, addPolygon, or addPolyline. Usage is only implied by the layer-type framing.

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