Skip to main content
Glama

get_automation_sets

Lists available automation sets to use when creating new proposals in Offorte Proposal Software.

Instructions

Lists automation sets which are used as an optional input to create a new proposal

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • Defines the getAutomationSetsTool with name 'get_automation_sets' and the async execute handler that fetches data from '/automations/sets', parses it using automationSetsSchema, and returns the JSON stringified data.
    export const getAutomationSetsTool: Tool<undefined, typeof parameters> = { name: 'get_automation_sets', description: 'Lists automation sets which are used as an optional input to create a new proposal', parameters, annotations: { title: 'Get Automation Sets', openWorldHint: true, }, async execute() { const result = await get('/automations/sets'); const parsed = automationSetsSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); }, };
  • Defines automationSetSchema (object with id and name) and automationSetsSchema as an array thereof, used for safeParse validation of the API response in the tool handler.
    export const automationSetSchema = z .object({ id: z.number(), name: z.string(), }) .passthrough(); export const automationSetsSchema = z.array(automationSetSchema);
  • Imports and includes getAutomationSetsTool in the tools array, then registers all tools on the FastMCP server in the registerTools function.
    const tools = [ getInitialContextTool, getAccountUsersTool, getAutomationSetsTool, getContactDetailsTool, getDesignTemplatesTool, getEmailTemplatesTool, getProposalDirectoriesTool, getProposalTemplatesTool, getTextTemplatesTool, searchContactOrganisationsTool, searchContactPeopleTool, searchProposalsTool, createContactTool, createProposalTool, sendProposalTool, ]; export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }

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

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