Skip to main content
Glama

update_entity

Destructive

Modifies one existing ERD entity (kind='entity'): name, desc, colorKey, geometry (x, y, width, height) and kindMetadata (the Postgres chips: schemaNamespace, rlsPolicy, piiFields, expectedRowCount). Only the fields provided change, except kindMetadata, which REPLACES the whole block: the complete block is expected ({} clears everything, an absent kindMetadata leaves it untouched). Columns belong to update_field (one) and add_field (a new one); relations belong to update_relation. The entity's id and parent cannot be changed. Placement belongs to the layout engine: with x/y absent, auto_layout_mcd (or the post-call tidy-up) places the entity, and either can recompute a hand-set position. A rename does not rename the SQL table: generated SQL names the table from the entity id. REFUSED with an error, nothing written, on an unknown id or a block that is not an ERD entity. add_entity creates an entity, delete_entity removes one with everything that depends on it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "update_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoNew X position in pixels; with x/y absent, auto_layout_mcd places the entity
yNoNew Y position in pixels; with x/y absent, auto_layout_mcd places the entity
idYesID of the entity to modify (a block with kind='entity'; it never changes)
descNoNew short description of the entity
nameNoNew display name (the SQL table name follows the entity id, not this name)
widthNoNew width in pixels
heightNoNew height in pixels
colorKeyNoNew color of the entity (ColorKey)
kindMetadataNoPostgres metadata of the table: schemaNamespace (chip 'auth.users'), rlsPolicy (chip 🔒 + DDL export), piiFields (GDPR), expectedRowCount. REPLACES the existing block; {} clears everything, an omitted field is not touched.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed8 schema fields changed
    • addedInput schema / properties / colorKey / description
      Added value: +"New color of the entity (ColorKey)"
    • addedInput schema / properties / desc / description
      Added value: +"New short description of the entity"
    • addedInput schema / properties / height / description
      Added value: +"New height in pixels"
    • changedInput schema / properties / id / description
      Previous value: -"ID of the entity"New value: +"ID of the entity to modify (a block with kind='entity'; it never changes)"
    • addedInput schema / properties / name / description
      Added value: +"New display name (the SQL table name follows the entity id, not this name)"
    • addedInput schema / properties / width / description
      Added value: +"New width in pixels"
    • addedInput schema / properties / x / description
      Added value: +"New X position in pixels; with x/y absent, auto_layout_mcd places the entity"
    • addedInput schema / properties / y / description
      Added value: +"New Y position in pixels; with x/y absent, auto_layout_mcd places the entity"
  4. Changed6 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / id / description
      Previous value: -"ID de l'entité"New value: +"ID of the entity"
    • changedInput schema / properties / kindMetadata / description
      Previous value: -"Métadonnées Postgres de la table : schemaNamespace (chip 'auth.users'), rlsPolicy (chip 🔒 + export DDL), piiFields (RGPD), expectedRowCount. REMPLACE le bloc existant ; {} efface tout, un champ omis n'est pas touché."New value: +"Postgres metadata of the table: schemaNamespace (chip 'auth.users'), rlsPolicy (chip 🔒 + DDL export), piiFields (GDPR), expectedRowCount. REPLACES the existing block; {} clears everything, an omitted field is not touched."
    • changedInput schema / properties / kindMetadata / properties / piiFields / description
      Previous value: -"Champs porteurs de données personnelles — point rouge RGPD sur la rangée + tooltip."New value: +"Fields carrying personal data — red GDPR dot on the row + tooltip."
    • changedInput schema / properties / kindMetadata / properties / piiFields / items / properties / fieldId / description
      Previous value: -"ID du champ concerné (celui passé à add_field)"New value: +"ID of the field concerned (the one passed to add_field)"
    • changedInput schema / properties / kindMetadata / properties / piiFields / items / properties / piiClass / description
      Previous value: -"Nature de la donnée personnelle"New value: +"Nature of the personal data"
  5. Changed1 schema field changed
    • changedInput schema / properties / kindMetadata / description
      Previous value: -"Métadonnées Postgres de la table : schemaNamespace (chip 'auth.users'), rlsPolicy (chip 🔒 + export DDL), piiFields (RGPD), expectedRowCount. REMPLACE le bloc existant ; {} efface tout, omettre le champ ne touche à rien."New value: +"Métadonnées Postgres de la table : schemaNamespace (chip 'auth.users'), rlsPolicy (chip 🔒 + export DDL), piiFields (RGPD), expectedRowCount. REMPLACE le bloc existant ; {} efface tout, un champ omis n'est pas touché."
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, and the description goes well beyond that by spelling out partial-update semantics ('Only the fields provided change'), a genuine exception (`kindMetadata` REPLACES the whole block, `{}` clears, absent leaves untouched), immutability ('id and parent cannot be changed'), and a non-obvious side effect (a rename does not rename the SQL table; auto-layout or the tidy-up can recompute a hand-set position). The refusal behavior and the fact nothing is written on failure add real operational context not present in the annotations.

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 verb+resource and the mutation semantics; each subsequent clause covers routing, refusal, or side effects rather than restating the schema. It is dense with parentheticals and semicolon-chained clauses, which makes it slightly harder to scan than it needs to be, but no sentence is filler.

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 10-parameter mutation tool with a nested object and no output schema, the definition covers patch semantics, the destructive-replace exception, immutable fields, side effects on placement and SQL naming, sibling routing, and failure modes. Nothing an agent needs in order to invoke it safely is missing.

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; the description still adds meaning by grouping the geometry fields under the layout-engine caveat and by flagging that name is display-only while the SQL table name follows the entity id. The replace-vs-patch distinction for kindMetadata clarifies the single riskiest parameter, though expectedProjectId is left entirely to the schema.

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 plus a discriminator ('Modifies one existing ERD entity (kind='entity')') and enumerates exactly which fields are mutable (name, desc, colorKey, geometry, kindMetadata). It explicitly disclaims the resources handled by siblings (columns -> update_field/add_field, relations -> update_relation), so an agent can separate this from update_field and update_relation without opening either 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?

Names the alternatives and the conditions that select them: columns go to update_field (one) or add_field (a new one), relations to update_relation, creation to add_entity, removal to delete_entity, and placement to auto_layout_mcd. It also states a negative condition with the outcome ('REFUSED with an error, nothing written, on an unknown id or a block that is not an ERD entity'), which is unusually actionable.

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.