withdraw_contract
Cancel a sent contract before it's signed. Use this tool to retract contracts that need revision or should not proceed.
Instructions
Withdraws a sent contract.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_id | Yes | GUID of the contract to be withdrawn. |
Implementation Reference
- Handler logic that performs the HTTP POST request to withdraw the specified contract via the eSignatures API.if name == "withdraw_contract": response = await httpxClient.post(f"/api/contracts/{arguments.get('contract_id')}/withdraw?token={secret_token}") return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
- src/mcp_server_esignatures/server.py:39-43 (registration)Registration of the withdraw_contract tool in the list_tools handler, defining its name, description, and input schema.types.Tool( name="withdraw_contract", description="Withdraws a sent contract.", inputSchema=INPUT_SCHEMA_WITHDRAW_CONTRACT ),
- Pydantic/JSON schema defining the input parameters for the withdraw_contract tool, requiring a contract_id.INPUT_SCHEMA_WITHDRAW_CONTRACT = { "type": "object", "properties": { "contract_id": {"type": "string", "description": "GUID of the contract to be withdrawn."}, }, "required": ["contract_id"], }