Skip to main content
Glama

update_template

Modify contract template titles, labels, or content including headers, text, images, tables, and signer fields for eSignature workflows.

Instructions

Updates the title, labels or the content of a contract template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoThe new title of the template.
labelsNoList of labels to be assigned to the template.
document_elementsNoThe content of the template like headers, text, and images for the document.

Implementation Reference

  • Handler logic for the 'update_template' tool: sends a POST request to the eSignatures API endpoint /api/templates/{template_id} with the provided arguments as JSON body.
    if name == "update_template": response = await httpxClient.post(f"/api/templates/{arguments.get('template_id')}?token={secret_token}", json=arguments) return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
  • Pydantic/JSON schema defining the input parameters for the 'update_template' tool: title, labels, and document_elements.
    INPUT_SCHEMA_UPDATE_TEMPLATE = { "type": "object", "properties": { "title": {"type": "string", "description": "The new title of the template."}, "labels": {"type": "array", "description": "List of labels to be assigned to the template.", "items": {"type": "string"}}, "document_elements": { "type": "array", "description": "The content of the template like headers, text, and images for the document.", "items": INPUT_SCHEMA_DOCUMENT_ELEMENTS_ITEMS } } }
  • Registration of the 'update_template' tool in the MCP server's list_tools() method, including name, description, and input schema reference.
    name="update_template", description="Updates the title, labels or the content of a contract template.", inputSchema=INPUT_SCHEMA_UPDATE_TEMPLATE

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

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