Skip to main content
Glama

update_entity

Modifies a single builder entity via PATCH by sending only changed fields, ideal for targeted edits; use batch updates instead when changing three or more entities in a row.

Instructions

Modify an entity (PATCH). Send only the fields that change. A targeted edit of one entity goes here; from three edits in a row use update_entities: one call instead of N, all are checked before writing, rollback by applyId. A nested array present in the body is overwritten entirely: an item without id is created anew, and one missing from the array is deleted. A relation absent from the body is not touched at all, so to change one thing deep inside, send only the path of ids down to it: {requests: [{id, response: {id, cfsMappings: [...]}}]} changes the response mappings and touches neither request fields nor response fields. Before editing, read the current state: get_entity with expand. An edit after which the backend itself deletes neighbouring entities (a wizard step's lists: all following steps) won't go through without confirmed: true.

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": {
      "resource": "<resource>",
      "body": "<body>"
    },
    "name": "update_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoEntity ID
bodyYes
appIdNoApp ID. Not needed only for resource: "apps"
dryRunNo
resourceYesBuilder resource the operation is performed on
confirmedNoThe user agreed to what the edit will delete (the tool lists it in the refusal without confirmed)
parentIdsNoParent IDs: {actionId}, {cfsId}, {enumId}, {wizardId}, {creatorId}
versionIdNoVersion ID. Not needed for resource: "apps" and "versions". Only a private version is writable; ensure_editable_version tells you which one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: PATCH merge semantics, wholesale array overwrite with create/delete-by-omission, untouched relations for absent keys, and backend-initiated cascade deletion that blocks without confirmed. It omits what the call returns and what dryRun actually does, which is a real but smaller gap than the semantics it does disclose.

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 and the routing rule, then layered semantics in decreasing priority; almost every sentence carries a distinct constraint. The nested-path example is dense but earns its space by making the merge rule concrete.

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 an 8-parameter mutation tool with no annotations and no output schema, the description supplies the destructive-edit warning, the version/editability prerequisite pointer, and the body merge model that the schema cannot express. Only dryRun and return behavior are unaccounted for, which are minor against what is covered.

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 75%, and the description adds substantial meaning beyond it: the body's partial-merge rules, the deep-path idiom with a worked example, and the practical meaning of confirmed (agreement to listed deletions). The dryRun boolean is left entirely unexplained in both schema and description, keeping it below a 5.

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?

States a specific verb and resource ("Modify an entity (PATCH)") and immediately scopes it as a targeted single-entity edit, explicitly contrasting with update_entities. An agent can distinguish it from the batch sibling and from get_entity 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?

Gives a concrete decision rule against the alternative ('from three edits in a row use update_entities'), a prerequisite step ('before editing, read the current state: get_entity with expand'), and the exact condition that requires confirmed=true. When-to-use, when-not, and alternatives are all present.

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