Skip to main content
Glama

Update location

update_location
Destructive

Overwrite fields on one location. Read it first (get_project_locations or get_location), then send ONLY the fields you changed — omitted fields are left untouched. IMPORTANT: a location is usually shared by several scenes across episodes, so this edit changes every scene that uses it. Check where it is used first; if the change is meant for one scene only, it needs a NEW location rather than an edit to this one. Editing name, short_description, visual_prompt, user_prompt, visual_style, aspect_ratio or spatial_layout marks the location stale, because its existing generated image no longer matches the description — regenerate the image if you want them back in sync. Editing mood, location_type, recurring or appears_in_episodes does not affect the image and leaves the stale flag alone. spatial_layout is the set bible: the named zones of the set and the fixed zone and height of each prop. Scenes must draw their spatial_geometry zones from it instead of inventing labels, so correcting it here fixes prop placement for every scene at once. Keep descriptions consistent with the owning character's status and the project's tone. This writes immediately and cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patchYesFields to change. Send only what you are changing.
location_idYesLocation id to update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / patch / properties / spatial_layout / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "layout_summary": {
      -        "type": "string"
      -      },
      -      "props": {
      -        "default": [],
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "co_located_with": {
      -              "default": [],
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "description": {
      -              "type": "string"
      -            },
      -            "height": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "movable": {
      -              "default": false,
      -              "type": "boolean"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "zone": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "zone",
      -            "height",
      -            "description"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "zones": {
      -        "default": [],
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "adjacent_to": {
      -              "default": [],
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "description": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "description"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "layout_summary"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "layout_summary": {
      +        "type": "string"
      +      },
      +      "props": {
      +        "default": [],
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "co_located_with": {
      +              "default": [],
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "description": {
      +              "type": "string"
      +            },
      +            "height": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "key_prop": {
      +              "type": "boolean"
      +            },
      +            "movable": {
      +              "default": false,
      +              "type": "boolean"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "zone": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "zone",
      +            "height",
      +            "description"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "zones": {
      +        "default": [],
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "adjacent_to": {
      +              "default": [],
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "description": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "description"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "layout_summary"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / patch / properties / spatial_layout
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "layout_summary": {
      +          "type": "string"
      +        },
      +        "props": {
      +          "default": [],
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "co_located_with": {
      +                "default": [],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "description": {
      +                "type": "string"
      +              },
      +              "height": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "movable": {
      +                "default": false,
      +                "type": "boolean"
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "zone": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "zone",
      +              "height",
      +              "description"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "zones": {
      +          "default": [],
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "adjacent_to": {
      +                "default": [],
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "description": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "description"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "layout_summary"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false / destructiveHint=true; the description goes well beyond that by disclosing blast radius (a shared location edit changes every scene using it), side effects (which field edits mark the location stale and which leave it alone), patch semantics (omitted fields untouched), and reversibility ("writes immediately and cannot be undone"). This is exactly the context a destructive mutation needs.

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-loaded with the operational facts (patch-only, shared, destructive) before the field-taxonomy detail, and each sentence carries distinct information. It is dense and on the long side for a tool description, but there is little pure padding to cut.

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

Completeness5/5

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

For a destructive 2-parameter mutation with a deeply nested patch object and no output schema, the description covers preconditions, sharing risk, stale-flag consequences, write immediacy, and irreversibility. An agent has everything needed to call it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema cannot: it groups fields by whether they invalidate the generated image, and defines spatial_layout as the set bible whose zones and prop heights scenes must draw from. That materially changes how an agent should populate those parameters.

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?

Opens with a specific verb+resource ("Overwrite fields on one location") and immediately distinguishes itself from the read siblings get_location / get_project_locations by telling the caller to read first. An agent can route between update_location, get_location, and generate_location_image without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use sequencing ("Read it first... then send ONLY the fields you changed"), explicit pre-condition ("Check where it is used first"), and a clear when-NOT branch: if the change is meant for one scene only, a NEW location is required rather than this edit. Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources