Skip to main content
Glama
ahmedbally

clockwork-mcp-remote

by ahmedbally

detect_n_plus_one

Detect N+1 query patterns in Laravel HTTP requests to identify unnecessary database queries and optimize performance. Filter by URI, time range, or request ID for targeted analysis.

Instructions

Detect N+1 query patterns in a request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoAnalyze all available requests (max 100)
uriNoFilter by URI pattern (substring match)
countNoNumber of recent HTTP requests to analyze
sinceNoTime duration to look back (e.g., "30m", "1h", "2d", "1w")
tokenNoPre-authenticated X-Clockwork-Auth token (alternative to password)
baseUrlNoClockwork application base URL (e.g. https://my-app.test). Overrides CLOCKWORK_BASE_URL / local storage for this call
passwordNoClockwork authentication password
usernameNoClockwork authentication username
requestIdNoSpecific request ID (highest priority)
thresholdNoMin repetitions to flag as N+1

Schema Changelog

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

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

There are no annotations, so the description carries the full burden. 'Detect' implies a read-only analysis, but the description does not disclose what thresholds or patterns are used, whether any state is changed, or what the output looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and contains no filler, but it is minimal to the point of under-specifying a tool with 10 parameters and no output schema. It is concise but not especially informative.

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

Completeness2/5

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

With 10 parameters, no annotations, and no output schema, the description should explain the result format and prerequisites such as Clockwork connection or authentication. It only states the detection goal, leaving an agent to guess how the analysis is scoped and returned.

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 10 parameters already have descriptions in the schema. The tool description adds no meaningful parameter detail beyond the word 'request', which loosely maps to requestId or uri scoping.

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 names a specific action and resource: 'Detect N+1 query patterns in a request.' It is clear about what the tool does, but it does not differentiate it from siblings like analyze_slow_queries or get_queries.

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 description implies the tool should be used when N+1 query detection is needed, but it does not state when to prefer it over alternatives or how to scope the analysis. No exclusions or alternative tool references are provided.

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/ahmedbally/clockwork-mcp'

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