Skip to main content
Glama

claude_session_status

Inspect a Claude Code session to check context-window usage, accumulated tokens, active model, last-modified time, and limit alerts.

Instructions

Consulta el estado de una sesión de Claude Code: porcentaje de la ventana de contexto usado (tope 1M de tokens), tokens acumulados, modelo activo, fecha de última modificación y alerta de límite.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "claude_session_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesUUID de la sesión de Claude Code a inspeccionar.
projectDirNoOpcional. Directorio del proyecto para acelerar la búsqueda.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It does disclose meaningful behavioral context beyond the name: the 1M-token ceiling, the specific metrics returned, and the existence of a limit alert. However, it says nothing about side effects, whether the read scans local files (and the cost of that), error behavior on an unknown sessionId, or whether projectDir changes results rather than just speed.

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 sentence with the verb and resource front-loaded, followed by a colon-separated list of reported fields. Every clause earns its place by naming an output the agent will receive. Slightly dense but no filler.

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?

There is no output schema, so the description must describe return values — and it does, enumerating the five reported metrics. Parameters are fully covered by the schema. The remaining gap is behavioral: no guidance on when to prefer this over siblings, and no note on failure modes or the meaning of the 'alerta de límite' threshold.

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%, so both parameters are already documented, including that projectDir is optional. The description adds no additional meaning about the parameters — it never mentions projectDir or how it interacts with the lookup. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

Uses a specific verb ('Consulta') on a specific resource ('estado de una sesión de Claude Code') and enumerates exactly what state is reported: context window %, token totals, active model, last-modified timestamp, limit alert. An agent can tell this is a per-session inspection tool, distinct from a listing tool. It stops short of naming how it differs from siblings like claude_compact_session or claude_account_limits.

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?

There is no explicit when-to-use, when-not-to-use, or alternative routing. Usage is only implied: an agent infers it should call this to check context consumption before deciding to compact. The prerequisite (a valid sessionId) is implied by 'de una sesión' but never stated as a prerequisite.

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