Skip to main content
Glama
tugudush
by tugudush

bb_get_diffstat

Retrieve a per-file change summary (diffstat) between commits, showing added and removed lines. Specify a single commit or a range like commit1..commit2.

Instructions

Get diffstat (per-file change summary) between commits. Use a single commit hash or "commit1..commit2".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoFilter diffstat to a single file path
specYesCommit spec: a single commit hash (diffs against parent), or two commits as "commit1..commit2"
topicNoWhen true with two-commit spec, produces a 3-dot diff (source vs merge-base)
filterNoJMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax
repo_slugYesThe repository name
workspaceYesThe workspace or username
output_formatNoResponse format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%)
ignore_whitespaceNoIgnore whitespace changes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It reveals that the tool returns a per-file summary, which is behavioral. However, it does not disclose potential behaviors like how a single commit diffs against its parent, the meaning of the 'topic' flag, or any side effects. The 'Get' verb implies a read operation, but additional context is minimal.

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, concise sentence that front-loads the tool's purpose and key usage. Every word adds value, with no filler.

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?

The tool has 8 parameters, all documented in the schema. While the description is brief, it gives a clear one-liner of the tool's purpose and the core spec format. The lack of an output schema is mitigated by the description's 'per-file change summary' hint, which sets expectations. However, subtle features like the 'topic' flag's 3-dot diff behavior are left to the schema, which is acceptable given the schema's richness.

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?

The input schema provides full descriptions for all 8 parameters, including the exact semantics of 'spec', 'topic', and 'filter'. The description briefly reinforces the spec syntax but adds no new meaning beyond the schema. Per the baseline for high schema coverage, this scores a 3.

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's function: retrieving a per-file change summary (diffstat) between commits. It uses a specific verb ('Get') and resource, distinguishing it from PR-specific diffstat tools like bb_get_pull_request_diffstat by scoping it to commits.

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

Usage Guidelines3/5

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

The description instructs how to specify commits ('Use a single commit hash or "commit1..commit2"'), which is a guideline for the spec parameter. However, it does not explicitly contrast with sibling tools like bb_get_diff or state when to prefer this tool over alternatives. The 'between commits' phrasing implies context but lacks explicit exclusions.

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/tugudush/bitbucket-mcp'

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