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
| Name | Required | Description | Default |
|---|---|---|---|
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); }, };
- src/schemas/automations.ts:3-10 (schema)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);
- src/tools/register.ts:19-39 (registration)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)); }