Skip to main content
Glama

samply breakdown subsystems

samply_breakdown_subsystems
Read-onlyIdempotent

Groups hot functions by Rust or C++ namespace prefix to show which native subsystems dominate a profile, so agents can target optimization in native-heavy builds.

Instructions

Group hot functions by Rust / C++ namespace prefix so agents can identify which native subsystems dominate a profile. This is useful for Rspack and other native-heavy builds.

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

Input Schema

NameRequiredDescriptionDefault
queryNoOptional case-insensitive filter applied to function names and resources before grouping.
threadNoOptional thread index or name filter.
maxGroupsNoMaximum number of subsystem groups to return.
profilePathNoPath to a profile JSON or JSON.GZ file.
resourceQueryNoOptional case-insensitive filter applied to resource / library names before grouping.
prefixSegmentsNoHow many namespace segments to keep when building subsystem names.
maxThreadsPerGroupNoMaximum number of thread breakdown entries to keep for each group.
maxExamplesPerGroupNoMaximum number of example functions to keep for each group.

Output Schema

NameRequiredDescriptionDefault
queryYes
groupsYes
groupCountYes
profilePathYes
sidecarPathYes
resourceQueryYes
prefixSegmentsYes
presymbolicatedYes
totalGroupedSelfSamplesYes
totalGroupedStackSamplesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that grouping keys are namespace prefixes and that it targets native subsystems, but says nothing about defaults (e.g. behavior when profilePath is omitted) or grouping granularity.

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?

Two sentences, front-loaded with the action and followed by the concrete use case; no filler. The phrase 'so agents can identify' is slightly meta but still carries the goal.

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?

An output schema exists and annotations cover safety, and all eight parameters are schema-documented, so the basics are complete. However, with zero required parameters, the description never explains what happens when profilePath or the grouping knobs are omitted, which is a meaningful gap for an agent deciding how to call it.

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?

Schema description coverage is 100%, so the eight parameters, including prefixSegments, query, resourceQuery and the max* caps, are already documented in the schema. The description's mention of 'namespace prefix' loosely maps to prefixSegments but adds no format or default detail beyond the schema.

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-plus-resource: 'Group hot functions by Rust / C++ namespace prefix', plus the intent ('identify which native subsystems dominate a profile'). That is clearly distinct from search/inspect siblings, though no sibling is named explicitly.

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?

It states a usage context ('useful for Rspack and other native-heavy builds'), which implies when to reach for it, but gives no explicit exclusion or pointer to an alternative when the profile is not native-heavy.

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