Skip to main content
Glama

list_workflows

Retrieve all available workflows from Folderr to manage and communicate with Assistants through the API.

Instructions

List all available workflows

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_workflows' tool. It checks for authentication, makes a GET request to '/api/workflows', and returns the JSON response as text content, or an error message if failed.
    private async handleListWorkflows() { if (!this.config.token) { throw new McpError(ErrorCode.InvalidRequest, 'Not logged in'); } try { const response = await this.axiosInstance.get('/api/workflows'); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Failed to list workflows: ${error.response?.data?.message || error.message}`, }, ], isError: true, }; } }
  • src/index.ts:170-178 (registration)
    Tool registration in the ListTools response, including name, description, and empty input schema (no parameters required).
    { name: 'list_workflows', description: 'List all available workflows', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • src/index.ts:225-226 (registration)
    Dispatch case in the CallToolRequest handler that routes 'list_workflows' calls to the handleListWorkflows method.
    case 'list_workflows': return await this.handleListWorkflows();
  • Input schema for the 'list_workflows' tool, defining no required properties.
    inputSchema: { type: 'object', properties: {}, required: [], },

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