Skip to main content
Glama
backrest-mcp

backrest-mcp

by TadMSTR

find_plan_for_path

Find which backup plans cover an absolute path, and whether an exclude drops it.

Instructions

Find which backup plans cover an absolute path, and whether an exclude drops it.

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": {
      "path": "<path>"
    },
    "name": "find_plan_for_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAn absolute path on the backed-up host, e.g. "/home/user/Documents/x.txt". Pure string matching: the path does not have to exist and the filesystem is never read.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / properties / path / description
      Previous value: -"An absolute path on the backed-up host, e.g. \"/home/ted/Documents/x.txt\".\n  Pure string matching: the path does not have to exist and the filesystem\n  is never read."New value: +"An absolute path on the backed-up host, e.g. \"/home/user/Documents/x.txt\".\n  Pure string matching: the path does not have to exist and the filesystem\n  is never read."
  2. Addedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose meaningful behavior beyond the name: the tool evaluates both plan coverage and exclude rules. However, it never says the call is read-only/side-effect free, nor does it mention permissions or lookup cost; the 'pure string matching, filesystem never read' note lives only in the parameter schema.

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?

A single, front-loaded sentence with no filler; both the primary query and the exclude qualifier are stated compactly.

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 one-parameter lookup with an output schema and full parameter documentation, the description covers the core question it answers. Minor gap: no statement of read-only behavior or that results are evaluated against plan rules rather than the live filesystem.

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?

There is one parameter with 100% schema description coverage that already explains the absolute-path format and the string-matching semantics. The tool description echoes 'absolute path' but adds no new meaning, so the baseline of 3 applies.

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?

States a specific verb ('Find'), a specific resource (backup plans covering a path), and adds the second-order question of whether an exclude rule drops that path. That is far more precise than the sibling list_plans or list_snapshot_files, so an agent can pick this tool without opening a schema.

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?

The use case is implied ('find which plans cover a path'), but there is no explicit when-to-use/when-not statement and no reference to alternatives such as list_plans for a broad plan listing. Guidance is derivable but not spelled out.

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