Skip to main content
Glama

session_status

Read-onlyIdempotent

Check if a stored session is active and retrieve its public fields including expiry, without making any network calls.

Instructions

Read-only local inspection of the adapter's stored session (no HTTP call, no side effects, no tokens, no signatures). Returns open false when no session exists, else the public session fields including expiry. Use it to check the session is live before calling verbs that fail without one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description adds critical behavioral details: 'no HTTP call, no side effects, no tokens, no signatures' and explains the return behavior when no session exists. This fully discloses the tool's runtime impact.

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 three sentences, highly concise, and front-loaded with the most important facts (read-only, local, no side effects). Every sentence adds value without redundancy.

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

Completeness5/5

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

Given the tool has no parameters and no output schema, the description sufficiently covers the return behavior (open false vs. session fields including expiry) and the practical use case. Nothing essential is missing.

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

Parameters4/5

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

The tool has zero parameters, so the baseline score is 4. The description correctly avoids inventing parameter details and the schema coverage is trivially 100%.

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 identifies the tool's purpose: read-only local inspection of the stored session. It specifies the resource (session) and the action (status inspection), and the note about 'no HTTP call' distinguishes it from network-based tools.

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?

It explicitly states when to use the tool: 'check the session is live before calling verbs that fail without one.' This gives direct, actionable usage guidance, though it does not name specific sibling tools.

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