delete_template
Remove contract templates from the eSignatures system to manage your template library and maintain organized workflows.
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 logic for the 'delete_template' tool: sends a POST request to the eSignatures API endpoint 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()}")]
- Pydantic/JSON schema defining the input parameters for the 'delete_template' tool, requiring 'template_id'.INPUT_SCHEMA_DELETE_TEMPLATE = { "type": "object", "properties": { "template_id": {"type": "string", "description": "GUID of the template to be deleted."}, }, "required": ["template_id"], }
- src/mcp_server_esignatures/server.py:70-74 (registration)Registration of the 'delete_template' tool in the MCP server's list_tools() method, specifying name, description, and input schema.types.Tool( name="delete_template", description="Deletes a contract template.", inputSchema=INPUT_SCHEMA_DELETE_TEMPLATE ),