Skip to main content
Glama

graphql_security_check

Run automated security checks against a GraphQL endpoint to detect introspection exposure, query batching, unbounded depth, and field suggestion leaks, then get recommendations to secure it.

Instructions

Perform automated GraphQL security checks using direct HTTP requests.

Checks performed:

  • Introspection enabled (schema disclosure)

  • Query batching enabled (potential DoS amplification)

  • Depth limit enforcement (unbounded query depth)

  • Field suggestion leak (information disclosure via error messages)

Args: url: GraphQL endpoint URL (e.g. https://example.com/graphql). check_introspection: Whether to test for introspection (schema exposure). authenticated: If True, include the Authorization header in requests. auth_header: Authorization header value (e.g. "Bearer "). timeout: HTTP request timeout in seconds (not the tool timeout).

Returns: Dict with each check result, overall is_vulnerable flag, and recommendations.

Note: - Target URL must be in tengu.toml [targets].allowed_hosts. - No subprocess is used — all checks are pure Python httpx requests. - Does not perform mutation or data modification of any kind.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
timeoutNo
auth_headerNo
authenticatedNo
check_introspectionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Without annotations, the description carries full burden and does well by disclosing that it uses pure Python httpx requests (no subprocess), performs no mutations, and requires allowed_hosts configuration. This gives strong transparency into behavior and safety.

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?

Well-organized with clear sections for summary, checks, args, returns, and notes. Every sentence adds value and the structure makes it easy to scan without unnecessary verbosity.

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?

Covers purpose, parameters, return values (also supported by output schema), prerequisites, and safety profile. No obvious gaps for a tool of this complexity.

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

Parameters5/5

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

The 'Args' section explains every parameter (url, check_introspection, authenticated, auth_header, timeout) with examples and semantics, fully compensating for the 0% schema description coverage.

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?

Clearly states it 'Perform automated GraphQL security checks' and lists specific check categories (introspection, query batching, depth limit, field suggestion), which distinguishes it from general-purpose scanners among sibling tools.

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?

Provides clear context for GraphQL security testing and includes practical notes like allowed_hosts requirement, but does not explicitly contrast with alternative tools or state when not to use it.

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

Install Server

Other Tools

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/rfunix/tengu'

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