Skip to main content
Glama
session-bridge
by Mahyardana

export_agy_to_omp

Convert an Antigravity conversation into a native resumable oh-my-pi v3 .jsonl session file so you can resume it immediately with omp -r <id> or omp -c.

Instructions

Convert an Antigravity (agy) conversation into a NATIVE resumable oh-my-pi (omp) v3 .jsonl session file under ~/.omp/agent/sessions// so you can immediately resume it with omp -r <id> or omp -c.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional workspace filter for resolving the source AGY session.
modeNo'full' preserves native paired toolCall/toolResult messages; 'compact' merges tool actions into compact notes inside assistant turns; 'conversation' keeps user & assistant text only.full
titleNoOptional custom title for the created OMP session.
sessionNoAGY conversation ID, ID prefix, title substring, 'current', or 'latest'.latest
target_cwdNoOptional override for the target OMP session's workspace directory.
include_thinkingNoInclude assistant thinking blocks in 'full' mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the concrete side effect: a file written under ~/.omp/agent/sessions/<encoded-cwd>/ in v3 .jsonl format. It does not say whether an existing session with the same title/id is overwritten, whether the source AGY session is left intact, or what is returned on success or failure.

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 that leads with the conversion, then the artifact and its location, then the immediate benefit. No filler and no repetition of schema content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers destination, format, and downstream resume usage, which are the essentials for a 6-parameter conversion tool with no output schema. It leaves the return value (session id, path, or nothing) and collision/overwrite behavior unspecified, which an agent would want before calling it twice.

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% and every parameter, including the mode enum and the session selector syntax ('current', 'latest', prefix, substring), is already documented in the schema. The description adds only the destination path convention (encoded-cwd) and the 'NATIVE' framing, so the baseline 3 applies.

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 verb and both endpoints precisely: converts an Antigravity (agy) conversation into a native resumable oh-my-pi (omp) v3 .jsonl session file. The directionality implicitly separates it from export_omp_to_agy, but no sibling is named, so an agent must infer the reverse-direction tool from its name alone.

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?

Usage is implied by the stated payoff ('so you can immediately resume it with `omp -r <id>` or `omp -c`'), which tells the agent the goal but not the trigger conditions. There is no explicit when-to-use versus import_agy_session/import_omp_session, and no note on what happens if the user already has an OMP session.

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