Skip to main content
Glama
Lipdog
by Lipdog

get_file

Read-onlyIdempotent

Retrieve file content from a GitHub repository with line numbers, line range slicing, and substring/regex filtering. Use after code search or symbol lookup.

Instructions

Read file content from one file in a GitHub repository. Returns full file with line numbers, supports line range slicing (start_line/end_line) and substring/regex match filtering with context lines. Truncates files over 500 lines unless a range or match is specified. Use after locating a file via search_code, find_symbol, or repo_tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository in 'owner/name' format (e.g. 'modelcontextprotocol/python-sdk').
pathYesFile path within the repo.
refNoBranch, tag, or commit SHA. Defaults to the default branch.
start_lineNoFirst line to show (1-indexed).
end_lineNoLast line to show (1-indexed, inclusive).
matchNoShow only lines containing this substring (case-insensitive). Surround with / for regex.
match_contextNoContext lines around each match.
Behavior4/5

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

Annotations already indicate readOnly/ idempotent behavior. Description adds key behavioral details: truncation of files over 500 lines, line range slicing, and match filtering with context lines. No contradictions with annotations.

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?

Two sentences, front-loaded with primary purpose and features, then usage guidance. Every sentence carries essential information with no redundancy.

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 and no output schema, description adequately covers core functionality, truncation, match filtering, and usage context. Could be slightly more detailed on response structure (e.g., metadata), but sufficient for an agent.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3. Description adds value by explaining how parameters work together (e.g., truncation avoidance via range/match) and mentions line numbers in output, which is not in schema.

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?

Clearly states 'Read file content from one file in a GitHub repository', specifying verb and resource. Distinguishes from siblings by advising to use after search_code, find_symbol, or repo_tree, making its unique role explicit.

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

Usage Guidelines4/5

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

Provides explicit context for when to use ('after locating a file via search_code, find_symbol, or repo_tree') and mentions truncation behavior that guides usage. Lacks explicit 'do not use' scenarios, but the context is clear.

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

Install Server

Other Tools

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/Lipdog/fossick-mcp'

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