Skip to main content
Glama

update_entities

Apply up to 100 entity edits in one validated batch, with dry-run checks and sequential writes; if one operation fails, revert prior writes using the returned applyId.

Instructions

A batch of edits (PATCH) in one call — up to 100 operations in one version. Each operation is like an update_entity call: {resource, id, parentIds, body, confirmed}. First all operations are validated, and if even one fails, nothing is written. Then writes go one by one (operations on the same entity — in order); the first error stops the rest from starting. The API has no transactions: what was already written is reverted with revert_fixes by applyId from the response (confirmed: true). Edits of arrays of objects (fields: [...]) can't be reverted — the "before" state of such operations is kept only in the audit log. For bulk field edits use scalar bodies per field (resource "actions/fields"), not arrays: those can be reverted. dryRun: true — validation only.

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": {
      "appId": "<appId>",
      "versionId": "<versionId>",
      "ops": "<ops>"
    },
    "name": "update_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesOperations: [{resource, id, parentIds, body, confirmed}]
appIdYesApp ID
dryRunNoOnly validate all operations, write nothing
versionIdYesVersion ID, shared by all operations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/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 so: it discloses the two-phase validate-then-write flow, all-or-nothing validation, sequential non-transactional writes, first-error-stops semantics, and the exact recovery path (revert_fixes with applyId from the response, confirmed: true). It also flags the critical asymmetry that array-of-object edits cannot be reverted and survive only in the audit log — behavior an agent could not otherwise know.

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 core action and size limit, then flows into validation, partial-write risk, and the revert caveat in a logical order with no filler. The prose is dense and clause-heavy, which costs some readability, but every sentence carries operational information.

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 bulk, non-transactional mutation tool with no annotations and no output schema, the definition covers failure modes, recovery, durability limits, and the response value needed for revert. An agent has enough to decide whether to call it and how to handle a partial failure.

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 meaning the schema does not: the 100-operation cap, the shared version scope across ops, the ordering rule for ops on the same entity, and that 'confirmed' means the user accepted the cascading deletion. It does not expand on parentIds, which remains opaque beyond its name.

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 — batch edits via PATCH, up to 100 operations sharing one version — and distinguishes it from update_entity by describing each op as 'like an update_entity call'. An agent can tell this is the bulk variant without opening the schema.

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

Usage Guidelines4/5

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

Gives explicit guidance on the array-vs-scalar choice ('For bulk field edits use scalar bodies per field (resource "actions/fields"), not arrays') and explains what dryRun:true is for, which is real when-to-use steering. It stops short of an explicit 'use update_entity instead for a single edit' routing statement, so the alternative is implied rather than declared.

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