Skip to main content
Glama
Platano78

Smart-AI-Bridge

backup_restore

Create, list, restore, and clean up timestamped file backups. Prevent data loss by snapshotting files before edits and restoring previous states using age or count cleanup policies.

Instructions

Manage the timestamped backup files produced by modify_file and write_files_atomic. Four actions: create (manually snapshot a file before a risky native edit), list (enumerate known backups, optionally filtered to one file), restore (overwrite a file with a specific backup_id), cleanup (delete old backups per the policy in cleanup_options). The cleanup policy applies BOTH thresholds — a backup is deleted only when it exceeds max_age_days OR when its file already has more than max_count_per_file newer backups. Use dry_run to preview before applying. ⚠️ DESTRUCTIVE: restore overwrites the current file (the prior state is auto-snapshotted to <path>.pre_restore_<timestamp>, so the restore itself is reversible); cleanup permanently deletes backup files from disk. create and list are read-only. Returns: { success, action, ...action-specific fields }. create{backup_id, backup_path, original_path, size}. restore{backup_id, restored_to, pre_restore_backup}. list{file_path, backups:[{path, backup_id, size, created, metadata}]}. cleanup{dry_run, backups_deleted, deleted:[{path, reason:'age'|'count'}]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesRequired. Operation to perform on the backup store.
file_pathNoFor `create`: file to snapshot (required). For `list`: optional filter to one file. Ignored for `restore` (use backup_id) and `cleanup` (operates on the whole store).
backup_idNoIdentifier of the backup to restore (timestamp from `<path>.backup.<timestamp>`). Required for `restore`, ignored for other actions.
metadataNoOptional tags and description attached to a `create` snapshot for later identification via `list`.
cleanup_optionsNoPolicy controls for the `cleanup` action. Ignored by other actions.
Behavior4/5

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

With no annotations, the description fully discloses behavioral traits: it clearly labels destructive actions, details the auto-snapshot before restore, and explains the cleanup policy. However, the cleanup policy description is slightly ambiguous (BOTH thresholds but then OR logic), which could confuse an AI agent.

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?

The description is well-structured with action breakdowns, warnings, and return format. While it is fairly long, every sentence contributes value, and the use of bullet points and symbols enhances readability. A minor trim could improve conciseness without losing 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?

Given the complexity (four actions, five parameters, nested objects) and the absence of an output schema, the description thoroughly covers all necessary information: purpose, usage, parameter behavior, return values for each action, and safety warnings. An agent can confidently invoke this tool based solely on the description.

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?

Although schema coverage is 100%, the description adds significant meaning beyond the schema: it explains how each action uses parameters, describes the backup_id format, and clarifies the metadata and cleanup_options semantics. This greatly aids correct parameter usage.

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: managing timestamped backup files from modify_file and write_files_atomic, with four distinct actions. It distinguishes itself from siblings by focusing on backup management rather than file modification.

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 provides explicit guidance for each action (create, list, restore, cleanup) and marks destructive vs read-only operations. It could be improved by explicitly stating when to prefer this tool over siblings for backup-related tasks, but the context is clear enough.

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/Platano78/Smart-AI-Bridge'

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