Custom GraphQL Query
execute_custom_queryRun custom GraphQL queries to filter GitLab issues by assignee, author, or labels when standard search returns no results. Supports pagination for complex data retrieval.
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 | Hint that this needs write access. Mutations are auto-detected and always write-gated regardless of this flag. | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |