Skip to main content
Glama

restore_from_backup

Restore a backup file to its original location, optionally specifying a different target path or forcing the restore when the target is newer than the backup.

Instructions

Restore a backup file over its original target. target_path defaults to the path implied by the backup's .bak. filename; pass target_path explicitly when the backup name doesn't match that shape. Refuses if target mtime is newer than backup (staleness guard) — pass force=True to override. Returns {source, restored_to, bytes_restored}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
backup_pathYes
target_pathNo
Behavior3/5

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

The description discloses key behaviors: the staleness guard (refuses if target mtime is newer) and force override, and the return format. However, it does not mention idempotency, permission requirements, or potential side effects (e.g., overwriting files). Given no annotations, more transparency would improve the score.

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?

Three sentences, no fluff. The first sentence states the action, the second handles default logic, and the third covers the staleness guard and return. Perfectly structured for quick parsing.

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?

The description covers the main usage scenarios (default path, override, force) and specifies return values. It lacks details about error conditions (e.g., missing backup file) but given the tool's simplicity, it is mostly complete. No output schema, so return description helps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description carries the full burden. It explains all three parameters: backup_path (implied), force (overrides guard), and target_path (default derivation and explicit override). This adds crucial meaning beyond the schema.

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 clearly states the tool's purpose: 'Restore a backup file over its original target.' It provides a specific verb and resource, and distinguishes this tool from siblings like backup_report, which creates backups instead of restoring. No ambiguity.

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?

The description explains when to use the default target_path and when to override it, and when to use force=True to bypass the staleness guard. It implicitly guides usage by describing the staleness guard behavior, but does not explicitly contrast with other tools or state prerequisites. Slightly incomplete.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mafaq229/pbirb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server