withdraw_contract
Cancel a sent contract by providing its unique GUID. This feature on the MCP Server for eSignatures allows users to manage and withdraw contracts efficiently.
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 implementation for the withdraw_contract tool, which sends a POST request to the eSignatures API to withdraw the specified contract.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()}")]
- 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"], }
- src/mcp_server_esignatures/server.py:39-43 (registration)Registration of the withdraw_contract tool in the list_tools() method, including name, description, and input schema reference.types.Tool( name="withdraw_contract", description="Withdraws a sent contract.", inputSchema=INPUT_SCHEMA_WITHDRAW_CONTRACT ),