MCP server for integrating with Xray Cloud test management system via GraphQL API. Enables creation and management of Xray Cloud tests, executions, plans, and runs.
The xray_test tool has a comprehensive input schema with 28 parameters and covers many operations, but suffers from critical naming and composition issues. The single monolithic tool conflates four separate entity types (test, test_execution, test_plan, test_run) under one interface, violating the single-responsibility principle. The tool name 'xray_test' does not start with a clear action verb and is ambiguous about what action it performs. The description is moderately detailed (165 chars) but does not clearly state WHEN to use this tool vs. separate tools. Parameter descriptions are present for most fields but many are vague (e.g., 'action to perform' without listing valid actions). The schema is visible and well-typed with enums for entity and test_type, but lacks critical output documentation. No error handling guidance is visible in the schema or description. The tool accepts potentially sensitive parameters (project keys, issue IDs) but the server-side validation is unclear from the provided code snippet.
Unified tool for managing Xray Cloud tests, executions, plans, and runs. Use 'entity' and 'action' parameters to specify operations. Check the 'help' prompt or xray://documentation resource for detailed examples.
Tool name 'xray_test' does not start with a clear action verb. LLM cannot infer intent from the name alone. Should be split into action-specific tools like 'create_xray_test', 'get_xray_test', 'list_xray_tests', 'search_xray_tests', 'update_test_status', 'delete_xray_test'.
Single monolithic tool conflates four entity types (test, test_execution, test_plan, test_run) under one interface. Each entity-action pair should be a separate tool. Current design forces LLM to reason about 'entity' and 'action' parameters, when the name alone should convey intent. Violates single-responsibility principle.
Tool description (165 chars) does not answer critical questions: What does each action do? When should I call this instead of a specific test, execution, plan, or run tool? What are the valid actions for each entity? Forces LLM to guess or infer from parameter names.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 42 | 2025-06-18+ | v2 |
| 2026-03-09 | F | 33 | - | v1 |
Parameter 'action' description ('Action to perform (create, get, list, search, update_status, delete, add_tests, remove_tests, etc.)') lists examples in prose instead of declaring valid actions as an enum. LLM may invent invalid actions not in that list, and new actions added to the manager will not be discoverable.
No output schema documented. Tool returns a dict with 'success', 'data', 'warnings', 'errors' fields, but the structure and type of 'data' is not specified. LLM cannot plan downstream calls or extract required IDs (e.g., issue_id, test_id for chaining).
Multiple parameter descriptions are vague or missing examples of expected format. E.g., 'steps' is described as 'Test steps for Manual tests (JSON string or array...)' but does not show the structure of step objects. 'gherkin' is described as 'Gherkin script for Cucumber tests' without mentioning syntax or examples. 'jql' accepts custom JQL but does not document Xray-specific JQL fields.
Conflicting or overloaded parameters. Both 'test_issue_ids' (array) and 'test_issue_id' (string) are defined. Parameter relationships (e.g., which actions require which params, mutual exclusivity) are not documented. LLM must guess which to use.
Error responses from the tool (e.g., 'Invalid entity' or 'Invalid action') are helpful and include available options, but this guidance is implemented in the Python code, not declared in the schema or description. LLM does not know error recovery strategies until it sees a failure.
No indication that this tool modifies state (create, update, delete, add_tests, remove_tests are write operations). Description must explicitly state which actions are idempotent vs. destructive. Agents need to know retry safety.
Result limit defaults to 50 for list operations but is not documented in the tool description or parameter. LLM does not know the cap exists and may expect thousands of results.