Skip to main content
Glama

samply summarize profile

samply_summarize_profile
Read-onlyIdempotent

Loads a samply or Firefox Profiler JSON file and returns a compact, agent-friendly performance summary; uses the session's current profile when no path is provided.

Instructions

Load a samply / Firefox Profiler JSON file and return a compact, agent-friendly performance summary. If profilePath is omitted, the latest profile from this MCP session is used.

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_summarize_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxMarkersNoMaximum number of marker categories per thread.
maxThreadsNoMaximum number of threads to include.
profilePathNoPath to a profile JSON or JSON.GZ file.
maxFunctionsNoMaximum number of hot functions per section.
includeEmptyThreadsNoInclude threads with zero samples.

Output Schema

NameRequiredDescriptionDefault
oscpuYes
productYes
threadsYes
intervalMsYes
profilePathYes
sidecarPathYes
threadCountYes
processCountYes
totalSamplesYes
presymbolicatedYes
sampleTimeRangeMsYes
hottestSelfFunctionsOverallYes
hottestStackFunctionsOverallYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world profile, so the safety story is covered. The description adds context the annotations do not: that the result is a deliberately compacted summary rather than raw data, and that the source defaults to the session's latest profile when no path is given.

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?

Two sentences, front-loaded with the primary action, second sentence carrying the default-source rule. No filler or restatement of the title.

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?

With an output schema present, the description need not explain return values, and the rich annotations carry the safety profile; what remains is covered by the load-source and default-path statements. It stops short of describing what the summary emphasizes or the trade-off of the max* caps, which would fully round it out.

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 all five parameters (including the three max* caps and includeEmptyThreads) are already documented, which sets the baseline at 3. The description adds one piece of meaning beyond the schema by explaining the default behavior when profilePath is omitted, but says nothing about how the caps trade off against summary fidelity.

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?

States a specific verb and resource: load a samply / Firefox Profiler JSON file and return a compact performance summary. It is clear what the tool produces, but it does not distinguish itself from narrower siblings such as samply_breakdown_subsystems or samply_focus_functions, so an agent must infer that this is the top-level summary.

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 only usage guidance is the fallback rule for an omitted profilePath (use the latest profile from this MCP session), which is a real operational hint. There is no explicit statement of when to choose this over the sibling analysis tools, so usage is implied rather than directed.

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