Skip to main content
Glama
folderr-tech

Folderr

Official
by folderr-tech

get_workflow_inputs

Retrieve required input parameters for a Folderr workflow to prepare for execution.

Instructions

Get the required inputs for a workflow

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesID of the workflow

Implementation Reference

  • The handler function that executes the tool logic: authenticates, calls the Folderr API to get workflow inputs for the given workflow_id, and returns the JSON response or an error message.
    private async handleGetWorkflowInputs(args: any) {
      if (!this.config.token) {
        throw new McpError(ErrorCode.InvalidRequest, 'Not logged in');
      }
    
      try {
        const response = await this.axiosInstance.get(`/api/workflows/api-client/${args.workflow_id}/inputs`);
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(response.data, null, 2),
            },
          ],
        };
      } catch (error: any) {
        return {
          content: [
            {
              type: 'text',
              text: `Failed to get workflow inputs: ${error.response?.data?.message || error.message}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Input schema defining the required 'workflow_id' parameter for the tool.
    inputSchema: {
      type: 'object',
      properties: {
        workflow_id: {
          type: 'string',
          description: 'ID of the workflow',
        },
      },
      required: ['workflow_id'],
    },
  • src/index.ts:179-192 (registration)
    Tool registration in the ListTools response, defining name, description, and input schema.
    {
      name: 'get_workflow_inputs',
      description: 'Get the required inputs for a workflow',
      inputSchema: {
        type: 'object',
        properties: {
          workflow_id: {
            type: 'string',
            description: 'ID of the workflow',
          },
        },
        required: ['workflow_id'],
      },
    },
  • src/index.ts:227-228 (registration)
    Dispatcher case in CallToolRequest handler that routes to the specific handler function.
    case 'get_workflow_inputs':
      return await this.handleGetWorkflowInputs(request.params.arguments);

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