Skip to main content
Glama
contextstream

ContextStream MCP Server

ContextCapsule

capsule
Read-onlyIdempotent

Package project context into portable, shareable snapshots for handoffs between agents or bootstrapping new sessions.

Instructions

ContextCapsule: portable, shareable, hydrate-on-demand snapshots of project context. Use capsule when the user pastes a /c/ link or capsule token, asks for a handoff/share/team/external-agent link, wants to bootstrap a fresh agent with project state, asks for a paste-ready handoff prompt (bootstrap prompt / prompt for another LLM), wants share-token graphs, or wants to list/audit capsules. Do not use capsule for normal turn-by-turn retrieval; use context instead. Team share links are authenticated and reusable by default; external_agent/public_link/support shares are token-gated and single-use by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoContextCapsule or AI Brain share URL
modeNoCapsule mode
nameNoCapsule/share name
graphNoGraph kind for action=graph
limitNoMaximum audit events or list caps
scopeNoCapsule scope
actionYesAction to perform
formatNoOutput format
offsetNoAudit result offset
hydrateNoWhether to fully hydrate the capsule
purposeNoCapsule purpose
audienceNoShare audience. team creates an authenticated member link; external_agent/public_link/support create token-gated links. self is valid for capsule policy but does not mint share tokens.
chunk_idNoChunk ID for chunk action
max_usesNoBurn-after-N-reads cap for action=share. Team links default to no max-use cap; token-gated single-use links default to max_uses=1 with a short grace window after first open.
sectionsNoExplicit sections to include
share_idNoContextCapsule share UUID
multi_useNoAllow the share to be opened multiple times until expiry. Defaults to true for team links and false for token-gated links.
capsule_idNoContextCapsule ID
event_kindNoFilter audit events by kind
project_idNoProject ID (UUID).
permissionsNoPermissions for the capsule/share
share_tokenNoExisting brain_/capsule_ share token
access_scopeNoFilter audit events by access scope
include_codeNoCode inclusion mode
workspace_idNoWorkspace ID (UUID).
cursor_chunk_idNoNDJSON stream cursor chunk ID
expires_in_daysNoShare expiry in days (defaults: team=7, external_agent/public_link/support=1)
redaction_levelNoRedaction level
include_personalNoInclude personal artifacts
refresh_if_staleNoForce regenerate manifest if stale
max_inline_tokensNoCap inline section tokens during action=create
require_unlock_keyNoFor action=share: require a one-time unlock key to open the share
unlock_destinationsNoFor action=share with require_unlock_key=true: destinations that receive the unlock key
Behavior1/5

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

The annotations declare readOnlyHint=true and destructiveHint=false, but the description includes mutating actions like create, share, delete, revoke_share, which contradict the read-only hint. This is a serious inconsistency that could mislead the agent. The description itself is detailed but contradicts 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively long but front-loaded with the core purpose and usage guidelines. It uses a list of use cases which is easy to scan. Some redundancy exists (e.g., explaining share behavior multiple times), but overall it is well-structured for the complexity.

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?

Given the tool has 33 parameters and 15 actions, the description covers intended usage scenarios and defaults. However, it lacks explanation of return values (no output schema) and does not fully detail all actions. It relies on the schema for parameter details but provides enough context for agent decision-making.

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%, so baseline is 3. The description does not add significant meaning beyond the per-parameter descriptions in the schema, though it provides some context on defaults (e.g., max_uses, expires_in_days). The description does not repeat parameter details.

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's purpose: 'portable, shareable, hydrate-on-demand snapshots of project context.' It lists specific use cases (pasting /c/<token> link, handoff requests, etc.) and explicitly distinguishes from the sibling tool 'context' (normal turn-by-turn retrieval).

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

Usage Guidelines5/5

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

The description provides explicit when-to-use scenarios (e.g., user pastes a capsule token, asks for handoff/share link, wants to bootstrap a fresh agent) and an explicit when-not-to-use (normal retrieval should use context). It also details behavior of different share types (authenticated team links vs token-gated single-use public/external links).

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/contextstream/mcp-server'

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