delete_contract
Remove test or draft contracts from the eSignature system to manage document lifecycle and maintain organized records.
Instructions
Deletes a contract. The contract can only be deleted if it's a test contract or a draft contract.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_id | Yes | GUID of the contract to be deleted. |
Implementation Reference
- Handler logic for the delete_contract tool: sends a POST request to the eSignatures API to delete the specified contract and returns the response.if name == "delete_contract": response = await httpxClient.post(f"/api/contracts/{arguments.get('contract_id')}/delete?token={secret_token}") return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
- Input schema for delete_contract tool, defining the required contract_id parameter.INPUT_SCHEMA_DELETE_CONTRACT = { "type": "object", "properties": { "contract_id": {"type": "string", "description": "GUID of the contract to be deleted."}, }, "required": ["contract_id"], }
- src/mcp_server_esignatures/server.py:44-48 (registration)Tool registration in list_tools: defines name, description, and references the input schema for delete_contract.types.Tool( name="delete_contract", description="Deletes a contract. The contract can only be deleted if it's a test contract or a draft contract.", inputSchema=INPUT_SCHEMA_DELETE_CONTRACT ),