Skip to main content
Glama

diff_tab_vs_file

Compare a Google Docs tab with a local markdown file to get a unified diff and tagged hunks, identifying differences without modifying the document.

Instructions

Export a document tab as markdown and diff against a local file.

Use this tool when you need to compare a Google Doc tab against a local markdown file. The server reads the file directly (it runs locally). Returns a structured diff with tagged hunks (equal/insert/delete/replace) and a unified diff string.

This is a read-only tool — it makes no changes to the document or file.

Returns: doc_id, tab_id, file_path, revision_id, identical (bool), hunks (list of tagged diff blocks), unified_diff (unified diff string)

Errors: TAB_NOT_FOUND – tab_id not in document INVALID_INPUT – file not found at file_path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
tab_idYes
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Despite having no annotations, the description clearly discloses that this is a read-only tool and makes no changes to the document or file. It also reveals that the server runs locally and reads the file directly, and it lists specific error cases. This fully compensates for the lack of annotations.

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 clear sections for Returns and Errors, and the main purpose is front-loaded. It is slightly repetitive in the return-value list, but the organization makes it easy for an agent to parse.

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 purpose, use case, side effects, return values, and error conditions. It is complete enough for a straightforward read-only comparison tool, though it could be even stronger by explicitly linking doc_id and tab_id to sibling tools or indicating alternatives.

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?

The input schema provides no descriptions for doc_id, tab_id, or file_path, so the description must carry the meaning. It partially does by mentioning the local file path and the error cases, but it does not formally explain each parameter's expected format or role beyond what the parameter names imply.

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 states a specific operation: compare a Google Doc tab with a local markdown file. It clearly identifies the resource, the action, and the scope, and it is easily distinguishable from sibling tools like read_document or replace_tab_markdown.

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 explicitly says 'Use this tool when you need to compare a Google Doc tab against a local markdown file' and notes that the server reads the file directly. It gives clear context but does not explicitly describe when not to use it or name alternative tools.

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