Skip to main content
Glama

get_file_history

Retrieve the complete chronological edit history of any file across all sessions, or limit results to a specific session.

Instructions

Get every edit ever made to a file across all sessions, chronologically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
session_idNoOptional: limit to a single session
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It correctly indicates a read operation ('Get') and chronological ordering, but lacks details on potential side effects, permissions, rate limits, or whether the result is paginated. The description is moderately transparent but misses important operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence of 12 words that is front-loaded with the core action and resource. Every word serves a purpose, and there is no redundancy or filler. This is an optimal length for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is relatively simple with two parameters and no output schema. The description covers the essential purpose and behavior. However, it lacks guidance on usage context (e.g., when to use this over sibling tools) and does not mention any limitations (e.g., file size, history depth). For a straightforward tool, it is minimally adequate but not comprehensive.

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 description coverage is 50% (session_id has a description, file_path does not). The description adds meaning by stating the tool retrieves history 'across all sessions' and 'chronologically,' which helps interpret the file_path and session_id parameters. However, it does not explain the format of file_path or the effect of omitting session_id beyond the implied 'all sessions.' Overall, it adds some value but could be more explicit.

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 retrieves every edit made to a file across all sessions in chronological order. The verb 'Get' and resource 'file history' are specific, and the scope ('across all sessions') and ordering ('chronologically') distinguish it from siblings like get_latest_events or get_session_timeline.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives. Given siblings like get_session_timeline (which may offer session-specific history) or get_latest_events (which may show recent changes), the description should clarify scenarios where get_file_history is preferred or not.

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/Wynelson94/longhand'

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