Skip to main content
Glama

File summary

file_summary
Read-onlyIdempotent

The generated summary of one file: its title, a description, and a nested outline of sections, each with a short summary and the line range it covers in read_file's content. Use it to decide whether a file is worth reading, or where in it to look (read_file takes startLine and lineCount). Returns status "none" for a file with no summary yet - they are generated in the background after a text or document file is added or changed, and never for data files, images or media.

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": {
      "path": "<path>",
      "context": "<context>"
    },
    "name": "file_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFull path of the source file including its filename, e.g. '/docs/report.pdf'.
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false), and the description adds genuinely new behavior: summaries are generated in the background after a text or document file is added or changed, and status "none" signals no summary exists yet. That lifecycle detail prevents an agent from misreading an empty result as an error, though it does not say how long generation typically takes or whether re-calling later is expected.

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?

It is a single dense paragraph with no wasted sentences, front-loaded with what the tool returns. The trade-off is that return shape, usage guidance, and the status "none" caveat are packed together without sentence breaks, making it slightly harder to scan than it needs to be.

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?

There is no output schema, so the description carries the burden of explaining return values, and it does: title, description, nested section outline with per-section summary and line range, plus the "none" status case. Combined with the read_file handoff, an agent has everything needed to call it and interpret the result.

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 path, context, and workspace_id are fully documented in the schema and the baseline applies. The description adds no parameter-level detail of its own; the only path-related hint is that line ranges correspond to read_file's content, which is a cross-tool mapping rather than new parameter semantics.

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 names the resource precisely ("the generated summary of one file") and enumerates its shape: title, description, and a nested outline of sections with short summaries and line ranges. This clearly distinguishes it from read_file, which returns raw content rather than a generated summary.

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

Usage Guidelines5/5

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

It states the two concrete decision points for calling it: judging whether a file is worth reading, and locating where in the file to look, explicitly naming read_file with startLine and lineCount as the follow-up. It also gives a negative case — summaries are never generated for data files, images, or media — so the agent knows when the call is pointless.

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