update_template
Modify contract templates by updating titles, labels, or content elements such as headers, text, images, and signer fields for streamlined eSignature workflows on MCP Server.
Instructions
Updates the title, labels or the content of a contract template.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_elements | No | The content of the template like headers, text, and images for the document. | |
| labels | No | List of labels to be assigned to the template. | |
| title | No | The new title of the template. |
Implementation Reference
- Handler implementation for the 'update_template' tool. It sends a POST request to the eSignatures API endpoint /api/templates/{template_id} with the provided arguments and returns the response.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()}")]
- Input schema definition for the 'update_template' tool, defining properties for 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 list_tools handler, specifying name, description, and input schema.name="update_template", description="Updates the title, labels or the content of a contract template.", inputSchema=INPUT_SCHEMA_UPDATE_TEMPLATE