Skip to main content
Glama

cortical_handoff

Idempotent

Save and load shared task context—goal, modified files, decisions, and next step—so different coding agents can resume work across Antigravity, pi, OpenCode, Claude Code, and Codex.

Instructions

Save or load shared working context (goal, modified files, decisions, next_step) across Antigravity, pi, OpenCode, Claude Code & Codex.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "cortical_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoShort statement of the active objective when saving a handoff.
actionYesWhether to save the current task handoff state or load the latest saved handoff.load
summaryNoConcise summary of progress, decisions, and current state.
next_stepNoExact next action for the receiving agent or harness to execute.
modified_filesNoList of file paths modified during the session.
source_harnessNoName of the harness creating the handoff (e.g. antigravity, pi, opencode, claude-code, codex).

Output Schema

NameRequiredDescriptionDefault
pathNo
foundNo
savedNo
handoffNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the safety profile is largely carried by structured data. The description adds the meaningful fact that the context is *shared* across distinct harnesses (i.e., persistence in a common store, not a per-session buffer), but it omits whether a save overwrites the previous handoff, where the store lives, and whether any auth or workspace scoping applies.

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?

A single front-loaded sentence with the verb-resource pair first and the supporting detail in parentheses. Nothing is redundant and nothing is buried.

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?

With a full-coverage schema, an output schema, and informative annotations, the description only needs to frame intent, which it does. The remaining gap is overwrite/retention semantics for the save action, which an agent deciding whether to call save would reasonably want.

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 100%, so the schema already documents all six parameters, establishing a baseline of 3. The parenthetical field list adds only light reinforcement and even introduces a slight mismatch by naming 'decisions', which is not a parameter (it is folded into summary), so it does not meaningfully extend parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific paired verb (save/load) and a clearly named resource (shared working context), then enumerates the payload fields and the harnesses it bridges. An agent can tell immediately that this is a cross-harness handoff store, which none of the sibling tools (compress, doctor_status, next_prompt, vault_read) cover. It stops short of 5 only because it never contrasts itself with those siblings.

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

Usage Guidelines3/5

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

The cross-harness framing implies the natural workflow (save before handing off, load when picking up), but the description never says this explicitly and offers no when-not guidance, no note on which action is the default for a fresh session, and no mention of what happens if no prior handoff exists. Usage is inferable rather than stated.

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