Skip to main content
Glama
mcp-devops-onpremise

mcp-devops-onpremise

by zwitbaum

Search code

devops_code_search
Read-only

Search source code across an Azure DevOps project and return matching file locations with snippet context, optionally filtered by repository, path, or branch.

Instructions

Search source code in the configured Azure DevOps project. Returns matching file locations with snippet context. Optionally filter by repository, path, and branch.

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": {
      "search_text": "<search_text>"
    },
    "name": "devops_code_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of results to return (1–1000).
pathNoFilter results to one or more file paths (prefix match).
skipNoNumber of results to skip for pagination.
branchNoFilter results to one or more branch names.
repositoryNoFilter results to one or more repository names.
search_textYesKeywords or code fragment to search for.
include_facetsNoWhen true, include facet counts (projects, repositories, etc.) in the response.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered, and an output schema exists. The description adds useful scope information (it only searches the configured project, and results include snippet context), but it omits operational behavior such as rate limits, match semantics, or pagination caps that matter for a search tool.

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?

Three short sentences, front-loaded with the core action and with the return shape immediately after. The final sentence about optional filters largely duplicates schema content, so it does not fully earn its place, but nothing is padded or ambiguous.

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 7 parameters, full schema coverage, annotations, and an output schema, the description only needs to establish purpose and scope, which it does. Minor gaps remain: it does not clarify search semantics (keyword vs. literal code fragment) or whether only one project is searched when multiple exist.

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 (top, skip, path, branch, repository, search_text, include_facets) is already documented with defaults and types. The description only restates the existence of repository/path/branch filtering and adds no syntax, matching, or formatting detail beyond the schema; 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?

States a specific verb and resource ('Search source code'), the scope ('configured Azure DevOps project'), and the return shape ('matching file locations with snippet context'). Combined with the tool name, an agent can tell it apart from devops_wiki_search and devops_work_item_search because the resource (source code) is named explicitly, though no sibling is named directly.

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?

The description says what can be filtered ('repository, path, and branch') but gives no when-to-use or when-not-to-use guidance. There is no mention of how it relates to alternatives such as devops_repository_item_content or devops_repository_commit_changes, and no prerequisites are stated beyond 'configured project'. Usage must be inferred entirely from the name and resource.

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