Skip to main content
Glama

compare_versions

Compare current session state against a target historical version. Get a directional diff with semantic summary of added and removed objects and relations.

Instructions

Compare the current state of a session against a target version. The returned diff is directional. 'direction' explicitly describes how to interpret the changes. 'base_version_id' is the historical version being compared against. 'target_version_id' is the current session state. The response also contains a semantic summary (added/removed objects and relations) to make interpretation easier for LLMs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session whose current state will be compared.
target_version_idYesHistorical version to compare against. The comparison is performed between this version and the current state of the session.
Behavior3/5

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

The description adds useful behavioral context by noting the returned diff is directional and that a semantic summary is included. However, with no annotations, it fails to explicitly state that the operation is read-only or has no side effects, leaving part of the burden unmet.

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

Conciseness2/5

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

The description is verbose and includes contradictory information about parameters. It would be more effective as two clear sentences, without referencing nonexistent fields or duplicating schema information.

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?

Given no annotations and no output schema, the description should clarify the exact parameter roles and return structure. While it mentions directional diff and semantic summary, it inaccurately describes parameters and omits any mention of side effects or use cases, leaving the tool incompletely specified.

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

Parameters1/5

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

The description introduces base_version_id, which is not in the schema, and incorrectly states that target_version_id is the current session state, contradicting the schema's definition of it as the historical version. This actively misleads instead of adding value beyond the schema.

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 clearly states the tool compares a session's current state against a historical version, which is a specific verb+resource. However, it does not explicitly differentiate itself from sibling tools like explain_diff, reserving the top score.

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?

No guidance is provided on when to use this tool versus alternatives such as explain_diff or list_versions. The description only explains the operation without contextual usage instructions.

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/Deus-corp/cks-mcp'

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