Skip to main content
Glama
Azure DevOps MCP Server
by billg118

get_file_content

Retrieve the contents of a file or directory from an Azure DevOps repository, optionally at a specific branch, tag, or commit, to inspect or use repository data.

Instructions

Get content of a file or directory from a repository

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file or folder/
versionNoThe version (branch, tag, or commit) to get content from
projectIdNoThe ID or name of the project (Default: no default project)
versionTypeNoType of version specified (branch, commit, or tag)
repositoryIdYesThe ID or name of the repository
organizationIdNoThe ID or name of the organization (Default: example-org)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.54

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing. It does not say whether a directory path returns a listing or an error, whether file content is returned raw or encoded, whether large files are truncated, or what the response shape looks like — all critical for a 6-parameter retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no filler or repetition. It is efficient, though for a tool this broad the brevity edges toward under-specification rather than crispness.

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

Completeness2/5

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

Six parameters, no annotations, and no output schema mean the description is the only place return and edge-case behavior could be explained, and it says nothing about them. An agent can guess the invocation but cannot anticipate the result of passing a directory path or a large file.

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 every parameter (path, version, versionType, projectId, repositoryId, organizationId) is already documented in the schema. The description adds no interpretation of defaults or interactions, such as how version and versionType pair together, so baseline 3 applies.

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 names a specific verb and resource ('Get content of a file or directory from a repository'), which is enough for an agent to tell it apart from tree-listing or search siblings. It falls short of 5 because it never names the adjacent alternatives (get_repository_tree, search_code) that could plausibly be confused with it.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no indication of when to prefer this over get_repository_tree for browsing, or over search_code for locating a known string. The agent must infer the scope of use from the name alone.

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