list_workflows
Retrieve all available workflows from Folderr to manage and communicate with Assistants through the API.
Instructions
List all available workflows
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_workflows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:378-404 (handler)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(); - src/index.ts:173-177 (schema)Input schema for the 'list_workflows' tool, defining no required properties.
inputSchema: { type: 'object', properties: {}, required: [], },