delete_contract
Remove test or draft contracts from the MCP Server for eSignatures by specifying the contract’s unique GUID. Simplify contract management with targeted deletion.
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
- The handler logic for the delete_contract tool, which sends a POST request to the eSignatures API endpoint to delete the contract by its ID.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()}")]
- Pydantic/input schema definition for the delete_contract tool, requiring a contract_id.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)Registration of the delete_contract tool in the MCP server's list_tools method.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 ),