Skip to main content
Glama

get_session_state

Retrieve compact OpenOCD and GDB session state to recover debugging context after compaction.

Instructions

Return compact OpenOCD + GDB session state for fast recovery after compaction.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_session_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries full burden; 'Return' implies a read-only, non-mutating operation, and 'compact' signals a summarized payload rather than full detail. It does not disclose the shape, size, or contents of what comes back, nor any dependency on an active OpenOCD/GDB connection.

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?

A single front-loaded sentence with no filler. The action and the purpose are both delivered in under twenty words.

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

Completeness3/5

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

No output schema exists, so the description must at least hint at return content; 'compact OpenOCD + GDB session state' only gestures at the payload without listing the fields (target, breakpoints, registers, etc.). It is adequate for a no-parameter read tool but leaves an agent guessing what the recovered state actually contains.

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 takes zero parameters, so the baseline of 4 applies. Nothing about arguments needs explaining and the description does not waste words on them.

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?

States a specific verb and resource: returns compact OpenOCD + GDB session state. The 'session' scope plus 'compact' distinguishes it somewhat from siblings like get_openocd_status or get_gdb_status, but the description never names those siblings explicitly, so the differentiation is inferred rather than stated.

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 clause 'for fast recovery after compaction' implies when to call it (restoring context after the conversation is truncated), which is genuine usage signal. However, it gives no explicit when-not guidance and does not point to alternatives like get_target_state or recover_session for agents not in a compaction scenario.

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