Skip to main content
Glama
wrale

mcp-server-tree-sitter

by wrale

get_file

Retrieve file content from a specified project using a relative path. Supports optional line range parameters for precise content extraction.

Instructions

Get content of a file.

    Args:
        project: Project name
        path: File path relative to project root
        max_lines: Maximum number of lines to return
        start_line: First line to include (0-based)

    Returns:
        File content
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_linesNo
pathYes
projectYes
start_lineNo
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions what the tool does (get file content) and some parameters, but doesn't describe important behavioral aspects: whether this requires authentication, rate limits, file size limitations, error conditions, or what happens with binary files. The description is minimal and lacks behavioral context needed for safe operation.

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?

The description is efficiently structured with a clear purpose statement followed by parameter explanations and return value. Every sentence serves a purpose. The formatting with Args and Returns sections is helpful. It could be slightly more concise by integrating the purpose with parameter context, but overall it's well-structured.

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

Completeness3/5

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

For a file retrieval tool with 4 parameters, no annotations, and no output schema, the description is minimally adequate. It explains what the tool does and documents parameters, but lacks important context: no output format details, no error handling information, no authentication requirements, and no guidance on when to use versus alternatives. The Returns section is just 'File content' without specifying format or structure.

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?

With 0% schema description coverage, the description compensates well by explaining all 4 parameters in the Args section: project (Project name), path (File path relative to project root), max_lines (Maximum number of lines to return), and start_line (First line to include, 0-based). This adds significant semantic meaning beyond the bare schema, though it doesn't explain parameter interactions or constraints.

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 clearly states the tool's purpose with 'Get content of a file' - a specific verb (get) and resource (file content). It distinguishes from siblings like get_file_metadata (which returns metadata, not content) and list_files (which lists files, not retrieves content). However, it doesn't explicitly mention these distinctions in the description text itself.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention when to use get_file versus get_file_metadata, find_text, or other file-related tools in the sibling list. There's no context about prerequisites, limitations, or appropriate use cases beyond the basic function.

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

Related 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/wrale/mcp-server-tree-sitter'

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