Skip to main content
Glama

fetch_plugin_source_file

Read-onlyIdempotent

Fetch a file from a mirrored plugin source repo. Optional line slicing for large files.

Input Schema

NameRequiredDescriptionDefault
pathYesRepo-relative path, e.g. "src/main/java/com/magmaguy/elitemobs/powers/lua/LuaPowerRuntime.java".
repoYes
line_endNoOptional. Read up to and including this line.
line_startNoOptional. Read from this line (1-indexed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is well covered. The description adds the 'mirrored repo' context and hints that large files support slicing, but says nothing about rate limits, file-size caps, or error behavior on missing paths.

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?

Two tight sentences, front-loaded with the core action and followed by the useful slicing caveat. Nothing is wasted.

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?

For a simple read tool with full annotations and rich schema examples, this is close to complete. The absence of an output schema means the description could clarify return shape (raw file text vs metadata), a minor remaining gap.

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 coverage is 75%, so the schema documents most params including the repo enum and path example. The description's line-slicing mention aligns with line_start/line_end but adds no syntax or edge-case 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 (fetch) and resource (a file from a mirrored plugin source repo), and the line-slicing note clarifies the scope. It distinguishes itself from search_plugin_source by targeting a known path rather than searching, though it doesn't explicitly name that sibling.

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

Usage Guidelines3/5

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

Usage is implied: you call it when you know the repo and path. There's no explicit 'use this instead of search_plugin_source' guidance or prerequisites, leaving the agent to infer when to fetch versus search.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources