Skip to main content
Glama
session-bridge
by Mahyardana

import_omp_session

Import an oh-my-pi session into the current conversation to restore context, reconstruct the active branch, format a handoff transcript within the character budget, and archive the full transcript.

Instructions

Import an oh-my-pi (omp) session into the CURRENT conversation context (ideal when running inside agy). Reconstructs the active branch (respecting omp compaction summaries), formats a clean handoff transcript within the char budget, and archives the complete verbatim transcript on disk for on-demand lookup.

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": "import_omp_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional workspace directory to prioritize when resolving 'latest' or ambiguous queries.
sessionNoOMP session ID, ID prefix, .jsonl path, title substring, or 'latest'.latest
max_charsNoMaximum characters to return inline (full verbatim transcript is always saved to disk).
include_toolsNoInclude tool calls and summarized tool outputs.
include_thinkingNoInclude assistant thinking blocks.
respect_compactionNoStart from the latest OMP compaction summary if the session was compacted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the branch is reconstructed respecting compaction summaries, that output is truncated to a char budget, and that a side effect occurs (full verbatim transcript archived on disk for on-demand lookup). Undisclosed: where the archive lands, whether the import is reversible, and any permission or session-existence requirements.

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?

Two sentences, front-loaded with the action and target (import omp session into current context), followed by the mechanics. Dense but not padded; the 'ideal when running inside agy' aside is slightly buried mid-clause but still earns its place as routing signal.

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?

Six optional parameters and no output schema, so the description must explain the return shape, and it does: bounded inline transcript plus an on-disk full copy. Given the tool mutates the current conversation and writes to disk, a note on archive location or retrieval path would close the remaining gap.

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 100%, so baseline is 3, and the description adds real meaning on top: 'within the char budget' plus 'complete verbatim transcript is always saved' frames max_chars as a display cap rather than data loss, and 'respecting omp compaction summaries' reinforces respect_compaction. It does not extend to cwd, include_tools, or include_thinking beyond what the schema already says.

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?

Specific verb and resource: 'Import an oh-my-pi (omp) session into the CURRENT conversation context', plus the three things it produces (reconstructed branch, inline transcript, archived file). It signals the omp-vs-agy distinction only obliquely via 'ideal when running inside agy' rather than naming import_agy_session, so sibling differentiation is implied, not stated.

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 parenthetical 'ideal when running inside agy' gives a situational hint, and the phrase 'CURRENT conversation context' implies this is for live handoff rather than batch inspection. There is no explicit when-not guidance and no named alternative (e.g., import_agy_session, read_session_turns) for the case where the caller wants raw turns instead of a formatted handoff.

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