Skip to main content
Glama

session_enter

Idempotent

Register an app/session pair at session start, resolve entry mode as human or dispatched specialist, and retrieve project orientation: standing records, latest handoff, aliases, and ledger presence.

Instructions

FIRST CALL of any session. Registers the app/session pair, resolves the entry mode (human seat vs dispatched specialist — pass dispatch_id when entering to work an assigned packet), and returns orientation: project info, ORIENT.md presence, standing records (stack, portfolio, milestones, commitments, governance flags), the latest project handoff, collection aliases, and FRANK ledger presence. Close the session later with session_handoff_write (human path) or handoff_write_v4 (dispatch path).

Identity-in-session PR2: verifier, attested_at, and seal_sig are optional and route through the willow orchestrator branch. When the per-verifier keyring (WILLOW_KEYRING) is enabled and all three are supplied, the signature is verified over the frozen wire message BEFORE any session record is written; an invalid signature returns a structured error rather than a raw exception. When the keyring is not enabled the three parameters are ignored and pre-PR2 behavior stands verbatim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYes
projectNo
seal_sigNo
verifierNo
workspaceNo
session_idYes
attested_atNo
dispatch_idNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv2.19.0
    • addedInput schema / properties / attested_at
      Added value: +{
      +  "default": "",
      +  "title": "Attested At",
      +  "type": "string"
      +}
    • addedInput schema / properties / seal_sig
      Added value: +{
      +  "default": "",
      +  "title": "Seal Sig",
      +  "type": "string"
      +}
    • addedInput schema / properties / verifier
      Added value: +{
      +  "default": "",
      +  "title": "Verifier",
      +  "type": "string"
      +}
  2. Addedv2.2.3

TDQS

A4.5/5.0
Behavior5/5

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

Beyond annotations, the description discloses the side effect (registers/writes a session record), the conditional PR2 signature-verification behavior, the ordering guarantee (verification BEFORE record writing), and the structured-error behavior on invalid signatures. It also states when parameters are ignored, which is valuable behavioral context. No contradiction with idempotentHint=true.

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 most essential fact ('FIRST CALL') is front-loaded, the core behavior is compactly listed, and the second paragraph isolates the PR2 edge case without cluttering the main flow. Every sentence earns its place given the 8-parameter surface.

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?

For a tool with no output schema and only basic annotations, it describes the full return orientation payload, the two entry modes, how to close the session, and the conditional auth branch. Missing details like duplicate-session behavior are already covered by idempotentHint=true.

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 0%, so the description must compensate. It explains dispatch_id, verifier, attested_at, and seal_sig meaningfully, and 'app/session pair' hints app_id/session_id, but project and workspace are left completely unexplained.

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?

States the verb 'FIRST CALL', resource (app/session pair), and scope (registers, resolves entry mode, returns orientation), explicitly positioning itself as the entry point to every session. This differentiates it from siblings like session_read or session_handoff_write without needing to open 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 Guidelines4/5

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

Explicitly says to pass dispatch_id when entering to work an assigned packet and names the session-closing sibling tools for both the human and dispatch paths. It does not, however, articulate exclusions such as 'do not use for later reads' or what to do if the session already exists, leaving some usage inference to the agent.

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/willow-memory/willow-mcp'

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