Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_repository_details

Read-only

Retrieves detailed Azure DevOps repository information, including branch statistics and refs, to help AI assistants inspect repository structure and activity.

Instructions

Get detailed information about a repository including statistics and refs

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>",
      "includeStatistics": "<includeStatistics>",
      "includeRefs": "<includeRefs>"
    },
    "name": "get_repository_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoThe ID or name of the project (Default: MyProject)
refFilterNoOptional filter for refs (e.g., "heads/" or "tags/")
branchNameNoName of specific branch to get statistics for (if includeStatistics is true)
includeRefsYesWhether to include repository refs
repositoryIdYesThe ID or name of the repository
organizationIdNoThe ID or name of the organization (Default: mycompany)
includeStatisticsYesWhether to include branch statistics

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId"
      -]New value: +[
      +  "repositoryId",
      +  "includeStatistics",
      +  "includeRefs"
      +]
  2. Changed3 schema fields changedv1.0.0
    • addedInput schema / properties / organizationId
      Added value: +{
      +  "description": "The ID or name of the organization (Default: mycompany)",
      +  "type": "string"
      +}
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project"New value: +"The ID or name of the project (Default: MyProject)"
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "repositoryId"
      -]New value: +[
      +  "repositoryId"
      +]
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, and the description correctly reinforces that nothing is mutated. It adds that statistics and refs are optional payloads, but says nothing about cost, latency, permissions, or what happens when the optional blocks are omitted. Reasonable given the annotations, but thin.

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 sentence, front-loaded with the verb and resource, with zero filler. It is efficient but so terse that it offers no structure for the optional-flag behavior an agent must reason about.

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?

With 7 parameters, 3 required, and no output schema, the description covers the headline purpose but not the return shape or the effect of the required includeStatistics/includeRefs booleans. It is minimally adequate for a read-only fetch, not more.

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 including refFilter and branchName is already documented in the schema. The description echoes the includeStatistics/includeRefs concepts but adds no extra meaning such as ref-filter syntax or how branchName interacts with the statistics flag. 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 detailed information about a repository") and scopes the payload to statistics and refs. It is clear on its own, but it never distinguishes itself from the adjacent get_repository or get_repository_tree tools, so an agent cannot tell from the text which one to pick.

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 or get_repository_tree, and no mention of when the includeStatistics/includeRefs flags should be turned on. Usage is only inferable from the name.

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