Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

list_commits

Read-only

List recent commits on a branch with file-level diff content for each commit, enabling change review and commit history inspection in Azure DevOps.

Instructions

List recent commits on a branch including file-level diff content for each commit

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

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of commits to return (Default: 10)
skipNoNumber of commits to skip from the newest
projectIdNoThe ID or name of the project (Default: MyProject)
branchNameYesBranch name to list commits from
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
    • addedInput schema / properties / skip / maximum
      Added value: +9007199254740991
  2. Addedv1.0.0

TDQS

B3.4/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. The description adds one genuinely useful behavioral fact beyond annotations — responses include file-level diff content per commit — but does not flag the resulting payload size, ordering (newest first), or pagination interaction with top/skip.

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?

A single front-loaded sentence with zero filler; the scope (branch) and the notable payload trait (diff content) both land immediately.

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

Completeness4/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 does the necessary work of describing the return content (commits plus per-file diffs), and the schema fully covers parameters. It stops short of explaining pagination behavior or response size, which matters for a six-parameter list tool returning diffs.

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 six parameters are already documented, including defaults for top, projectId, and organizationId. The description's only semantic contribution is "recent" and "on a branch", which loosely implies newest-first ordering but adds no detail beyond the schema.

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 ("List recent commits") scoped to "a branch", and adds that each commit includes file-level diff content. That is enough to separate it from create_commit or get_file_content, though it never names an alternative explicitly.

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 guidance on when to reach for this tool versus siblings such as get_file_content or list_pull_requests, and no stated preconditions (required repositoryId/branchName are only implied by the schema). Usage is inferable from the verb but not guided.

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