Skip to main content
Glama

nexo_session_log_close

Closes an automation runs session opened by nexo_session_log_create, recording exit code, duration, token usage, cost, and error details.

Instructions

Close an automation_runs row opened by nexo_session_log_create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesid returned by the create call.
returncodeNochild exit code (0 = ok).
duration_msNowall-clock duration in milliseconds.
input_tokensNo
cached_input_tokensNo
output_tokensNo
total_cost_usdNocost in USD as a string (parsed to float).
telemetry_sourceNoshort label identifying where the counts came from ("desktop_stream", "codex_json", ...).
cost_sourceNoshort label for cost provenance.
errorNoshort error message if the session failed.
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. The phrase 'Close an automation_runs row' implies a mutation, but the description does not explain what happens on closure (e.g., data finalization, side effects, or state changes). Given the lack of annotations, this is insufficient.

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?

The description is a single sentence that directly states the purpose. It is concise and front-loaded, with no wasted words. However, it is perhaps too brief given the tool's complexity, but it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, no output schema, and no annotations, the description is very short and does not cover essential context such as what closing entails, expected return values, or how to use parameters effectively. It is incomplete for the tool's complexity.

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 70% (7 of 10 parameters have descriptions), so the baseline is 3. The description adds no parameter-specific information; it only refers to the session_id indirectly. While the schema already explains most parameters, the description does not enhance understanding beyond the schema.

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 verb 'close' and the resource 'automation_runs row', directly referencing its counterpart 'nexo_session_log_create' to establish a clear pair. This effectively distinguishes it from sibling tools.

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 description implicitly indicates that this tool should be called after nexo_session_log_create by referencing 'opened by nexo_session_log_create', but it provides no explicit guidance on when to use vs. alternatives, no caution about required parameters (e.g., session_id is required but not emphasized), and no mention of prerequisites or side effects.

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