Skip to main content
Glama

session_status

Read-onlyIdempotent

Retrieve a session's derived status by session ID, with an optional server identifier, to check the state of another OpenCode session before reading, searching, comparing, or prompting it.

Instructions

Get derived status for a session.

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": "session_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverNoServer id. Omit when exactly one server is available.
session_idYesSession id on that server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds almost nothing beyond the word "derived", leaving unclear whether status is computed on demand, cached, or how it behaves for a nonexistent session id.

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?

A single front-loaded sentence with no wasted wording. Its brevity is appropriate in form, though the terseness crosses into under-specification of the resource being described.

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 no output schema, the description carries the burden of explaining what a status object contains, and it does not. For a status-reading tool with no return-value documentation, an agent cannot anticipate the shape or possible state values of the response.

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%, and the schema explains both session_id and the optional server parameter including the omit-when-single-server rule. The description contributes no additional parameter meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get derived status for a session" names a verb and a resource, but "derived status" is undefined and does nothing to separate this tool from the sibling session_get. An agent can guess it returns a computed state summary, but cannot tell what fields that covers or why it differs from fetching the session itself.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no statement of when derived status is preferable to session_get, no mention of polling or freshness expectations, and no mention of what happens when the session is missing or still starting. The only routing signal is the tool name.

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