Custom GraphQL Query
execute_custom_queryRun custom GitLab GraphQL queries to filter issues by assignee, author, or labels when standard search returns no results. Paginate and limit query complexity to avoid timeouts.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "execute_custom_query"
}
}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) |