Skip to main content
Glama
megamen32

session-convert

by megamen32

convert_session

Converts coding agent sessions between Claude Code, Codex CLI, and OpenCode. Reads a session, transforms messages to the target format, and writes to the target harness's native storage.

Instructions

Convert a session from one harness to another. Reads the session, transforms messages to the target format, and writes it to the target harness's native storage. OpenCode conversion (read/write) is uniquely supported — no other tool does this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTarget harness
fromYesSource harness
sessionIdYesSession ID to convert
projectPathNoFor OpenCode target: explicitly use this project-local .opencode/opencode.db; omitted uses the current global OpenCode database
searchPathsNoFor OpenCode source: paths to search for databases
Behavior2/5

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

No annotations are provided, so the description carries full burden. It describes the process (read, transform, write) but omits important behavioral traits like whether the source is modified, required permissions, or potential side effects. The uniqueness claim is helpful but insufficient.

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 description is concise with two sentences, no redundancy, and front-loads the core purpose. However, it could be more structured with bullet points for clarity.

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

Completeness2/5

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

Given no output schema and 5 parameters (3 required), the description fails to explain return values or the role of optional parameters (projectPath, searchPaths). The conversion process is described but completeness for decision-making is lacking.

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 baseline is 3. The description adds no additional meaning to parameters beyond what the schema already provides. It does not explain relationships between parameters or provide usage examples.

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 clearly states the tool converts a session between harnesses, using verbs 'reads', 'transforms', and 'writes'. It distinguishes from siblings by noting that OpenCode conversion is uniquely supported, making the purpose highly specific.

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 description hints at usage for OpenCode conversion but does not explicitly state when to use this tool versus siblings like convert_by_path or preview_conversion. No when-not-to-use guidance is provided.

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/megamen32/session-convert'

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