Skip to main content
Glama
Imanity-Software

spark-profiler-mcp

Official

List sampled threads

list_threads

Lists sampled threads from a Spark profiler profile, sorted by total sampled time descending. Each entry includes thread name, time, and node count, enabling focused call-tree analysis.

Instructions

List the sampled threads (name, total sampled ms, node count), busiest first. Use a name with the call-tree tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileIdYesThe id returned by load_profile.
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the output fields and ordering (busiest first), which is good, but it does not mention behavior on invalid profileId or any side effects. It is adequate but not exhaustive.

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 a single sentence with a supporting hint, achieving the goal without any fluff. Every word serves a purpose, making it highly concise.

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?

Given that the tool has only one parameter and no output schema, the description covers the essential aspects: the action, output fields, and how to use the result. It is nearly complete, with minor room to add error handling details.

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?

The input schema covers 100% of parameters with a description for profileId. The tool description does not add any additional meaning beyond what the schema already provides, warranting the baseline score of 3.

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 it lists sampled threads with specific fields (name, total sampled ms, node count) sorted busiest first. It also distinguishes from sibling tools by advising to use a thread name with call-tree tools, making the purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context that this tool is a precursor to call-tree tools ('Use a name with the call-tree tools'), implying when it should be used. However, it does not explicitly state when not to use it or compare with alternatives, which would make it more complete.

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/Imanity-Software/spark-profiler-mcp'

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