Skip to main content
Glama

See who changed the files you share in a private conversation or group chat, and why

file_history
Read-onlyIdempotent

See who changed the files you share in a private conversation or group chat, and why. Use it to catch up on what the others did to the shared files, or to find the commit to compare with or go back to. Commits newest first, each with its author, its message and the files it changed; with path, only the commits that changed that file. Pass next_cursor as before for older ones. The request body may be empty. 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>"
    },
    "name": "file_history"
  }
}

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.
pathNoOnly the commits that changed this file.
limitNo
beforeNoReturn only commits before this one: the `next_cursor` of the page before.
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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description is not required to prove safety, yet it still discloses ordering ('newest first'), the returned fields (author, message, files changed), pagination mechanics, that an empty request body is allowed, and that a personal token is required. It omits anything about limits per page or what happens with an invalid or nonexistent path.

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 purpose, then the concrete use cases, then output shape, then pagination, then the auth prerequisite. It is dense but every sentence carries information; the semicolon-chained clause about commit contents is slightly run-on, and 'The request body may be empty' is a minor detail given to a caller of a read tool.

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?

With no output schema present, the description compensates by enumerating the returned per-commit fields, the sort order, and the file filtering behavior, and it also covers the auth prerequisite and pagination. Nothing an agent needs in order to call this correctly or interpret the result is missing.

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?

Schema coverage is high at 80%, with `path`, `before`, and `space_id` already documented in the schema. The description restates the `path` filter and the `next_cursor`-as-`before` pagination pattern, which is mildly useful for linking output to input, but adds nothing about the `as` parameter or the `limit` parameter's default and maximum.

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 and resource: commit history ('who changed the files... and why') scoped to files shared in a private conversation or group chat. An agent can immediately tell this apart from read_file, diff_files, and list_files because the description announces it returns commits with authors and messages, newest first.

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 two concrete scenarios: catching up on what others did and finding a commit to compare with or go back to, the latter implicitly routing to diff_files/restore_files. There are no explicit when-not conditions and no sibling is named outright, so agents must infer the boundary from the described output shape.

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