Skip to main content
Glama

Pack project context

pack_context
Read-only

Create a redacted project context export for AI agents, with configurable file selection, detail level, and format.

Instructions

Build an exact redacted DevProjex context export. A stored pack id remains valid until this server process exits; after restart, call pack_context again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNotree-content
pathsNoExisting project-relative files or directories that narrow the selection.
branchNoOptional Git branch for a remote project URL; invalid for local project paths.
detailNoCollapse code to signatures or strip comments/blank lines to fit large projects into a budget; unsupported languages are returned unchanged.full
formatNomarkdown
profileNoSelection profile: 'standard', 'local', or a portable profile JSON path inside the project root.
projectNoAbsolute root path returned by list_projects, or a Git URL when the server allows remote sources. Optional only when one local root is configured.
git_scopeNoFurther restrict results to staged files, all current changes, or files changed between two Git refs.
max_tokensNoMaximum estimated content tokens to include; accepts an integer or numeric string. Document structure is outside this budget.
tracked_onlyNoRestrict results to files tracked by Git; accepts a boolean or the string 'true' or 'false'.
max_file_bytesNoExclude otherwise selected files strictly larger than this byte count; integer or numeric string.
exclude_patternsNoProject-relative glob patterns using '/' to exclude additional paths.
include_patternsNoProject-relative glob patterns using '/'. They only narrow built-in and gitignore filtering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=true and destructiveHint=false. The description adds the non-obvious behavior that a stored pack id is tied to the server process lifetime and becomes invalid on restart, which is valuable for an agent. It also implies a pack is stored in memory without contradicting the read-only annotation.

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?

Exactly two sentences. The first is a terse verb+object opening, and the second captures a critical lifetime constraint. Every word earns its place with no filler.

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

Completeness3/5

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

With 13 optional parameters and no output schema, an agent needs more orientation than this description provides. It never explicitly says the tool returns a pack id (only implies it), gives no example call shape, and does not explain what 'redacted' means for selection. The lifetime hint is useful, but the overall context is thin for such a complex tool.

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 85%, so the input schema already documents most parameters. The tool description adds no parameter-level meaning, such as which parameters are needed or how they interact, so it neither compensates for nor detracts from the schema's coverage.

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 opening sentence states a specific action ('Build an exact redacted DevProjex context export') with a clear resource, and the name pack_context helps distinguish it from siblings like read_pack and get_tree. However, it does not explicitly differentiate from those tools, and 'DevProjex context export' leaves some meaning implicit.

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?

The description gives one explicit usage signal: pack ids expire at process exit, so call pack_context again after restart. It does not, however, state when to prefer pack_context over read_pack, get_tree, or search_project, so guidance beyond the lifetime rule is implied rather than explicit.

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