Skip to main content
Glama

get_file_content

Read-only

Read the contents of a text file from an Azure DevOps repository, with optional branch and project selection and a character limit to control output size.

Instructions

Content of a text file in a repository (truncated to max_chars).

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": {
      "repository": "<repository>",
      "path": "<path>"
    },
    "name": "get_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
branchNo
projectNo
max_charsNo
repositoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that: output is truncated to max_chars. It says nothing about binary files, encoding, or what happens when the path or branch does not exist, which are the remaining behavioral gaps.

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 tight sentence with the key constraint in parentheses and no filler. It is efficient, though the fragment style omits a verb that would make the purpose read unambiguously.

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

Completeness2/5

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

For a five-parameter tool with zero schema descriptions and no output schema, one sentence is not enough. The critical unknowns, how branch and project affect resolution and what is returned on a missing file, are left entirely undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must carry the burden and does not. It references max_chars only implicitly as a truncation limit, and says nothing about repository, path, branch resolution, or what project scopes. An agent cannot tell from either source whether branch defaults to the repo's default branch.

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 resource and operation: the content of a text file in a repository. It is immediately understandable, though phrased as a noun fragment rather than a verb. It makes no attempt to distinguish this from nearby siblings such as browse_repository or list_commits, which also touch repository contents.

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, no prerequisites, and no named alternative. An agent must infer from the phrase 'text file in a repository' alone when to pick this over browse_repository, which likely lists directory contents.

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