Skip to main content
Glama

ado_git_search_code

Read-only

Search code across Azure DevOps repositories to locate matching files with paths, repository names, and character offsets. Optionally scope to a project or repository.

Instructions

Search for code across Azure DevOps repositories. Returns matching files with paths, repository names, and character-offset positions of each match within the file. To read the matched text, fetch the file via the repository API. Optionally scope to a project or specific repository. Does NOT search work items or wiki — use ado_workitems_query for work item search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMax results (default 25, max 100)
projectNoScope search to a specific project. Searches all projects if omitted.
searchTextYesSearch keywords or phrases. Supports Azure DevOps search syntax.
repositoryNameNoScope search to a specific repository name

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, covering the safety profile. The description adds valuable behavioral context beyond that: it discloses that the search returns character offsets rather than matched text, and tells the user to fetch the file separately. This is a meaningful addition that helps the agent set correct expectations.

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?

The description is three concise sentences with no fluff. It front-loads the purpose, then explains the return behavior, then provides usage and exclusion guidance. Every sentence earns its place, and it is efficiently structured.

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

Completeness5/5

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

Given that there is no output schema, the description adequately covers what the agent can expect (files, paths, repository names, character offsets). It also explains the limitation (no matched text) and directs the agent to a follow-up action. With all parameters documented in the schema and this description covering output and exclusions, nothing essential is missing for correct invocation.

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 parameters already have definitions. The description reinforces the optional scoping of project and repositoryName but does not add new semantic details beyond what the schema provides. It meets the baseline for high coverage, neither adding nor detracting significantly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for code across Azure DevOps repositories, specifies the return format (matching files with paths, repository names, and character offsets), and explicitly distinguishes itself from work item and wiki search by naming the sibling tool ado_workitems_query. This leaves no ambiguity about the tool's function.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: it tells the agent it can optionally scope to a project or repository, instructs the agent to fetch the file via the repository API to read matched text, and explicitly states what the tool does NOT do (search work items/wiki) while naming the alternative tool. This is comprehensive and actionable.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Laonnda/azure-devops-local-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server