Skip to main content
Glama

swit-project-list

Retrieve a list of projects from Swit workspaces using workspace ID, filters, and pagination parameters for efficient project management and organization.

Instructions

Retrieve list of projects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activityNo
disclosureNo
limitNo
nameNo
offsetNo
workspace_idYes

Implementation Reference

  • The handler function that implements the core logic for the 'swit-project-list' tool. It validates the input arguments using ProjectListArgsSchema and delegates to SwitClient.listProjects.
    export const handleProjectList = async (switClient: SwitClient, args: any) => { const validatedArgs = ProjectListArgsSchema.parse(args); return await switClient.listProjects(validatedArgs); };
  • Zod schema defining the input parameters for the project list tool, including workspace_id and optional pagination/filter fields.
    export const ProjectListArgsSchema = z.object({ workspace_id: z.string(), offset: z.string().optional(), limit: z.number().min(1).max(100).optional(), activity: z.string().optional(), disclosure: z.string().optional(), name: z.string().optional(), });
  • Tool specification registration including name, description, and input schema for MCP tool 'swit-project-list'.
    { name: 'swit-project-list', description: 'Retrieve list of projects', inputSchema: zodToJsonSchema(ProjectListArgsSchema), },
  • Registration of the handleProjectList function for the 'swit-project-list' tool in the coreHandlers object.
    'swit-project-list': (args: any) => handleProjectList(switClient, args),

Other Tools

Related Tools

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/TykanN/swit-mcp'

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