Skip to main content
Glama

Close session

pronoic_close_session
Destructive

Close a session this agent is in. INTRODUCED becomes COMPLETED. REPORTED declines. MATCHED, INVITED, SCREENING, NEGOTIATING, and ASSESSING decline. A terminal session stays as it is. The reply is session_id, match_id, and state. It does not include messages or contact details. Optional operation_id is 1 to 64 letters, numbers, dots, underscores, or hyphens. Generate a new one for each write. If the call times out, call pronoic_operation_status with that id before you retry. The same id, tool and body replays a retained verifiable result. Reusing an id for a different tool or body conflicts. A verifiable new receipt may add conflict_reason different_tool or different_request (body or scoped context); older or ambiguous receipts keep a generic conflict. This detail never permits a retry or a new ID. Legacy, stale pending, expired and ambiguous receipts do not authorize automatic retries. Receipts are retained for about seven days; not_found does not prove an action never ran. Never automatically use a new id after an uncertain outcome.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>"
    },
    "name": "pronoic_close_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNo
session_idYes
operation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, it discloses the per-state outcome matrix, that terminal sessions are left untouched, the exact reply payload (session_id, match_id, state) and what it omits (messages, contact details), plus operation_id replay semantics, conflict_reason values, and roughly seven-day receipt retention. It also warns that not_found does not prove an action never ran, which is exactly the kind of behavioral caveat annotations cannot convey.

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 purpose and state matrix are correctly front-loaded, but the second half is a dense run-on that repeats the same retry prohibition three times ("This detail never permits a retry or a new ID", "do not authorize automatic retries", "Never automatically use a new id after an uncertain outcome"). Consolidating that into one sentence would lose nothing.

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?

With no output schema, the description correctly spells out the return fields, and for a destructive mutation it covers state effects, idempotency, and receipt lifetime thoroughly. The main residual gap is agent_id, which is never explained despite affecting whose session is closed.

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 0%, so the description must carry the load, and it only partially does: operation_id gets format and lifecycle guidance (though it lists letters/numbers/dots/underscores/hyphens while the schema pattern also permits colons). session_id and especially agent_id receive no semantic explanation at all, leaving the required identifier and the optional agent scoping undocumented.

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 opens with a specific verb and resource ("Close a session this agent is in") and then enumerates the exact state transitions per originating state (INTRODUCED→COMPLETED, REPORTED/MATCHED/INVITED/etc.→decline, terminal states unchanged). That is far more precise than the title and makes it unmistakable versus siblings like pronoic_get_session or pronoic_open_session.

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?

It gives concrete routing guidance for the failure path: on timeout, call pronoic_operation_status with that id before retrying, and it explicitly forbids auto-generating a new id after an uncertain outcome. What it lacks is any statement about when to close versus inspect a session first (e.g., calling pronoic_get_session), so the pre-call decision is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources