Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_file_content

Read-only

Retrieve file or directory content from an Azure DevOps repository, optionally at a specific branch, tag, or commit, to inspect repository resources.

Instructions

Get content of a file or directory from a repository

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repositoryId": "<repositoryId>",
      "path": "<path>"
    },
    "name": "get_file_content"
  }
}

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: MyProject)
versionTypeNoType of version specified (branch, commit, or tag)
repositoryIdYesThe ID or name of the repository
organizationIdNoThe ID or name of the organization (Default: mycompany)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId"
      -]New value: +[
      +  "repositoryId",
      +  "path"
      +]
  2. Addedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds only the fact that directories are also valid targets, and says nothing about how binary files are returned, whether large files are truncated, or what permission scope is needed.

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 wasted wording. It is terse to the point of under-specifying, but there is no filler to remove.

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?

A 6-parameter retrieval tool with a nontrivial version/versionType interaction and no output schema. The description does not explain the return shape (raw content vs. base64 vs. metadata wrapper) or how the optional version parameters combine, leaving real gaps an agent must guess at.

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 repositoryId, path, version, versionType, projectId and organizationId are all documented in the schema. The description adds no meaning beyond that, such as how versionType must agree with the version string. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Get content of a file or directory from a repository'), which clearly separates it from tree-listing siblings like get_repository_tree. It does not explicitly name a sibling, so it stops short of a 5.

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 phrase 'file or directory' implies usage for retrieving either kind of content, but there is no guidance on when to prefer this over get_repository_tree or get_all_repositories_tree, and no prerequisites or exclusions are given.

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