Skip to main content
Glama

create_entities

Create up to 100 linked Albato Builder entities in one ordered batch, validate with dryRun, and roll back created records if any write fails.

Instructions

A batch of creations (POST) in one call — up to 100 operations in one version: items of a fixed list, fields, set mappings, several actions. An operation is like a create_entity call: {resource, parentIds, body}. They are written strictly in order (the order also sets positions), and an operation may reference an ID created earlier in the same batch: the string "$N" in parentIds or body is the ID from operation N (1-based). This way a list and its items are created in one call: [{resource: "enums", body}, {resource: "enums/items", parentIds: {enumId: "$1"}, body}]. First all operations are validated: those without references — fully, those with references — against the schema (builder rules for them — right before the write), and if even one fails, nothing is written. The first write error stops the batch; what was created is deleted with revert_fixes by applyId (confirmed: true), in reverse order. An operation's pick — which fields of the created entity to return (["fields.code"] — the action's field IDs); without it — only id. dryRun: true — validation only. Submitting for moderation and versions — not here.

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": "create_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesOperations in order: [{resource, parentIds, body, pick}]
appIdYesApp ID
dryRunNoOnly validate all operations, create 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 provided, the description carries the full burden and does: it discloses strict sequential ordering (which also sets positions), up-front validation with the rule that "if even one fails, nothing is written," and the failure path where the first write error halts the batch and creations are undone via revert_fixes with applyId and confirmed: true in reverse order. That is unusually complete mutation semantics for a no-annotation tool.

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 batch/POST purpose and the size limit, and every clause is informational rather than filler. Some sentences are syntactically overloaded ("those with references — against the schema (builder rules for them — right before the write)"), which slows comprehension of otherwise important behavior.

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 high-complexity batch mutation tool with no annotations and no output schema, the description covers ordering, reference resolution, atomicity, rollback, error behavior, return shaping via pick, and dry-run mode. The only omission is the output envelope itself, which is largely implied by the pick/id note.

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 would be 3; the description nonetheless adds real meaning by explaining the "$N" reference convention with a worked example, what pick controls and its default (id only), and that dryRun means validation only. appId and versionId semantics are left entirely to the schema, which keeps 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?

"A batch of creations (POST) in one call" states a specific verb (create), the batch/transactional nature, and the resource scope, and the analogy "An operation is like a create_entity call" distinguishes it from the singular sibling. The limit of 100 operations and the example payload make the purpose concrete.

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?

It establishes the usage context (multi-resource creation with intra-batch references, usable for "a list and its items ... in one call") and adds an explicit exclusion: "Submitting for moderation and versions — not here." It never explicitly tells the agent when to prefer create_entity over this batch tool, so the alternative-selection rule is inferred rather than stated.

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