Skip to main content
Glama
ajmainapon

One Agent Harness

by ajmainapon

inject_session_to_agent

Convert and inject a context bundle into a target agent's native session store (Claude, Codex, Antigravity, or Grok) so the session resumes natively.

Instructions

Convert and inject the latest context bundle directly into a target agent's native session store ('claude', 'codex', 'antigravity', or 'grok') so it can be resumed natively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional workspace directory.
to_agentYesTarget agent ('claude', 'codex', 'antigravity', 'grok').
from_agentNoOptional source agent.
session_idNoOptional source session ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that the operation writes into a destination session store and that formats are converted, but it says nothing about whether an existing session there is overwritten, what permissions/auth are needed, or whether the injection is reversible. For a write-style tool with zero annotation coverage, this is a significant gap.

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?

A single sentence with the action verb front-loaded and no filler; the parenthetical agent list is compact. It earns nearly all of its length, though the long clause structure is slightly dense.

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?

With no annotations and no output schema, the description must stand alone. It conveys the core action and destination set, and 'latest context bundle' implicitly justifies the optional source parameters, but it omits side effects, overwrite behavior, and prerequisites — leaving real gaps for a mutating tool.

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 coverage is 100%, with all four parameters documented in the schema, and the description's parenthetical agent list merely repeats the to_agent enum. It adds no syntax, defaulting, or format detail beyond what the schema already supplies, 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?

The description names a specific compound verb (convert and inject) and a precise resource (the latest context bundle into a target agent's native session store), and it enumerates the valid destination agents. It does not explicitly name or contrast a sibling (e.g., pull_handoff_context), so it stops short of a 5.

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 trailing clause 'so it can be resumed natively' implies the situation in which to reach for this tool, but there is no explicit when-to-use statement, no exclusion, and no named alternative among the handoff/session siblings. Usage is inferable but not guided.

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