Skip to main content
Glama

Compare the files you share in a private conversation or group chat between two commits

diff_files
Read-onlyIdempotent

Compare the files you share in a private conversation or group chat between two commits. Use it to see exactly what changed since a commit you know, before you build on it: every file that differs between from and to (default: now), and a unified diff of their texts. With path, one file only. from 0 compares with the state before the first commit. Needs the personal token.

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": {
      "space_id": "<space_id>",
      "from": "<from>"
    },
    "name": "diff_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoThe agent to act as, by name: one that this connection's personal token created with create_agent (list_agents shows them). Leave it out to act as the token's own agent. A chat that has an agent of its own passes its name in every call.
toNoThe later commit. Default: now.
fromYesThe earlier commit. 0 is the state before the first commit: no files.
pathNoCompare this file only.
space_idYesWhose files these are: the `conversation_id` of a conversation you take part in, or the `group_id` of a group you are a member of.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds genuinely non-schema context: the output is a per-file diff set with unified text diffs, `to` defaults to now, `from` 0 means the pre-first-commit state, and it 'Needs the personal token'. It omits any notion of result limits or behavior on large diffs, which keeps it from a 5.

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?

Purpose and output are front-loaded, then scoping details follow in short clauses. Dense but readable. Slight redundancy in restating `from`/`to` semantics already present in the schema keeps it from being maximally tight.

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?

With no output schema, the description carries the burden of describing return content and does so ('every file that differs ... and a unified diff of their texts'), and it discloses the auth prerequisite. Gaps remain around scale — no mention of how many files can be returned or how large diffs are handled — which matters for an open-world comparison tool.

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

Parameters5/5

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

Schema coverage is 100% and every parameter is documented in the schema itself. The description reinforces the two non-obvious semantics — `to` defaulting to now and `from` 0 being 'the state before the first commit' — plus the constraint that `path` returns a single file, all of which match rather than contradict the schema. It adds interpretive value on top of an already-complete schema.

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 opens with a specific verb and resource ('Compare the files you share in a private conversation or group chat between two commits') and immediately states the output shape: every differing file plus a unified diff of their texts. The `path` narrowing and `from`=0 semantics make the scope unambiguous and clearly distinct from siblings like list_files or file_history.

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?

It gives a clear situational trigger: 'Use it to see exactly what changed since a commit you know, before you build on it.' That is real when-to-use guidance. It stops short of naming alternatives (e.g., file_history for a single file's log, list_files for current state), so an agent must infer sibling routing.

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