Skip to main content
Glama

get_document_summary

Read-onlyIdempotent

Extract the first 3 pages or about 100 lines of a document to preview its content before reading it in full. This read-only summary helps you decide whether the document is relevant.

Instructions

Get a quick summary by extracting the first 3 pages or ~100 lines of a document. Use this to preview document content before deciding to read it in full. Read-only.

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": {
      "filename": "<filename>"
    },
    "name": "get_document_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesThe document filename to summarize

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the closing 'Read-only' sentence is largely redundant. However the description carries the key behavioral fact annotations cannot: output is truncated to ~3 pages/100 lines, so the agent knows it may not see the complete document. It does not mention error behavior for missing or non-text files, which is a minor gap.

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?

Three short sentences, front-loaded with the core behavior and size limit, followed by the usage rule. The trailing 'Read-only' sentence is the one piece that does not earn its place, since the annotations already state it.

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 single-parameter read tool with no output schema, the description covers the essentials: what it returns (a leading excerpt), how large that excerpt is, and when to reach for it. Missing is only the output format (plain text vs. markdown) and failure behavior, both modest omissions.

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?

Only one parameter, and the schema documents it at 100% coverage ('The document filename to summarize'). The description adds no meaning beyond that, such as whether a path, absolute/relative form, or extension is expected. With schema coverage this high, the baseline of 3 is appropriate.

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+resource (get_document_summary) and immediately clarifies what 'summary' actually means here: the first 3 pages or ~100 lines. That clarification is essential because it distinguishes this truncation-preview from a semantic summarization, and the phrase 'before deciding to read it in full' implicitly separates it from the read_document sibling without naming it.

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?

Gives a clear usage context: preview content before committing to a full read. That is a genuine when-to-use rule that maps onto the sibling read_document. It stops short of naming the alternative tool or stating when this tool is a poor choice (e.g., when the needed content is past page 3), so it falls short of a 5.

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