Skip to main content
Glama

Profile cook cost

profile_cook_cost
Read-only

Samples cook times across a time window to identify intermittent performance stalls, ranking hotspot nodes by p95 cook time. Use to diagnose issues missed by single snapshots.

Instructions

Read-only: sample cook times over a window (N samples × intervalMs) and rank hotspot nodes by p95 cook time. Use this to diagnose intermittent stalls that a single get_td_performance snapshot misses. Returns {path, samples, intervalMs, targetFps, frameBudgetMs, windowMs, hotspots[], warnings[]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNNoHow many hotspots to return, ranked desc by p95.
samplesNoHow many snapshots to take across the window.
scopePathNoNetwork root to profile (recursive)./project1
targetFpsNoForwarded to get_td_performance for the per-frame budget annotation.
intervalMsNoDelay between snapshots in milliseconds (>= one frame at 60fps).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
samplesYes
hotspotsYes
warningsYes
windowMsYes
targetFpsYes
intervalMsYes
frameBudgetMsYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds behavioral context about the sampling methodology (N samples × intervalMs) and output composition (hotspots, warnings), which goes beyond the annotations without contradicting them.

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 key action ('Read-only') and purpose. Includes a compact return signature. No redundant or placeholder content; every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With output schema present and annotations covering safety, the description still adds purpose, use case, and return structure. It is sufficient for an agent to understand when and how to invoke the tool, and the inclusion of the alternative tool makes the context complete.

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 coverage is 100% with each parameter already described in detail. The description reinforces the relationship between samples and intervalMs (window) and mentions targetFps forwarding, but does not add significant new meaning beyond what the schema provides. Baseline 3 applies.

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 the tool samples cook times over a window and ranks hotspot nodes by p95 cook time. It uses specific verbs ('sample', 'rank') and identifies the resource (cook times, hotspot nodes). It also distinguishes itself from get_td_performance by targeting intermittent stalls a single snapshot misses.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool: 'Use this to diagnose intermittent stalls that a single get_td_performance snapshot misses.' It names the alternative tool and the specific scenario where this tool is superior, providing clear guidance for agent selection.

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/lucasmaher-hash/touch-designer-mcp'

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