list_assistants
Retrieve all available assistants within Folderr's API for efficient management and communication.
Instructions
List all available assistants
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:312-338 (handler)Executes the 'list_assistants' tool by checking authentication, making a GET request to '/api/agent', and returning the JSON response or error.private async handleListAssistants() { if (!this.config.token) { throw new McpError(ErrorCode.InvalidRequest, 'Not logged in'); } try { const response = await this.axiosInstance.get('/api/agent'); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Failed to list assistants: ${error.response?.data?.message || error.message}`, }, ], isError: true, }; } }
- src/index.ts:143-151 (registration)Registers the 'list_assistants' tool in the ListToolsRequestSchema response with name, description, and empty input schema.{ name: 'list_assistants', description: 'List all available assistants', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:221-222 (registration)Handles dispatch of CallToolRequest for 'list_assistants' by calling the handler function.case 'list_assistants': return await this.handleListAssistants();