Skip to main content
Glama

nexo_session_log_create

Opens an automation run log entry for interactive Claude/Codex sessions. Call before spawning the child to capture metadata and receive a session ID for closing later.

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).
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explains the open-close lifecycle and that it returns a session_id. However, it does not mention side effects, idempotency, or what happens if called multiple times without closing. Still, the description adds useful behavioral context beyond the bare minimum.

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 very concise with only two sentences in the first paragraph and a clear directive in the second. It is front-loaded with the purpose and immediately provides actionable guidance. 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?

Given the tool has 9 parameters and no output schema, the description covers the essential workflow and usage context. It mentions the returned session_id and the pairing with nexo_session_log_close. However, it lacks details on error handling, authentication requirements, or the format of the return value.

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 does not add additional meaning beyond what is already in the input schema. The schema itself has detailed parameter descriptions, so no extra value is provided by the description.

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's purpose: opening an automation_runs row for an interactive Claude/Codex session. It distinguishes itself by specifying that it is for clients that spawn Claude/Codex directly, not through run_automation_prompt, which helps differentiate from other tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage instructions: call BEFORE spawning the child, store the returned session_id, and call nexo_session_log_close when the session ends. It also mentions the primary client (NEXO Desktop), giving clear context for when this tool should be used.

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