Skip to main content
Glama

get_design_templates

Browse available design templates to create new proposals in Offorte Proposal Software.

Instructions

Lists available design templates which are used to create new proposals

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute handler fetches design templates from the API endpoint '/settings/design-templates', parses the response using designTemplatesSchema, and returns the JSON string.
    async execute() { const result = await get('/settings/design-templates'); const parsed = designTemplatesSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); },
  • Zod schemas for individual designTemplate and the array of designTemplates used for input validation.
    export const designTemplateSchema = z .object({ id: z.number(), name: z.string(), }) .passthrough(); export const designTemplatesSchema = z.array(designTemplateSchema);
  • The registerTools function registers all tools, including getDesignTemplatesTool from the tools array, to the FastMCP server.
    export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }
  • Import of the getDesignTemplatesTool for registration.
    import { getDesignTemplatesTool } from './settings/get-design-templates.js';
  • Inclusion of getDesignTemplatesTool in the tools array for registration.
    getDesignTemplatesTool,

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