Skip to main content
Glama
contextstream

ContextStream MCP Server

ContextCapsule

capsule
Read-onlyIdempotent

Create, share, and manage portable project context snapshots for team handoffs, agent bootstrapping, and external collaboration. Open share links, list capsules, or audit shares.

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
actionYesAction to perform
capsule_idNoContextCapsule ID
share_tokenNoExisting brain_/capsule_ share token
share_idNoContextCapsule share UUID
urlNoContextCapsule or AI Brain share URL
formatNoOutput format
hydrateNoWhether to fully hydrate the capsule
chunk_idNoChunk ID for chunk action
cursor_chunk_idNoNDJSON stream cursor chunk ID
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.
expires_in_daysNoShare expiry in days (defaults: team=7, external_agent/public_link/support=1)
multi_useNoAllow the share to be opened multiple times until expiry. Defaults to true for team links and false for token-gated links.
include_personalNoInclude personal artifacts
include_codeNoCode inclusion mode
redaction_levelNoRedaction level
permissionsNoPermissions for the capsule/share
scopeNoCapsule scope
workspace_idNoWorkspace ID (UUID).
project_idNoProject ID (UUID).
purposeNoCapsule purpose
nameNoCapsule/share name
modeNoCapsule mode
sectionsNoExplicit sections to include
event_kindNoFilter audit events by kind
access_scopeNoFilter audit events by access scope
limitNoMaximum audit events or list caps
offsetNoAudit result offset
graphNoGraph kind for action=graph
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.
max_inline_tokensNoCap inline section tokens during action=create
refresh_if_staleNoForce regenerate manifest if stale
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds valuable behavioral context such as default share behavior (authenticated/reusable vs token-gated/single-use), burn-after-N-reads cap, and expiry defaults, which go beyond annotations without contradicting them.

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 concise paragraph that front-loads the key concept and then enumerates use cases and exclusions. It is efficient without being overly terse, though bullet points could improve scanability.

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's complexity (31 parameters, many enums, no output schema), the description covers purpose, usage guidelines, behavioral nuances, and sibling differentiation. Parameter descriptions in the schema are thorough, so the description doesn't need to detail each action. It provides sufficient context for an AI agent to select and invoke the tool correctly.

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?

Input schema has 100% description coverage for all 31 parameters. The description adds high-level context like default expiry and multi-use behavior but does not expand on individual parameter meanings beyond what the schema provides. Baseline 3 is appropriate.

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 defines the tool as managing context capsules ('portable, shareable, hydrate-on-demand snapshots') and lists specific use cases (e.g., pasting /c/<token> links, handoffs, bootstrapping). It explicitly distinguishes from the sibling tool 'context' for normal 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 explicitly states when to use ('use capsule when the user pastes a /c/<token> link...') and when not to use ('Do not use capsule for normal turn-by-turn retrieval; use context instead'), providing clear guidance with alternative tool named.

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