Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_repository_tree

Read-onlyIdempotent

Displays a hierarchical tree of files and directories in an Azure DevOps repository, starting from an optional path and adjustable depth to inspect project structure.

Instructions

Displays a hierarchical tree view of files and directories within a single repository starting from an optional path

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>"
    },
    "name": "get_repository_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath within the repository to start from/
depthNoMaximum depth to traverse (0 = unlimited)
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
repositoryIdYesThe ID or name of the repository
organizationIdNoThe ID or name of the organization (defaults to configured organization)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.13
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organizationId / description
      Previous value: -"The ID or name of the organization (Default: mycompany)"New value: +"The ID or name of the organization (defaults to configured organization)"
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project (Default: MyProject)"New value: +"The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)"
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId",
      -  "path",
      -  "depth"
      -]New value: +[
      +  "repositoryId"
      +]
  2. Changed1 schema field changedv1.0.6
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId"
      -]New value: +[
      +  "repositoryId",
      +  "path",
      +  "depth"
      +]
  3. Addedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered. The description adds essentially nothing beyond them: it does not mention that the traversal can be bounded by depth (max 10, 0 = unlimited), doesn't hint at cost or response size for large repositories, and doesn't describe what a tree node looks like. With annotations carrying the behavioral load, this is a minimal contribution.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is part of why coverage elsewhere is thin rather than a virtue in itself.

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?

There is no output schema, so the description is the only place to explain what the returned 'hierarchical tree' looks like (node structure, ordering, how depth truncation appears). It omits that entirely, leaving the agent to discover the response shape. For a five-parameter read tool the description is workable but incomplete.

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 all five parameters, including path, depth, and the organization/project defaults, are already documented in the schema. The description only restates the optional starting path and adds no format, semantics, or edge-case detail beyond that, which is the expected baseline when the schema does the heavy lifting.

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 uses a specific verb ('Displays') and a specific resource ('hierarchical tree view of files and directories'), and scopes it to 'a single repository', which implicitly contrasts with the sibling get_all_repositories_tree. It stops short of naming that sibling explicitly, so an agent must infer the distinction.

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 statement of when to use this tool versus get_all_repositories_tree, get_file_content, or get_repository_details. The phrase 'starting from an optional path' hints at a scoping use case but never states a condition for selection or any exclusion.

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