Skip to main content
Glama

callstack

Returns the execution stack for a thread ID, optionally scoped by process and session, so you can trace active calls during live memory analysis.

Instructions

Return the callstack of a thread.

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": {
      "tid": "<tid>"
    },
    "name": "callstack"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
tidYes
sessionNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and delivers almost nothing. It does not state that a debug session must be attached, that the thread must be halted, or what happens when tid is stale or invalid, all of which are essential for a debugger callstack query.

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 words. The problem is under-specification rather than verbosity, so the conciseness dimension itself is reasonably satisfied.

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?

For a debugger tool with three parameters, no annotations, and unnamed prerequisites, one sentence is inadequate. The output schema covers the return shape, but the operating conditions and parameter meanings an agent needs in order to call it correctly are absent.

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

Parameters2/5

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

Schema description coverage is 0%, so all three parameters (pid, tid, session) are undocumented. The phrase 'of a thread' hints that tid selects the thread, but pid and session, including the meaning of the 'default' session, are left entirely unexplained.

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?

"Return the callstack of a thread" names a resource and scope, but it largely restates the tool name 'callstack' and adds only 'of a thread'. It does nothing to separate the tool from related siblings such as callers, callees, or basic_blocks, so the agent must infer the distinction.

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?

The description gives no when-to-use guidance, no prerequisites, and no mention of alternatives. In a debugger toolset with callers and callees present, an agent has no stated rule for choosing this tool over them.

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