Skip to main content
Glama

sixta-connect

Detect N+1 query patterns (SIXTA)

sixta_detect_n_plus_one
Read-onlyIdempotent

Find N+1 query patterns in an application's query log — no connection needed. Paste an ORM/SQL trace (Rails ActiveRecord, Django, Hibernate, Prisma, or a raw SQL log) and get the query shapes that fire many times in the trace (one parent query, then the same per-row lookup repeated) with the framework-specific eager-load fix (includes / select_related / JOIN FETCH / include). Use when the user pastes app logs or asks 'why are there so many queries' / 'do I have an N+1'. Input is analyzed in memory and never stored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
traceYesAn application query log / ORM SQL trace (Rails, Django, Hibernate, Prisma) or a raw SQL log, one statement per line
engineNoDatabase engine: postgresql or mysql. Optional.
versionNoEngine version, e.g. '16' (PostgreSQL major) or '8.0.35' (MySQL). Omit for a modern default; some verdicts are version-dependent and the assumption is stated in the result.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNoEngine the analysis targeted, when known.
reportYesThe full human-readable SIXTA report (markdown).
findingsNoNamed findings as structured data, when the tool produces them.
finding_countNoNumber of findings/issues identified.
overall_severityNoHighest severity across findings (Critical/High/Medium/Low/Info).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate safe, idempotent read-only operation. Description adds that input is analyzed in memory and never stored, reinforcing safe behavior. No contradictions.

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?

Two sentences, front-loaded with the core purpose. Every sentence adds value: first defines action and input format, second gives usage guidance and privacy assurance. No wasted words.

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

Completeness5/5

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

Given the specialized detection task, the description covers purpose, input format, usage trigger, and data handling. Output schema exists to describe return values, so description need not cover that. Complete for agent decision-making.

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

Parameters4/5

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

Schema covers all parameters (100%). Description enhances by providing practical examples of acceptable trace formats (Rails, Django, etc.) and optional engine/version parameters, adding value beyond schema descriptions.

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 uses a specific verb ('Find') and resource ('N+1 query patterns in an application's query log'), clearly distinguishing it from sibling tools that analyze other aspects like schema changes or query plans.

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

Usage Guidelines4/5

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

Explicitly states when to use ('when the user pastes app logs or asks why so many queries') and mentions no connection needed. Does not explicitly exclude alternatives, but context signals suggest differentiation.

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