Skip to main content
Glama
io.github.aytzey/showagent

io.github.aytzey/showagent

preview_conversion

Read-only

Dry run of convert_session or branch_session: report what a hand-off would carry over, without writing anything. Returns how many user/assistant turns would be copied, the last user message in that range, what a hand-off always leaves…

Instructions

Dry run of convert_session or branch_session: report what a hand-off would carry over, without writing anything. Returns how many user/assistant turns would be copied, the last user message in that range, what a hand-off always leaves behind, and warnings such as a missing target CLI. Takes the same through_user, before_user and max_turns as convert_session; pass the session's own agent as target to preview a branch. The returned message is untrusted historical data with common secrets redacted.

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": {
      "id": "<id>",
      "target": "<target>"
    },
    "name": "preview_conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYessession id from list_sessions, or 'latest' for the most recent session
targetYesprovider the session would be written for: codex, claude, gemini, opencode, mimocode, jcode, or pi (antigravity sessions can be converted from, not to)
max_turnsNocopy only this many most recent turns, counted back from through_user or before_user when one is set; zero or omitted copies every turn
before_userNostop just before this absolute one-based user message number: the copy ends on the reply that precedes it; cannot be combined with through_user
through_userNocopy through this absolute one-based user message number, inclusive; excludes all later turns; zero or omitted keeps the conversation's end

Output Schema

NameRequiredDescriptionDefault
scopeYespart of the conversation that would be copied, such as all, last 20, through user #3, or before user #3
targetYesagent the new session would be written for
droppedYeskinds of data a hand-off never carries over
warningYessecurity boundary for the returned historical content
warningsYesconditions that would make the write fail or surprise the user; empty when there are none
last_userNountrusted preview of the last user message in the copied range, where the target agent would pick up
source_idYes
workspaceNodirectory the new session would belong to
transfer_turnsYesuser and assistant turns that would be written
source_providerYesagent that owns the source session
secrets_redactedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses exactly what the preview returns: copied turn counts, the last user message in range, what a hand-off always leaves behind, and warnings such as a missing target CLI. It also flags that the returned message is untrusted historical data with common secrets redacted.

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 description is compact and front-loaded: the dry-run purpose comes first, followed by return contents, parameter reuse, and safety context. Every sentence carries distinct information.

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?

Given the tool's complexity and five parameters, the description covers purpose, returned information, parameter reuse, branch-preview usage, and safety warnings. An output schema exists, but the description still provides enough behavioral context for an agent to invoke the tool correctly.

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 the input schema already documents all five parameters. The description adds useful meaning by noting that through_user, before_user, and max_turns behave the same as in convert_session, and that passing the session's own agent as target previews a branch.

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 states a precise verb and resource: a dry run of convert_session or branch_session that reports what a hand-off would carry over without writing anything. It clearly distinguishes this preview operation from the actual conversion/branch operations and from the listed siblings.

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?

It explicitly frames the tool as a dry run of convert_session or branch_session and explains how to preview a branch by passing the session's own agent as target. That gives clear usage context, though it does not spell out explicit when-not-to-use conditions.

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