Skip to main content
Glama

get_context

Compile an agent-ready context pack from vault data, selecting profile, project, workflow, or session details within a character limit for AI coding tasks.

Instructions

Compile agent-ready context pack from vault data

Input Schema

NameRequiredDescriptionDefault
modeNoprofile|project|workflow|skill|planning|session_recall|full_brief
queryNoOptional search query
includeNoSections: profile,decisions,workflows,recent_sessions,artifact_summaries,references
projectNoProject name or ID
max_charsNoMaximum characters (default 12000)
exclude_archivedNoExclude archived entries

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It implies a read-style compilation from vault data but does not disclose permissions, side effects, performance characteristics, output size behavior, or what happens across the several modes.

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?

The description is a single front-loaded sentence with no wasted words. It is not verbose, though its brevity contributes to gaps captured in other dimensions.

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 complex tool with six optional parameters, multiple modes, section selection, size limits, and no output schema. A seven-word description is not sufficient to explain the modes, expected outputs, or how the compiled pack should be used.

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 all six parameters are already documented in the schema. The description adds no parameter-level meaning beyond what the schema provides, which is the baseline 3 for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb ('Compile') and a resource ('context pack from vault data'), so the general purpose is identifiable. However, 'agent-ready context pack' is vague jargon and the description does not clarify what the pack contains or how it differs from siblings like get_context_bundle or vault_mem_context.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool, when not to use it, or which sibling tools are alternatives. The agent must infer usage from the name alone.

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