Skip to main content
Glama

search_issues

Search for issues in a GitLab project using filters like state, labels, and keywords to find relevant tickets and track project tasks.

Instructions

Search for issues in a GitLab project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or URL-encoded path
searchYesSearch term for title and description
stateNoFilter issues by state
labelsNoComma-separated list of label names
pageNoPage number for pagination (default: 1)
per_pageNoNumber of results per page (default: 20)

Implementation Reference

  • Implementation of the search_issues tool handler.
    export async function searchIssues(
      projectId: string,
      searchTerm: string,
      options: {
        state?: "opened" | "closed" | "all";
        labels?: string;
        page?: number;
        per_page?: number;
      } = {}
    ): Promise<GitLabIssue[]> {
      if (!searchTerm?.trim()) {
        throw new Error("Search term is required");
      }
    
      return listIssues(projectId, {
        search: searchTerm,
        ...options
      });
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheRealChrisThomas/gitlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server