Skip to main content
Glama

fikra_debug_sql

Explain why a query fails or returns the wrong rows, and give a fix. Fixed price $0.05 per call. Debugging a slow or wrong query.

Input Schema

NameRequiredDescriptionDefault
errorNo
queryYes
schemaNo
dialectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3/5.0
Behavior3/5

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

The description adds genuinely useful metadata beyond annotations: a fixed $0.05 per-call price, which matters for a paid operation. However, it does not disclose what the response looks like (no output schema exists) or how the error/schema/dialect inputs change behavior. Annotations (readOnlyHint=false, destructiveHint=false) do not contradict the description, since the tool only analyzes and suggests a fix, but the description does not explain the non-read-only flag either.

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?

Three short sentences with the core action front-loaded, but the final sentence ('Debugging a slow or wrong query') restates the first with a drift in scope and earns little. The price sentence, by contrast, is well placed.

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?

For a tool with four undescribed parameters, no output schema, and sparse annotations, the description is too thin. It never explains what the fix output contains, whether the DB schema input is DDL or a description, or which SQL dialects are supported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, so the description carries the full burden and largely fails: query and error are only obliquely implied, and schema and dialect are never mentioned. An agent must guess the format and purpose of each input from the bare names.

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 and resource: explain why a query fails or returns wrong rows and produce a fix. This is clear enough to act on, but there is no explicit differentiation from nearby siblings such as fikra_diagnose_api_error or fikra_analyse_logs, which an agent could plausibly confuse with SQL debugging.

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 trailing phrase 'Debugging a slow or wrong query' implies a usage context, but no when-not conditions or alternatives are named. Performance ('slow') is mentioned only in the final fragment and is not reconciled with the main 'fails or wrong rows' framing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources