Skip to main content
Glama

swit-workspace-list

Retrieve and manage Swit workspaces to organize team collaboration projects and access workspace data for integration purposes.

Instructions

Retrieve list of workspaces

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetNo
limitNo
nameNo

Implementation Reference

  • The handler function that executes the swit-workspace-list tool logic: validates input args and calls switClient.listWorkspaces.
    export const handleWorkspaceList = async (switClient: SwitClient, args: any) => { const validatedArgs = WorkspaceListArgsSchema.parse(args); return await switClient.listWorkspaces(validatedArgs); };
  • Zod schema for input validation of swit-workspace-list tool arguments.
    export const WorkspaceListArgsSchema = z.object({ offset: z.string().optional(), limit: z.number().min(1).max(100).optional(), name: z.string().optional(), });
  • Tool registration in coreTools array, defining name, description, and input schema for ListTools request.
    { name: 'swit-workspace-list', description: 'Retrieve list of workspaces', inputSchema: zodToJsonSchema(WorkspaceListArgsSchema), },
  • Handler factory function that registers the mapping from tool name 'swit-workspace-list' to its handler.
    export const coreHandlers = (switClient: SwitClient) => ({ 'swit-workspace-list': (args: any) => handleWorkspaceList(switClient, args), 'swit-channel-list': (args: any) => handleChannelList(switClient, args), 'swit-message-create': (args: any) => handleMessageCreate(switClient, args), 'swit-message-comment-create': (args: any) => handleMessageCommentCreate(switClient, args), 'swit-message-comment-list': (args: any) => handleMessageCommentList(switClient, args), '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