Skip to main content
Glama

nexo_session_log_create

Creates a log entry for an interactive Claude/Codex session, returning a session ID for tracking. Call this before spawning the child process.

Instructions

Open an automation_runs row for an interactive Claude/Codex session.

Designed for clients that spawn Claude/Codex directly (notably NEXO Desktop, which runs a TypeScript process that shells out to the CLI without going through run_automation_prompt). Call this BEFORE spawning the child, store the returned session_id, then call nexo_session_log_close when the session ends.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callerYesRegistered caller id (see src/resonance_map.py). For Desktop's "new conversation" button, use "desktop_new_session".
backendYes"claude_code" or "codex".
session_typeNo"interactive_chat" | "interactive_desktop" — how the session is shaped. Default "interactive_desktop".interactive_desktop
modelNoConcrete model the client resolved, e.g. "claude-opus-4-7[1m]".
reasoning_effortNoConcrete effort string, e.g. "xhigh".
resonance_tierNoTier label ("maximo"/"alto"/"medio"/"bajo"). If left empty the Brain resolves it from caller.
cwdNoWorking directory the session is anchored to.
pidNoChild process PID if available.
context_excerptNoOptional first-prompt preview (used to size prompt_chars in telemetry).
Behavior3/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It indicates that the tool creates a row and returns a session_id, but does not detail side effects, idempotency, permissions, or error behaviors. This is adequate but not comprehensive.

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 composed of three concise, front-loaded sentences. Each sentence serves a distinct purpose: core function, target context, and usage sequence. No unnecessary words.

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?

The description covers the essential lifecycle (open, store ID, close) and target scenario. However, with no output schema, it does not fully describe the return value structure (only mentions session_id). For a 9-parameter tool, the guidance is fairly complete.

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 schema already documents all parameters. The description adds no extra parameter-specific meaning beyond what the schema provides, resulting in a baseline score of 3.

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 it opens an automation_runs row for interactive Claude/Codex sessions, with a specific verb and resource. It differentiates from siblings by naming the target client (NEXO Desktop) and mentioning the alternative pathway (run_automation_prompt).

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?

The description explicitly instructs to call this BEFORE spawning the child and to call nexo_session_log_close afterward, providing a clear sequence. However, it does not explicitly state when not to use it or name alternative tools for similar purposes.

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/wazionapps/nexo'

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