Skip to main content
Glama

list-forms

Retrieve all available review forms for human approval workflows. Use this tool after fetching form schemas to manage and access review templates effectively.

Instructions

List all available review forms. NOTE: You need to fetch the schema for the form fields first using the get-form-schema tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list-forms' tool. It creates a GotoHuman instance and fetches the list of available review forms using fetchReviewForms(), returning a JSON-formatted response with the forms or an error.
    async () => { try { const gotoHuman = new GotoHuman({origin: "mcp-server", originV: version}); const forms = await gotoHuman.fetchReviewForms(); return { content: [{ type: "text", text: JSON.stringify({ success: true, forms: forms }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error occurred" }) }], isError: true }; } }
  • src/index.ts:21-52 (registration)
    Registration of the 'list-forms' tool using server.tool(), including the tool name, description, empty input schema, and inline handler function.
    server.tool( "list-forms", "List all available review forms. NOTE: You need to fetch the schema for the form fields first using the get-form-schema tool.", {}, async () => { try { const gotoHuman = new GotoHuman({origin: "mcp-server", originV: version}); const forms = await gotoHuman.fetchReviewForms(); return { content: [{ type: "text", text: JSON.stringify({ success: true, forms: forms }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error occurred" }) }], isError: true }; } } );
  • Empty input schema (no parameters required) for the 'list-forms' tool.
    {},

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

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