Skip to main content
Glama

swit-project-list

Retrieve a list of projects from Swit workspaces to manage and organize collaborative tasks, using workspace ID and optional filters for activity, disclosure, or name.

Instructions

Retrieve list of projects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_idYes
offsetNo
limitNo
activityNo
disclosureNo
nameNo

Implementation Reference

  • The main handler function for the 'swit-project-list' tool. It parses the input arguments using ProjectListArgsSchema and delegates to the SwitClient's listProjects method.
    export const handleProjectList = async (switClient: SwitClient, args: any) => { const validatedArgs = ProjectListArgsSchema.parse(args); return await switClient.listProjects(validatedArgs); };
  • Zod schema defining the input arguments for the project list tool, including workspace_id and pagination options.
    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 metadata registration in coreTools array, used by the MCP server to list available tools.
    { name: 'swit-project-list', description: 'Retrieve list of projects', inputSchema: zodToJsonSchema(ProjectListArgsSchema), },
  • Handler function mapping for 'swit-project-list' tool within the coreHandlers object returned by the factory function.
    'swit-project-list': (args: any) => handleProjectList(switClient, args),

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