Skip to main content
Glama

graphql-dos-shield

complexity_meter

Analyze GraphQL query complexity. Returns depth, field count, list multipliers, and a risk level (LOW/MEDIUM/HIGH/CRITICAL). CRITICAL means the query should be rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesGraphQL query string to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the return values (depth, field count, list multipliers, risk level) and interprets CRITICAL as 'should be rejected', which is valuable behavioral context. It doesn't mention side effects, but 'Analyze' implies a non-destructive operation, and the return description is sufficient for this simple tool.

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 two sentences, front-loaded with the purpose, then the outputs. Every sentence earns its place, with no filler or redundancy. Ideal size for a single-parameter tool.

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?

For a tool with one parameter, no output schema, and no annotations, the description is complete. It states what it does, what it returns, and the meaning of the risk level. There is no significant missing context.

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 schema already provides a clear description for the sole parameter 'query' (100% coverage), so the description adds little beyond schema. It doesn't elaborate on formatting, size limits, or edge cases, but the baseline of 3 is appropriate when the schema fully documents the parameter.

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 ('Analyze') and resource ('GraphQL query complexity'), clearly distinguishing this tool from siblings like query_rewriter (which rewrites) and rate_limiter (which rate limits). It also details the specific outputs (depth, field count, list multipliers, risk level).

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?

The context is clear: this tool analyzes GraphQL query complexity, and the CRITICAL risk level implies rejection decisions. However, it does not explicitly state when to use this vs. alternatives or mention any exclusions, so it lacks the explicit alternatives guidance seen in higher-scoring examples.

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.