Skip to main content
Glama

get_file_analysis

Retrieve a pre-computed LLM analysis summary describing what a source file is responsible for. Returns summary, model, and analysis timestamp.

Instructions

Return the file-level LLM analysis summary for a source file.

Read-only: yes. No side effects. Returns the pre-computed 2-3 sentence summary describing what the file is responsible for. Generated during fw-context index when [llm] analyze_symbols is enabled.

Returns file, summary, model, analyzed_at on success, or an error message if no analysis exists yet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to source file — relative to project root.
project_rootNoProject root. Auto-detected if omitted.
Behavior5/5

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

No annotations are provided, so the description carries full burden. It explicitly states 'Read-only: yes. No side effects.' It describes success return fields and error condition. This discloses safety and failure behavior completely.

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?

The description is concise with only a few sentences, no fluff. It front-loads the purpose, then states read-only, return fields, and conditions. Every sentence adds value.

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

Completeness5/5

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

Given the simplicity of the tool (2 params, no output schema, no annotations), the description is complete: it explains what the tool does, its safety profile, return structure, and when it may error. No obvious gaps remain.

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 description coverage is 100%, so the schema already documents both parameters. The description does not add additional parameter semantics beyond what the schema provides, justifying a baseline of 3.

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?

The description clearly states the verb 'Return', the resource 'file-level LLM analysis summary', and target 'source file'. It distinguishes itself from sibling tools like get_source and get_file_map by specifying it returns an LLM-generated summary, not raw source or structure.

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?

The description clarifies read-only nature and no side effects, and explains when the analysis is generated (during fw-context index when analyze_symbols is enabled). It also mentions error condition if no analysis exists. However, it does not explicitly compare to alternatives or state when not to use.

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/turbyho/fw-context-mcp'

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