Skip to main content
Glama

get_file

Read a specific file from a registered repository using app ID and file path, so AI agents can retrieve project source or configuration for context-aware analysis.

Instructions

Read a file from a registered repository.

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": {
      "appId": "<appId>",
      "filePath": "<filePath>"
    },
    "name": "get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYes
filePathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden yet discloses almost nothing: it does not say whether this is a safe read-only operation, what happens for missing or binary files, whether content is truncated, or what the response looks like. Only the mutation-free verb "Read" implicitly signals safety.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, which is structurally sound. The problem is under-specification rather than verbosity, so it earns only middling credit for structure.

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?

Two required parameters, no annotations, and no output schema means the description must explain inputs and the shape of the returned content, and it does neither. For a file-reading tool where encoding, path resolution, and errors matter, this is a substantial gap.

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%, so the description must compensate for both parameters and does not. It never explains what appId identifies (presumably the registered repository) or whether filePath is absolute, repo-relative, or slash-separated, leaving an agent to guess input formats.

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 ("Read a file") plus a scoping qualifier ("from a registered repository"), which is enough to distinguish it from analysis tools like query_graph or run_health. However it does not distinguish itself from likely siblings such as get_file_tree or grep_codebase, which also surface file content.

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 read a whole file versus listing a tree (get_file_tree) or searching content (grep_codebase), and no stated preconditions such as needing a previously registered appId. The agent must infer usage entirely from the tool name.

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