Skip to main content
Glama

read_pack

Packs bounded symbol and keyword slices from requested files for file-reading tasks, returning compact context instead of full file contents.

Instructions

Zero-LLM context packing for file-reading tasks. Returns bounded symbol/keyword slices instead of whole files.

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": {
      "paths": "<paths>"
    },
    "name": "read_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNo
pathsYes
promptNo
base_dirNo
max_filesNo
window_linesNo
max_bytes_per_fileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that output is bounded and produced without an LLM call, but says nothing about error behavior for missing/unreadable files, how truncation is signalled, whether the operation is read-only in practice, or what the returned structure looks like.

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 short sentences with the key distinction (slices, not whole files) front-loaded and no filler. The phrase 'Zero-LLM context packing' is somewhat jargon-laden, but the sentence stays compact and readable.

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

Completeness2/5

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

This is a 7-parameter tool with zero schema documentation, no annotations, and no output schema, so the description is the only source of guidance — and it addresses none of the parameters, defaults, or failure modes. For that complexity level the definition is materially under-specified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, and the description explains none of them — paths, task, prompt, base_dir, max_files, window_lines, and max_bytes_per_file are all left opaque. 'Bounded ... slices' faintly gestures at the window/byte limit parameters, but no parameter is actually defined or given format, defaults, or units.

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 states a concrete action and output shape: it packs context for file-reading tasks and returns bounded symbol/keyword slices rather than whole files. That is more specific than the bare name 'read_pack', though it never contrasts itself with siblings like get or get_artifact_slice, so differentiation is left to inference.

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 only implied: 'for file-reading tasks' plus 'instead of whole files' suggests preferring this over full-file reads, but there is no explicit when-to-use, when-not-to-use, or named alternative among the many sibling tools. The agent must guess the boundary conditions.

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