Skip to main content
Glama

threads

Lists each thread in a process by PID or session, enabling inspection of execution contexts for memory analysis and reverse engineering.

Instructions

List threads of a process.

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": "threads"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
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?

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It does not disclose what happens when pid defaults to null (list threads across all processes? error?), whether results are paginated or bounded, or what permissions/session context are required. Only the bare listing action is described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of waste, which is good. However, brevity here is achieved through under-specification rather than economy; the sentence could have carried the null-pid and session semantics without bloat.

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?

An output schema exists, so return-value shape need not be explained. But for a tool with a nullable, zero-default process identifier and an unexplained session parameter, the description is too thin: the caller cannot determine the effect of omitting pid or which session it is querying.

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

Parameters1/5

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

Schema description coverage is 0% for both parameters. The description adds only an oblique hint that pid refers to a process; the session parameter is never mentioned, nor is the meaning of a null pid default. With two undocumented parameters and no compensating text, the definition leaves the agent guessing at invocation semantics.

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?

The description gives a specific verb and resource: 'List threads of a process.' An agent can tell this is a read-style enumeration of threads scoped to a process. It does not differentiate from any sibling (e.g. callstack, basic_blocks, which also deal with per-thread/per-process data), so it stops short of a 5.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of an alternative tool for getting thread information. Crucially, it does not say what happens when no process is specified, which is the key selection decision an agent faces given the nullable pid parameter.

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