Skip to main content
Glama

Start Session

session_start
Read-only

Start, resume, or continue project memory before acting by loading owner rules and state cards; request full context on demand. This read-only entry call grounds work in project-specific recall.

Instructions

[ENTRY — call FIRST, before acting] Use when the user asks to start, load, continue, resume, or open memory for a project. Default mode='cards' loads the owner card, the HARD RULES and the project state card and nothing else; mode='full' adds continuity, insights, rooms, captures and the rest (and is the default when verbose=true, which promises the full JSON context); mode='lite' is a ≤500-token sketch (pull memory on demand via recall()). Read-only: the call leaves the memory store byte-identical (disclosed exceptions: AR_AB_ENABLED=1 writes an A/B arm row, and the hosted server's per-credential activity record). Usage counters and telemetry are queued and recorded before the next write tool (waits at most ~1.5 s), by a 30 s background flush, or when the stdio server's stdin closes or it receives SIGTERM/SIGINT; a crash (kill -9, power loss) before then loses them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "session_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault 'cards' = owner card + HARD RULES (P0s and behaviour policies) + state card + pending-review count, nothing else; 'full' = every section (continuity, insights, rooms, captures, …) and the default when verbose=true; 'lite' = ≤500-token sketch, pull on demand.
contextNoOptional context for matching cross-project insights
projectNoauto
verboseNoSet true to get full JSON context instead of terse summary

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.5.3
    • removedInput schema / properties / mode / default
      Removed value: -"full"
    • changedInput schema / properties / mode / description
      Previous value: -"'lite' = ≤500-token sketch; agent must pull on demand. 'full' = current rich payload."New value: +"Default 'cards' = owner card + HARD RULES (P0s and behaviour policies) + state card + pending-review count, nothing else; 'full' = every section (continuity, insights, rooms, captures, …) and the default when verbose=true; 'lite' = ≤500-token sketch, pull on demand."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "full",
      -  "lite"
      -]New value: +[
      +  "cards",
      +  "full",
      +  "lite"
      +]
  2. Addedv3.4.40
  3. Removedv3.4.38
  4. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, but the description goes well beyond them by naming the exact exceptions where a write occurs (AR_AB_ENABLED=1 A/B arm row, hosted per-credential activity record) and detailing the counter/telemetry flush timing (~1.5 s wait, 30 s background flush, stdin close/SIGTERM/SIGINT) plus what is lost on kill -9. This is unusually rich, and it is consistent with the annotation rather than contradicting it.

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 entry-point directive is front-loaded in brackets, and each sentence carries distinct information: mode behavior, read-only guarantee, and persistence timing. The telemetry-flush sentence is dense and clause-heavy, but it is load-bearing disclosure rather than filler.

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?

For a complex, mode-switching tool with no output schema, the description covers what each mode returns, the read-only guarantee with its disclosed exceptions, and durability of the side-channel writes. What remains unexplained is how project='auto' resolves and the concrete shape of the returned cards, which an agent must discover by calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema already documents mode, context, and verbose. The description still adds genuine meaning: mode-specific payload contents (owner card, HARD RULES, state card, pending-review count), the ≤500-token bound for 'lite', and the interaction where verbose=true defaults mode to 'full'. It says nothing about how the 'project' parameter resolves its 'auto' default, which is the remaining gap.

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 names a specific action (start/load/continue/resume/open memory for a project) and explicitly declares its ordinal position in the workflow with '[ENTRY — call FIRST, before acting]'. That framing alone lets an agent distinguish it from siblings like recall or check without inspecting their schemas.

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?

It enumerates the triggering user intents (start, load, continue, resume, open memory for a project) and gives an explicit decision rule among the three modes: 'cards' is the default minimal load, 'full' adds everything and is implied by verbose=true, 'lite' is a token-bounded sketch with recall() as the on-demand alternative. That is when-to-use plus named alternatives.

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

Deploy Server

Other Tools