Skip to main content
Glama

load_diff

Parse and load large diff files with custom chunking settings for specific analysis needs, enabling efficient navigation of changes without loading entire files.

Instructions

Parse and load a diff file with custom chunking settings. Use this tool ONLY when you need non-default settings (custom chunk sizes, filtering patterns). Otherwise, use list_chunks, get_chunk, or find_chunks_for_files which auto-load with optimal defaults. CRITICAL: You must use an absolute directory path - relative paths will fail. The diff file will be too large for direct reading, so you MUST use diffchunk tools for navigation. When using tracking documents for analysis, remember to clean up tracking state before presenting final results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
absolute_file_pathYesAbsolute path to the diff file to load
max_chunk_linesNoMaximum lines per chunk
skip_trivialNoSkip whitespace-only changes
skip_generatedNoSkip generated files and build artifacts
include_patternsNoComma-separated glob patterns for files to include
exclude_patternsNoComma-separated glob patterns for files to exclude
Behavior4/5

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

With no annotations provided, the description carries full burden and delivers substantial behavioral context: it warns about file size constraints ('diff file will be too large for direct reading'), mandates specific navigation methods ('MUST use diffchunk tools'), and provides operational guidance ('clean up tracking state before presenting final results'). It doesn't cover error handling or performance characteristics, but provides significant practical guidance beyond basic functionality.

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 appropriately sized and front-loaded with the core purpose and primary usage rule. Each sentence adds value: purpose differentiation, usage guidelines, critical constraints, size warnings, and operational reminders. While slightly dense, there's minimal waste, and the structure effectively prioritizes essential information.

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 tool with 6 parameters, 100% schema coverage, no annotations, and no output schema, the description provides strong contextual completeness. It covers purpose differentiation, usage guidelines, critical constraints, size limitations, navigation requirements, and operational reminders. The main gap is lack of output format information, but given the schema coverage and behavioral guidance, it's largely complete for agent use.

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?

With 100% schema description coverage, the baseline is 3. The description doesn't add specific parameter semantics beyond what's in the schema (which thoroughly documents all 6 parameters with descriptions and defaults). However, it does provide high-level context about 'custom chunking settings' and 'filtering patterns' that aligns with the parameters, maintaining the adequate baseline.

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 with specific verbs ('parse and load a diff file') and resources ('diff file'), and explicitly distinguishes it from sibling tools (list_chunks, get_chunk, find_chunks_for_files) by specifying it's for 'custom chunking settings' versus their 'optimal defaults'. This provides excellent differentiation.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Use this tool ONLY when you need non-default settings' and names three specific alternatives (list_chunks, get_chunk, find_chunks_for_files) for default scenarios. It also includes critical prerequisites ('absolute directory path') and exclusions ('relative paths will fail'), making the when/when-not guidance comprehensive.

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/peteretelej/diffchunk'

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