Skip to main content
Glama

nexo_session_log_create

Open a log record for an interactive Claude/Codex session. Call before spawning the child process, store the returned session ID, and close it when the session ends.

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?

No annotations are provided, so the description carries full burden. It states the tool 'opens' a row and returns a session_id, indicating creation. However, it does not disclose potential side effects, idempotency, error behaviors, or what happens on duplicate calls. This is adequate but lacks depth.

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 a single paragraph with a clear front-loaded statement of purpose, followed by contextual details and a specific usage sequence. Every sentence contributes value, and there is no redundancy or unnecessary information.

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 explains the purpose, context, and required sequence of calls (open, store id, close). It references the paired tool nexo_session_log_close. It does not detail the return format beyond 'session_id', but given no output schema, this is sufficient. It could be improved by mentioning behavior on duplicate calls or error conditions, but it is mostly 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?

The input schema has 100% description coverage, so the schema already documents each parameter well. The description itself does not add any additional semantics or usage notes for the parameters beyond stating that the session_id is returned. Thus, baseline score of 3 is appropriate.

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 that the tool opens an automation_runs row for an interactive Claude/Codex session. It specifies the use case for direct spawning (e.g., NEXO Desktop) and distinguishes it from the alternative run_automation_prompt, making the purpose unambiguous.

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?

The description explicitly instructs to call this BEFORE spawning the child, store the returned session_id, and call nexo_session_log_close when the session ends. It also provides context about when this tool is appropriate (direct spawning) and mentions the alternative path (run_automation_prompt).

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