Skip to main content
Glama
slop-anything
by takattowo

slop_profile

Profiles one run of a specified port with cProfile in a subprocess, returning the top functions by cumulative time to identify performance bottlenecks.

Instructions

Profile one run of a port with cProfile in a subprocess and return the top functions by cumulative time.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "port": "<port>"
    },
    "name": "slop_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoHow many functions to return, 1 to 50. Default 15.
argsNoCommand-line arguments for the port: up to 10 strings of up to 200 characters. The first may not be 'serve'. Default: the first recorded or built-in case.
portYesPort name, as listed by slop_ports (a folder under the ports root with __main__.py).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: the port is actually executed once, and execution happens in a subprocess, implying isolation from the host process. It does not disclose side effects of the run (files written, network, output capture), failure behavior, or cost/duration of profiling, which matter for a tool that executes arbitrary port code.

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?

A single dense sentence with the action, mechanism, and return value front-loaded and no filler. Every clause earns its place.

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?

For a three-parameter tool with a fully documented schema and no output schema, the description covers the what and how but stops short on what the returned profile data looks like (format, whether source output is included) and on the consequences of triggering a real run. Adequate but with clear gaps for a code-executing tool with no annotations.

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%, so all three parameters (port, top, args) are already fully documented, including the 'serve' restriction and defaults. The description only echoes the idea of a port and 'top functions' and adds no syntax, format, or interaction detail beyond the schema, so baseline 3 applies.

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 (profile), the precise resource (one run of a port), the mechanism (cProfile in a subprocess) and what is returned (top functions by cumulative time). This clearly separates it from slop_run-style execution, but it never names a sibling or explicitly contrasts profiling with plain running.

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?

Usage is only implied: an agent can infer this is the tool for performance analysis of a port, but there is no statement of when to prefer it over slop_run, nor any prerequisite or exclusion. Nothing misleading, but nothing explicit either.

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