Skip to main content
Glama

nexo_session_log_close

Closes an automation run session, recording duration, token usage, cost, and error status. Finalizes the log entry for a completed task.

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 carries the full burden of behavioral disclosure. It only states the purpose without detailing side effects, idempotency, error handling, permissions, or what happens if the session does not exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no fluff, making it concise and front-loaded. However, it is overly minimal and lacks necessary details for effective tool invocation.

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?

Given the tool's complexity (10 parameters, part of a create/close pair), the description is incomplete. It does not explain parameter relationships, usage patterns, error handling, or return values, leaving significant gaps for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 70%, so most parameters have descriptions. However, the tool description adds no additional meaning beyond the schema for any parameters, including the three undocumented ones (input_tokens, cached_input_tokens, output_tokens), failing to compensate.

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: 'Close an automation_runs row opened by nexo_session_log_create.' It specifies the verb (close), the resource (automation_runs row), and links it to its sibling tool nexo_session_log_create, providing clear differentiation.

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 implies this tool should be used after nexo_session_log_create, but it does not explicitly state when to use it or when not to, nor does it mention alternatives or prerequisites like requiring a valid session_id from the create call.

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