Skip to main content
Glama
pablo-horizun

Horizun PBI MCP

pbi_recover_from_journal

Restore original files from a journal with preview and conflict detection. Verify byte-by-byte integrity and recreate missing directories.

Instructions

Restaura los originales guardados en un journal. DESTRUCTIVA.

Sin confirm devuelve la VISTA PREVIA: que archivos se restaurarian, cual es su estado actual y si alguien los cambio despues.

Estados: recoverable, recovered, conflict, incomplete, corrupted. Si un archivo cambio despues de la transaccion, se rechaza con recovery_conflict en vez de pisar ese trabajo; force_conflict lo aplica de todas formas.

Cada archivo se verifica byte a byte tras restaurarlo, y se recrean los directorios padre que hubieran desaparecido.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
journalYes
request_idNo
force_conflictNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 behavioral burden. It discloses destructive behavior upfront, details conflict handling and the `recovery_conflict` rejection, notes byte-by-byte verification after restoration, and mentions recreation of missing parent directories. This is exceptionally thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: purpose and warning, preview behavior, statuses and conflict handling, and post-restoration checks. Each paragraph contributes distinct information with no redundancy, and the destructive warning is placed prominently at the start.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive and complex tool, the description covers preview, conflict scenarios, verification, and directory restoration thoroughly. An output schema exists to document return values, but the lack of details about the required `journal` parameter format and the optional `request_id` parameter prevents full completeness.

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 0%, so the description must compensate. It does explain `confirm` and `force_conflict` well, but `journal` is only referenced generically and `request_id` is never mentioned, leaving two of four parameters under-specified. The added meaning is useful but incomplete.

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?

The description opens with 'Restaura los originales guardados en un journal' (Restores the originals saved in a journal) and explicitly marks the operation as DESTRUCTIVA. This clearly identifies the tool's verb, resource, and destructive nature, distinguishing it from inspection tools like pbi_inspect_journal and pbi_list_pending_journals.

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 explains the preview-first workflow: without `confirm` it shows what would be restored, and with `confirm` it executes. It also explains when `force_conflict` should be used to override conflicts. However, it does not explicitly name alternative tools or state when not to use this tool, so it stops short of a perfect score.

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

Deploy Server

Other Tools