Skip to main content
Glama

list_namespaces

Retrieve all GitLab namespaces accessible to your account, with options to search, filter by ownership, and paginate results.

Instructions

List all namespaces available to the current user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoSearch term for namespaces
ownedNoFilter for namespaces owned by current user
pageNoPage number for pagination (default: 1)
per_pageNoNumber of items per page (max: 100, default: 20)

Implementation Reference

  • Input schema for the 'list_namespaces' tool, defining parameters like search term and owned filter, merged with pagination options.
    export const ListNamespacesSchema = z.object({ search: z.string().optional().describe("Search term for namespaces"), owned: z.boolean().optional().describe("Filter for namespaces owned by current user"), }).merge(PaginationOptionsSchema);
  • Response schema defining the structure of a GitLab namespace object, likely used as output for list_namespaces tool.
    export const GitLabNamespaceSchema = z.object({ id: z.number(), name: z.string(), path: z.string(), kind: z.enum(["user", "group"]), full_path: z.string(), parent_id: z.number().nullable(), avatar_url: z.string().nullable(), web_url: z.string(), members_count_with_descendants: z.number().optional(), billable_members_count: z.number().optional(), max_seats_used: z.number().optional(), seats_in_use: z.number().optional(), plan: z.string().optional(), end_date: z.string().nullable().optional(), trial_ends_on: z.string().nullable().optional(), trial: z.boolean().optional(), root_repository_size: z.number().optional(), projects_count: z.number().optional(), });

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/harshmaur/gitlab-mcp'

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