Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

restore_from_backup

Restores a file from its backup to recover accidentally corrupted code. Specify the original file path and optionally a backup path.

Instructions

백업에서 파일을 복원합니다. 실수로 코드가 손상된 경우 사용하세요.

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": {
      "file_path": "<file_path>"
    },
    "name": "restore_from_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes복원할 원본 파일 경로
backup_pathNo복원할 백업 파일 경로 (선택사항)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation operation. It never states that the existing file is overwritten, whether the restore is reversible, where the backup is sourced from when backup_path is omitted, or what happens if no backup exists — all critical facts for a destructive write.

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?

Two short sentences, front-loaded with the action and followed by the triggering condition — no filler or repetition. The size is appropriate; the brevity is a virtue here rather than padding, though the second sentence could carry more decision-relevant detail without becoming bloated.

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

Completeness2/5

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

For a mutation tool with zero annotation coverage and no output schema, the description is too thin. An agent cannot determine from it whether the restore clobbers the current file contents, what the source of last resort is, or how to verify success afterward.

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 100%, so both file_path and backup_path are already documented and the baseline of 3 applies. The description adds only the framing 'from a backup' and does not explain the consequence of omitting the optional backup_path (e.g., which default backup location is used).

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?

The description pairs a specific verb with a specific resource ('백업에서 파일을 복원합니다' / restores a file from a backup), which is unambiguous about what the tool does. It does not, however, explicitly distinguish itself from the sibling that creates the backup (create_safety_backup) or from the file-writing siblings, so an agent must infer the boundary from the verb alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'실수로 코드가 손상된 경우 사용하세요' gives a genuine when-to-use condition, which is more than nothing. But it offers no when-not guidance, no alternatives (e.g., suggest_safe_edit_strategy or reading the file first), and no prerequisite that a backup must already exist, leaving the agent to infer the rest.

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