Skip to main content
Glama

Query Data

query_data
Read-only

Query data from the system using flexible queries. Use this for exploratory queries or when you need to list data with filters. For specific single-item lookups, prefer specialized tools like get_test_case, get_execution, etc.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return
contextNoExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
filtersNoFilter criteria - supported filters vary by query_type: status, category, name_contains, created_after, created_before
project_idNoProject ID to query within (required for test_cases, repositories, executions, scripts)
query_typeYesType of data to query: projects (all user projects), test_cases (requires project_id), repositories (requires project_id), executions (requires project_id), scripts (requires project_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds context about exploratory use but does not disclose pagination behavior, default result limits, return shape, or query-type-specific behavior. With annotations carrying the safety disclosure, this is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences and front-loads the core action before routing guidance. It is efficient overall, though the phrase 'etc.' in the examples is slightly vague compared with naming the specific alternatives.

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

Completeness3/5

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

The schema is rich and annotations cover safety, so the main missing piece is return-value behavior: there is no output schema and the description does not explain what query results look like, how limit interacts with large result sets, or whether results differ by query_type. For a broad multi-entity query tool, that leaves a meaningful contextual gap.

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?

Schema description coverage is 100%, so the input schema already documents all five parameters, including query_type enum values, filters, project_id dependencies, and limit. The description adds no parameter-specific meaning beyond noting that this tool supports filtering and listing. Baseline 3 is appropriate because the schema does the heavy lifting.

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 states a clear verb and resource: 'Query data from the system using flexible queries.' It also distinguishes this broad exploratory/list tool from specific single-item lookup tools such as get_test_case and get_execution. The purpose is clear, though 'data from the system' remains broad rather than naming the concrete entity types.

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 description gives explicit usage guidance: use for exploratory queries or listing data with filters, and prefer specialized tools for specific single-item lookups. It names get_test_case and get_execution as alternatives. It does not mention sibling list_* or search_test_cases tools, but the when-to-use vs when-not-to-use routing is clear.

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