delete_template
Permanently remove contract templates from the MCP Server for eSignatures by specifying the template's GUID to streamline template management and maintain an organized workflow.
Instructions
Deletes a contract template.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | GUID of the template to be deleted. |
Implementation Reference
- Handler function executes the delete_template tool by making a POST request to the eSignatures API to delete the specified template.if name == "delete_template": response = await httpxClient.post(f"/api/templates/{arguments.get('template_id')}/delete?token={secret_token}") return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
- src/mcp_server_esignatures/server.py:70-74 (registration)Registration of the delete_template tool in the list_tools handler, including name, description, and input schema reference.types.Tool( name="delete_template", description="Deletes a contract template.", inputSchema=INPUT_SCHEMA_DELETE_TEMPLATE ),
- Input schema definition for the delete_template tool, requiring a template_id.INPUT_SCHEMA_DELETE_TEMPLATE = { "type": "object", "properties": { "template_id": {"type": "string", "description": "GUID of the template to be deleted."}, }, "required": ["template_id"], }