Skip to main content
Glama

get_text_templates

Lists available language text templates to create new proposals in Offorte Proposal Software.

Instructions

Lists available language text templates which are used to create new proposals

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The complete tool handler definition for 'get_text_templates', including the execute function that fetches '/settings/text-templates', parses with textTemplatesSchema, and returns the JSON stringified data.
    export const getTextTemplatesTool: Tool<undefined, typeof parameters> = { name: 'get_text_templates', description: 'Lists available language text templates which are used to create new proposals', parameters, annotations: { title: 'Get Language Text Templates', openWorldHint: true, }, async execute() { const result = await get('/settings/text-templates'); const parsed = textTemplatesSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); }, };
  • Defines textTemplateSchema (id: number, name: string) and textTemplatesSchema as array thereof, used for output validation.
    export const textTemplateSchema = z .object({ id: z.number(), name: z.string(), }) .passthrough(); export const textTemplatesSchema = z.array(textTemplateSchema);
  • Registers getTextTemplatesTool (imported earlier) by including it in the tools array and adding all tools to the FastMCP server instance.
    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