Skip to main content
Glama

generate_handoff_brief

Read-onlyIdempotent

Generates a compact context brief from your stored intelligence, enabling AI to resume work instantly without re-explaining previous session context.

Instructions

Generate a surgical context brief for a new AI session. Instead of re-explaining your context, the AI already knows where you left off.

Uses a 5-layer compaction hierarchy to maximize signal in ~2,000 tokens:

  1. Intent — What you were trying to accomplish (never cut)

  2. Decisions — What was decided and completed

  3. Open Loops — Blockers, unresolved items, active todos

  4. Context — Technologies, entities, project details

  5. Content — Brief excerpts (trimmed to fit budget)

Call this at the start of a new session or when switching projects to give the AI instant context. No new data is generated — composes from your existing V2 intelligence extraction data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameNoOptional: filter brief to a specific project. If omitted, uses all recent activity.
token_budgetNoOptional: approximate token budget for the brief (default ~2000 tokens). Range: 500-5000.
Behavior5/5

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

Annotations already mark it as readOnlyHint=true and idempotentHint=true. The description reinforces this with 'No new data is generated' and details the 5-layer compaction process, adding behavioral context beyond the annotations.

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?

The description is concise (10 lines) with a clear front-loaded purpose. Each section (intent, decisions, etc.) is presented succinctly. No unnecessary information is included, and the structure aids readability.

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?

Given the tool's simplicity (2 optional params, no output schema) and strong annotations, the description fully covers the behavioral context: what it does, how it works (5-layer compaction), when to use it, and the fact it uses existing data. No gaps remain for an agent to understand the 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 coverage is 100% and already describes both parameters (project_name, token_budget) with defaults and ranges. The description adds context by mentioning the token budget in relation to the compaction hierarchy, but does not significantly enhance understanding beyond the schema.

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 clearly states the tool generates a surgical context brief for a new AI session, specifying the verb 'generate' and the resource 'handoff brief'. It distinguishes itself from re-explaining context by leveraging existing data, and the 5-layer hierarchy adds specificity.

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?

Explicitly states when to call: 'at the start of a new session or when switching projects'. Also contrasts with re-explaining context, providing an alternative. However, it does not directly compare to sibling tools like recall_memories or get_snapshot, which could serve similar purposes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/purmemo-ai/purmemo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server