Skip to main content
Glama

get_stacks

Retrieve resolved call stacks for CUDA and driver operations, returning top stacks by frequency with symbols, source files, and timing to identify the code path causing an operation.

Instructions

Get resolved call stacks for CUDA/driver operations. Returns top stacks by frequency with symbol names, source files, and timing stats. One call answers 'what code path caused this operation?' For older DBs without resolved symbols, falls back to raw IPs (hex addresses).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoSource filter: 1=CUDA, 3=HOST, 4=DRIVER
opNoOperation name (e.g. cudaMalloc, cuLaunchKernel)
pidNoProcess ID filter
sinceNoTime window relative to NOW (e.g. 5m, 1h). Omit for saved/offline DBs to query ALL data.
limitNoMax stacks returned (default 10)
tscNotelegraphic compression (default: true)
Behavior4/5

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

The description discloses the return format (top stacks by frequency with symbols, source files, timing stats) and fallback behavior for older DBs. No annotations are provided, so the description carries the full burden, which it largely meets. However, it doesn't mention potential performance impact or permissions.

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 two sentences with no wasted words. It front-loads the main purpose and adds important context (fallback) in a compact manner.

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 6 parameters and no output schema, the description adequately explains the output structure and covers key behaviors. It provides sufficient context for an agent to understand what the tool does and what to expect.

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?

With 100% schema coverage, each parameter already has a description. The tool description adds no additional parameter-specific meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 states 'Get resolved call stacks for CUDA/driver operations', specifying a specific verb and resource. The scope is well-defined and the tool is distinct from siblings like 'get_causal_chains' or 'get_trace_stats'.

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 description suggests usage by answering 'what code path caused this operation?' but does not explicitly state when to use this tool versus alternatives or provide exclusions. The guidance is implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ingero-io/ingero'

If you have feedback or need assistance with the MCP directory API, please join our Discord server