Skip to main content
Glama
ahmedbally

clockwork-mcp-remote

by ahmedbally

get_query_stack_trace

Retrieve the source location of a database query by supplying the request ID and query index. Trace the query back to its exact code path to identify and fix Laravel performance issues.

Instructions

Get source location for a database query

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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
requestIdYesClockwork request ID
queryIndexYes0-based index of the query

Schema Changelog

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

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavior, but it only restates the result ('source location') and does not explain what the returned location looks like, whether authentication is required, or what happens if the queryIndex or requestId is invalid. The read-only nature is implied, not stated.

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 a single, focused sentence with no filler or redundancy. It is front-loaded with the action and target, and every word contributes to the meaning.

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?

Given no output schema, no annotations, and 6 parameters including auth fields, the description omits essential context: how requestId/queryIndex are obtained, what authentication approach is expected, and what the returned source location will contain. The tool is not fully invocable based on the description alone.

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?

The input schema already documents all 6 parameters with 100% coverage, so the baseline is 3. The description adds no parameter-level meaning beyond the schema's definitions for requestId and queryIndex.

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 verb ('Get') and a concrete resource ('source location for a database query'), which is clear and distinguishable from sibling tools like get_queries or get_log_stack_trace. However, it does not explicitly contrast itself with a sibling, so it stops short of full distinctiveness.

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

Usage Guidelines2/5

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

There is no guidance about when to use this tool, what prerequisites exist (e.g., needing a requestId from get_queries or an active Clockwork connection), or when a sibling tool would be more appropriate. The single sentence implies a use case but does not instruct an agent on selection.

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