Skip to main content
Glama
slop-anything
by takattowo

slop_score

Scores Python files or folders for design-conformance from 0 to 100, flagging broad exception handling, blocking sleeps, retries on pure functions, and related maintainability issues.

Instructions

Design-conformance score for the Python files under a path (0 to 100): broad exception handlers that absorb faults, latency-budget sleeps, retry policies on pure functions, ERROR-level diagnostics, self-issued deprecations, blocking sleeps in coroutines, ABCs with one implementation, plus a modularity bonus for shared utility modules. Bounded: 2,000 files, 50,000 entries, 1 MB per file.

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

Input Schema

NameRequiredDescriptionDefault
pathNoFile or folder to score. Default: the current folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.6/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. It does useful work by disclosing the scoring heuristics and hard bounds (2,000 files, 50,000 entries, 1 MB per file), which tells the agent the scan is limited and cost-bounded. It never states that the tool is read-only and does not modify or write to the scanned files, nor does it describe result shape or partial-coverage behavior when bounds are hit.

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?

The purpose and scale are front-loaded in the first clause, followed by a compact enumeration of what is measured and a separate sentence for limits. The heuristic list is long but each item is a distinct signal, so little is wasted; only the dense comma run slightly hurts scannability.

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?

There is no output schema, so the description should describe what comes back. It gives the aggregate scale and the categories scored, but not whether per-file or per-issue breakdowns are returned, how the modularity bonus factors in, or what happens when the file/entry/size bounds truncate the scan. For a single-parameter scoring tool this is adequate but incomplete.

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% and there is only one parameter, so the schema already documents the path and its default. The description adds only marginal meaning by clarifying that the target is Python files under that path, which implies non-Python content is ignored. That is a baseline-3 contribution.

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 names a specific verb and resource ('Design-conformance score for the Python files under a path') and immediately pins the output scale (0 to 100). The enumerated heuristics (broad exception handlers, latency-budget sleeps, retry policies on pure functions, etc.) make it unmistakable versus siblings like slop_bench or slop_diff.

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 implied by 'for the Python files under a path' and the schema default of the current folder, so an agent can infer when it applies. However, there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as slop_gate or slop_bench for other kinds of checks.

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