Skip to main content
Glama
K3roru

tfs-mcp-server

by K3roru

Get file content

get_file_content
Read-onlyIdempotent

Read a file from a Git repository at a specified branch, commit, or tag. Returns text inline or base64 for binaries, with error details if the path is missing.

Instructions

Read a file from a Git repository at a given branch/commit/tag (default: the repo's default branch). Text files are returned inline; binaries as base64. If the file does not exist, the error explains whether the repository, the branch or the directory is missing and lists the parent directory's entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoTag name (alternative to branch).
pathYesPath inside the repository, e.g. '/src/app/main.ts'.
branchNoBranch name (e.g. 'develop'). Defaults to the repository's default branch.
commitNoCommit SHA (alternative to branch).
projectNoTeam project name or id that owns the repository. Overrides TFS_DEFAULT_PROJECT.
maxBytesNoTruncate content beyond this many bytes (binaries are omitted entirely).
repositoryYesRepository name or id.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description discloses output encoding (text inline vs binary base64), the default ref behavior, and detailed error diagnostics when the file is missing. This gives agents actionable expectations for both success and failure modes.

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 targeted sentences with no filler: core operation, encoding behavior, and error behavior. The most important information is front-loaded, and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description adequately explains return value format (inline vs base64) and exceptional cases. Combined with full schema parameter descriptions and readOnly/idempotent annotations, an agent has enough information to call this tool correctly.

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 baseline is 3. The description adds some ref-selection context (branch/commit/tag alternatives and default behavior), but does not materially improve on the parameter docs for path, project, or maxBytes. Therefore no upgrade beyond baseline is warranted.

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?

States a specific verb ('Read') and resource ('a file from a Git repository'), clarifies ref selection with a default branch, and is distinguishable from siblings like get_files_content and list_directory because it targets a single file's contents. This clearly separates it from the plural and directory-oriented tools.

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 conveys a clear usage context: retrieving one file's content from a repo at a chosen branch/commit/tag. It doesn't explicitly mention alternatives or exclusions, but the single-file scope is unambiguous, so an agent can identify when this tool is appropriate.

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

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/K3roru/tfs-mcp-server'

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