Skip to main content
Glama
Stan15
by Stan15

bitbucket_source_get

Read-onlyIdempotent

Read file contents or list directory at any Bitbucket revision. Check file metadata first with metaOnly to avoid large downloads.

Instructions

Read a file's contents or list a directory at a given revision. Omit path (or use "") for the repository root. Set metaOnly: true to check a file's size/type without fetching its full contents - do this first for anything that might be large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoFile or directory path; omit for the repository root
metaOnlyNoReturn JSON metadata (size, type, attributes) instead of full file contents
repoSlugYes
revisionYesBranch name, tag, or commit hash - e.g. 'main' or a PR's source branch
workspaceNoOmit to use the configured default workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds valuable behavioral context: the dual file/directory behavior, the root path convention, and the metaOnly optimization for large files. It doesn't mention rate limits or error cases, but for a read-only tool with annotations, this is solid.

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?

Three sentences with zero waste. The core action is front-loaded, the root path behavior is stated compactly, and the metaOnly tip is actionable. Every sentence earns its place.

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 read-only tool with annotations covering safety and an 80% schema coverage, the description is nearly complete. It explains the dual behavior, the root path convention, and the large-file optimization. It doesn't describe the return format, but there is no output schema and the description's mention of 'contents' and 'metadata' gives enough context for an agent to proceed.

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 description coverage is 80%, so the schema already documents most parameters. The description adds meaning beyond the schema by explaining the path omission behavior (root) and the metaOnly use case (checking size/type before fetching large contents). It doesn't add detail for repoSlug or workspace, but those are self-explanatory and the schema covers them.

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 states a specific verb ('Read') and resource ('a file's contents or list a directory at a given revision'), which clearly distinguishes it from sibling tools like bitbucket_commit_get or bitbucket_repository_get. It also clarifies the dual behavior (file read vs directory listing) and the root path behavior, making the tool's purpose unambiguous.

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?

The description gives clear context for when to use the tool (reading files or listing directories at a revision) and provides a specific usage tip: use metaOnly:true first for anything that might be large. It doesn't explicitly name alternatives or exclusions, but the sibling list is broad and the description's context is sufficient for an agent to select this tool over others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.