Skip to main content
Glama

Airlok

Сравнить коммиты

compare_commits
Read-only

Что изменилось между двумя коммитами репозитория приложения: коммиты и файлы, без самого кода. Чтобы найти, что сломало сайт: base — последняя рабочая версия, head — та, что работает сейчас (list_commits отмечает deployed_before и live).

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": {
      "app": "<app>",
      "base": "<base>",
      "head": "<head>"
    },
    "name": "compare_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
baseYesполный хеш более раннего коммита
headYesполный хеш более позднего коммита

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

The readOnlyHint and openWorldHint annotations already cover safety, while the description adds meaningful behavior: the result contains commits and files but not code itself. It also explains the diagnostic ordering of base and head, though it does not discuss output format, limits, or whether base must be an ancestor of head.

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 two sentences, front-loading the core comparison and then adding the diagnostic use case. Every clause earns its place, including the parenthetical pointing to list_commits for deployed markers.

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?

For a simple read-only tool with three fully documented parameters and no output schema, the description covers purpose, output content, and usage context. Minor gaps remain around exact output shape, ordering guarantees, and whether base must be an ancestor of head.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines app, base, and head. The description adds semantic value by framing base as the last working version and head as the currently working version, and by explaining that list_commits surfaces deployed_before and live for finding those hashes.

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 states a specific verb and resource: it compares two commits of an app repository and returns changed commits and files without code. The purpose is clear, but it does not explicitly distinguish this from the sibling get_commit_changes, so it falls short of a 5 under the sibling-differentiation criterion.

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 concrete diagnostic use case: find what broke the site by treating base as the last working version and head as the current version. It also points to list_commits for deployed_before and live markers, but does not state when not to use this tool or name an alternative diff tool.

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