Skip to main content
Glama

restore_entity

Restore a deleted Albato app entity from a previous version to recover its prior state. Triggers and actions are restored by clearing their deprecated mark while keeping current content.

Instructions

Restore a deleted entity. Works only if it exists in a previous version: the entity is copied from there as it was there, and this version's edits don't come back. Something created in this version and deleted can't be restored. Children and wizard steps deleted by cascade don't come back with the parent. Triggers and actions differ: on deletion they are only marked deprecated, and restore_entity removes the mark; the content stays as it was in this version.

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>"
    },
    "name": "restore_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoEntity ID
appIdNoApp ID. Not needed only for resource: "apps"
resourceYesBuilder resource the operation is performed on
parentIdsNo
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/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 well: it discloses that edits from the current version are lost, that cascade-deleted children and wizard steps are not restored, and that triggers/actions follow different semantics (deprecation mark removal, content preserved as-is). It omits auth/permission requirements and what the call returns, but the destructive and partial-restore behavior is unusually well disclosed.

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?

Four sentences, all load-bearing, front-loaded with the core action followed by the conditions and the exception carve-outs. The final sentence about triggers and actions is long and slightly convoluted, costing a point on readability.

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 5-parameter mutation tool with no annotations and no output schema, the description covers the hard parts an agent would otherwise get wrong: version scoping, unrecoverable data, cascade behavior, and special handling for triggers/actions. Remaining gaps (parentIds, response shape) are minor relative to what is disclosed.

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 80%, so the schema documents resource, appId, id, and versionId adequately; the description adds only indirect meaning by tying behavior to 'this version' vs. a previous version. The nested parentIds object gets no explanation in either place, and no parameter is discussed explicitly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Restore a deleted entity") and immediately distinguishes the operation from a recreate: content is copied from the previous version, and current-version edits do not return. The semantics are unambiguous, though no sibling tool (e.g., create_entity) is named to route the agent explicitly.

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 concrete preconditions and exclusions: it works only if the entity exists in a previous version, and an entity created and deleted in the current version cannot be restored. It does not name an alternative tool to use when restore is impossible, which keeps it short of a 5.

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