Skip to main content
Glama

list_assistants

Retrieve all available assistants within Folderr's API for efficient management and communication.

Instructions

List all available assistants

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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();

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/folderr-tech/folderr-mcp-server'

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