Skip to main content
Glama

setBasemap

Idempotent

Change the visible basemap style in a 3D globe. Select from dark, satellite, standard, OSM, ArcGIS, light, Tianditu, or Amap styles, or provide a custom URL template.

Instructions

Switch the visible basemap style. Returns { success, data: { basemap }, message? }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoCustom URL template with {x},{y},{z} placeholders. When provided, basemap param is ignored.
tokenNoToken for providers requiring authentication (e.g. Tianditu)
basemapNoBasemap type: dark=dark theme, satellite=satellite imagery, standard=standard, osm=OpenStreetMap, arcgis=ArcGIS streets, light=light theme, tianditu_vec=Tianditu vector, tianditu_img=Tianditu imagery, amap=Amap roads, amap_satellite=Amap satellitedark
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. Changed1 schema field changedv1.139.19
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "basemap": {
      +          "enum": [
      +            "dark",
      +            "satellite",
      +            "standard",
      +            "osm",
      +            "arcgis",
      +            "light",
      +            "tianditu_vec",
      +            "tianditu_img",
      +            "amap",
      +            "amap_satellite"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "basemap"
      +      ],
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.139.18
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. Changed6 schema fields changedv1.139.17
    • addedInput schema / properties / basemap / default
      Added value: +"dark"
    • addedInput schema / properties / token / maxLength
      Added value: +4096
    • addedInput schema / properties / token / minLength
      Added value: +1
    • addedInput schema / properties / url / maxLength
      Added value: +4096
    • addedInput schema / properties / url / minLength
      Added value: +1
    • removedInput schema / required
      Removed value: -[
      -  "basemap"
      -]
  4. Changed5 schema fields changedv1.139.14
    • changedInput schema / properties / basemap / description
      Previous value: -"底图类型:dark=暗色, satellite=卫星影像, standard=标准"New value: +"Basemap type: dark=dark theme, satellite=satellite imagery, standard=standard, osm=OpenStreetMap, arcgis=ArcGIS streets, light=light theme, tianditu_vec=Tianditu vector, tianditu_img=Tianditu imagery, amap=Amap roads, amap_satellite=Amap satellite"
    • changedInput schema / properties / basemap / enum
      Previous value: -[
      -  "dark",
      -  "satellite",
      -  "standard"
      -]New value: +[
      +  "dark",
      +  "satellite",
      +  "standard",
      +  "osm",
      +  "arcgis",
      +  "light",
      +  "tianditu_vec",
      +  "tianditu_img",
      +  "amap",
      +  "amap_satellite"
      +]
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Target browser session ID for multi-browser routing (optional)",
      +  "type": "string"
      +}
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "Token for providers requiring authentication (e.g. Tianditu)",
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Custom URL template with {x},{y},{z} placeholders. When provided, basemap param is ignored.",
      +  "type": "string"
      +}
  5. First observedv1.139.4

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, destructiveHint=false, and the description does not contradict them. It adds the return structure, but beyond that, it does not disclose any additional behavioral traits such as prerequisites, side effects, or authentication needs.

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

Conciseness5/5

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

The description is a single, tightly written sentence that states the core action and the return shape. There is zero redundancy or filler, making it highly concise and front-loaded.

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?

While the schema and annotations cover much, the description is minimal. It does not mention when to prefer url vs basemap, how the switch interacts with existing layers, or any session-specific behavior. Given the tool's side-effect nature (changing visible basemap), more context would be beneficial, but it is still adequate given the rich schema.

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%, and every parameter (url, token, basemap, sessionId) is fully described with types, constraints, and enums. The description adds no new semantics beyond what the schema already provides, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Switch the visible basemap style') with a specific verb and resource. It is unique among siblings (no other tool deals with basemaps), so it distinguishes well.

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 provide explicit when-to-use guidance or mention alternatives. Since no sibling directly relates to basemaps, this is less critical, but it also omits context like custom URL vs presets or session-specific behavior.

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