Skip to main content
Glama

Get Raw File Diff

app_get_raw_diff

Fetch the raw unified and line diff for one file to inspect exact changes for review.

Instructions

App-only tool to fetch raw unified & line diff for one file.

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": {
      "sessionId": "<sessionId>",
      "filePath": "<filePath>"
    },
    "name": "app_get_raw_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYes
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, but it only discloses the output content format (unified plus line diff for a single file). It says nothing about read-only semantics, size or truncation limits on large diffs, or what happens when the session or file path is invalid.

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?

A single short sentence with the scope constraint ("one file") and content type front-loaded; there is no wasted wording. The tradeoff is that brevity here shades into under-specification rather than tightness.

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?

With no annotations, no output schema, and no parameter documentation, the description would need to do more work. It leaves the caller guessing about error behavior, output shape limits, and parameter semantics for a two-required-param tool.

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

Parameters2/5

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

Schema description coverage is 0% and the description does not mention either parameter. sessionId and filePath are largely self-explanatory from their names, but there is no guidance on path format (relative vs absolute), whether the file must belong to the given session, or what a missing file yields.

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 ("fetch") with a specific resource ("raw unified & line diff for one file"), and the word "raw" hints that this returns data rather than a rendered view, which separates it from presentation siblings like present_diff. It does not explicitly name a sibling to contrast against, so it stops short of a 5.

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?

"App-only tool" signals a usage constraint (programmatic/internal consumption rather than an agent-facing viewer), which implies when this is appropriate. However, it never states when to prefer this over open_diff_viewer or present_diff, nor any prerequisites such as an active session.

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