Skip to main content
Glama

updateEntity

Idempotent

Change an entity's location, appearance, label, or visibility with new coordinates or CSS color. Provides clear success or error feedback for 3D scene updates.

Instructions

Update the position, appearance, label, or visibility of an entity. Returns { success: boolean, data?: unknown, message?: string, error?: string }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
showNoWhether to show
colorNoNew color (CSS format)
labelNoNew label text
scaleNoNew scale factor
entityIdYesEntity ID (returned by addMarker/addPolyline etc.)
positionNoNew position coordinates
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": {},
      +    "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. Changed16 schema fields changedv1.139.17
    • addedInput schema / properties / color / maxLength
      Added value: +64
    • addedInput schema / properties / color / minLength
      Added value: +1
    • addedInput schema / properties / entityId / maxLength
      Added value: +200
    • addedInput schema / properties / entityId / minLength
      Added value: +1
    • addedInput schema / properties / label / maxLength
      Added value: +200
    • removedInput schema / properties / position / properties / height / description
      Removed value: -"高度(米)"
    • addedInput schema / properties / position / properties / height / maximum
      Added value: +50000000
    • addedInput schema / properties / position / properties / height / minimum
      Added value: +-12000
    • removedInput schema / properties / position / properties / latitude / description
      Removed value: -"纬度(-90 ~ 90)"
    • addedInput schema / properties / position / properties / latitude / maximum
      Added value: +90
    • addedInput schema / properties / position / properties / latitude / minimum
      Added value: +-90
    • removedInput schema / properties / position / properties / longitude / description
      Removed value: -"经度(-180 ~ 180)"
    • addedInput schema / properties / position / properties / longitude / maximum
      Added value: +180
    • addedInput schema / properties / position / properties / longitude / minimum
      Added value: +-180
    • addedInput schema / properties / scale / maximum
      Added value: +100000
    • addedInput schema / properties / scale / minimum
      Added value: +0
  4. Changed10 schema fields changedv1.139.14
    • changedInput schema / properties / color / description
      Previous value: -"新颜色(CSS 格式)"New value: +"New color (CSS format)"
    • changedInput schema / properties / entityId / description
      Previous value: -"实体ID(addMarker/addPolyline 等返回的 entityId)"New value: +"Entity ID (returned by addMarker/addPolyline etc.)"
    • changedInput schema / properties / label / description
      Previous value: -"新标注文本"New value: +"New label text"
    • changedInput schema / properties / position / description
      Previous value: -"新位置坐标"New value: +"New position coordinates"
    • addedInput schema / properties / position / properties / height / description
      Added value: +"高度(米)"
    • addedInput schema / properties / position / properties / latitude / description
      Added value: +"纬度(-90 ~ 90)"
    • addedInput schema / properties / position / properties / longitude / description
      Added value: +"经度(-180 ~ 180)"
    • changedInput schema / properties / scale / description
      Previous value: -"新缩放比例"New value: +"New scale factor"
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Target browser session ID for multi-browser routing (optional)",
      +  "type": "string"
      +}
    • changedInput schema / properties / show / description
      Previous value: -"是否显示"New value: +"Whether to show"
  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 declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, which cover safety and idempotency. The description adds the return format (success, data, message, error) but does not mention partial vs. full updates, behavior on non-existent entities, or error conditions, which would enhance transparency.

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 sentence stating the action and return type, with no filler. It is front-loaded with the purpose and concise enough to be quickly parsed.

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 annotations and output schema cover many aspects, the description does not address prerequisites (e.g., entity must exist) or specific error scenarios. It is adequate for basic usage but lacks detail on failure modes and the effect of partial updates, which would make it more complete.

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 each parameter has a description. The tool description adds no additional meaning beyond the schema, so it meets the baseline but does not provide extra guidance on parameter relationships or usage nuances.

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 tool updates an entity's position, appearance, label, or visibility. This is a specific verb (update) and resource (entity), and it distinguishes from sibling tools like addMarker or removeEntity by focusing on mutation of existing entities.

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

Usage Guidelines3/5

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

The description does not explicitly state when to use this tool versus alternatives like addMarker or removeEntity. It implies usage for modifying existing entities but lacks explicit guidance on distinctions or exclusions, leaving the agent to infer from sibling names.

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