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
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The new title of the template. | |
| labels | No | List of labels to be assigned to the template. | |
| document_elements | No | The 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 } } }
- src/mcp_server_esignatures/server.py:61-63 (registration)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