Skip to main content
Glama
souvikdu

perfonext-profiler-mcp

Explain Function

explain_function

Get detailed timing data for any function, including self-time, total-time, callers, and callees, to pinpoint why it runs slowly.

Instructions

Returns detailed timing info for a specific function: self-time, total-time, callers, and callees. Use this to understand why a function is slow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileIdYesProfile ID returned by load_profile
contextLinesNoOnly used with includeSource: minimum lines of padding around the declaration and hot lines (default: 10)
functionNameYesExact function name to look up
includeSourceNoWhen true, include annotated source code lines with per-line tick counts (default: false)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.7.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden for behavioral disclosure. It does convey that the tool is read-only by saying 'Returns' and lists the main output categories, but it does not disclose behavior around absent functions, optional source annotation, or any prerequisites beyond what the schema already states.

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 compact sentences with no filler. The first sentence front-loads the core output, and the second gives actionable usage guidance, so every sentence earns its place.

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?

The description covers the main return categories and the intended use, while the schema fully documents parameters. Since there is no output schema, a bit more detail about the exact response structure would be helpful, but the description is otherwise adequate for a focused analysis tool.

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 schema already explains all four parameters. The description adds no extra detail about contextLines or includeSource, and only indirectly references function lookup; it does not compensate beyond the schema baseline.

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 clearly states a specific verb and resource: 'Returns detailed timing info for a specific function: self-time, total-time, callers, and callees.' This distinguishes it from broader tools like get_hotspots, though it does not explicitly name sibling alternatives.

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 phrase 'Use this to understand why a function is slow' gives clear intended usage context. However, it does not mention when not to use it or point to alternatives such as get_hotspots or suggest_optimizations, so it stops short of a full 5.

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

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/souvikdu/perfonext-profiler-mcp'

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