Skip to main content
Glama

Compare preview and live

fs_diff
Read-onlyIdempotent

Compare a file or a folder of the preview with the live site, read-only. A file: whether it is the same, missing on one side, or which lines differ. A folder ("workspace", "workspace/src", "data/uploads"): files only in the preview, only on the live site, or with different sizes. Use it when the live site misbehaves and the preview doesn't: it shows what the live site really has. For the project's owner and editors.

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": {
      "project": "<project>"
    },
    "name": "fs_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath starting with "workspace/" (the code, /workspace) or "data/" (runtime files, /data).workspace
projectYesProject slug or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds what the agent wouldn't otherwise know: the differing result shapes for files (same/missing/line diffs) versus folders (only-in-preview, only-in-live, size differences) and the owner/editor permission requirement.

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?

Front-loaded with the core action and mode split, then trigger condition, then audience. Every sentence adds information, though the file/folder sentences are slightly dense and could be tightened without loss.

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?

No output schema exists, but the description compensates by spelling out what each mode reports. Combined with annotations covering safety and the schema covering inputs, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes further by separating the two modes of the path parameter (file vs folder) and giving concrete path examples such as "workspace/src" and "data/uploads", which clarifies valid values beyond the schema's format note.

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+resource (compare preview vs live site) and immediately qualifies it as read-only. It is clearly distinct from sibling read tools like fs_read or fs_list, and an agent can tell what it does without opening the schema.

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?

Gives a concrete trigger: "Use it when the live site misbehaves and the preview doesn't," plus the audience restriction "For the project's owner and editors." It stops short of naming explicit alternatives (e.g. fs_read for pure inspection), but the context is unambiguous enough to select correctly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources