Custom GraphQL Query
execute_custom_queryExecute custom GraphQL queries to filter GitLab issues, merge requests, or other resources by assignee, author, or labels when standard search returns no results. Use pagination to manage complexity.
Instructions
Execute custom GraphQL queries for complex filtering (e.g., issues with assigneeUsernames: ["user"], labelName: ["bug"]). Use this for structured filtering by assignee/author/labels when search tools return 0 results. Use pagination and limit complexity to avoid timeouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GraphQL query string. Example: query { issues(assigneeUsernames: ["cdhanlon"], state: opened, first: 50) { nodes { iid title webUrl } } } | |
| variables | No | Variables for the GraphQL query | |
| requiresWrite | No | Set to true if this is a mutation that requires write permissions | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |