Skip to main content
Glama
pdogra1299
by pdogra1299

get_file_content

Retrieve file content from a Bitbucket repository with smart truncation for large files. Specify workspace, repository, file path, and optional parameters like branch, line range, or full content retrieval. Supports efficient access to code or text files.

Instructions

Get file content from a repository with smart truncation for large files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNoBranch name (optional, defaults to default branch)
file_pathYesPath to the file (e.g., "src/index.ts")
full_contentNoForce return full content regardless of size (optional, default: false)
line_countNoNumber of lines to return (optional, default varies by file size)
repositoryYesRepository slug (e.g., "my-repo")
start_lineNoStarting line number (1-based). Use negative for lines from end (optional)
workspaceYesBitbucket workspace/project key (e.g., "PROJ")
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds value by mentioning 'smart truncation for large files,' which hints at performance or size-handling behavior beyond basic retrieval. However, it lacks details on error handling, rate limits, authentication needs, or what 'smart truncation' entails specifically, leaving gaps for a mutation-free read operation.

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, efficient sentence that front-loads the core purpose ('Get file content from a repository') and adds a key behavioral note ('with smart truncation for large files') without any wasted words, making it highly concise and well-structured.

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?

Given the tool's moderate complexity (7 parameters, no output schema, no annotations), the description is somewhat complete by stating the purpose and a key behavior. However, it lacks details on return values, error cases, or how truncation interacts with parameters, which would enhance completeness for a read operation without structured output documentation.

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 100%, so the schema already documents all 7 parameters thoroughly. The description adds minimal semantic context by implying truncation relates to parameters like 'full_content' and 'line_count,' but doesn't provide additional meaning beyond what the schema specifies, aligning with the baseline for high coverage.

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 action ('Get file content') and resource ('from a repository'), specifying the core functionality. However, it doesn't explicitly differentiate from sibling tools like 'list_directory_content' or 'search_code' that might also access repository content, missing full sibling distinction.

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 implies usage for retrieving file content with truncation for large files, suggesting a context for handling size constraints. However, it provides no explicit guidance on when to use this tool versus alternatives like 'list_directory_content' or 'search_code', nor does it mention prerequisites or 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

Related 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/pdogra1299/bitbucket-mcp-server'

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