Skip to main content
Glama

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
NameRequiredDescriptionDefault
contract_idYesGUID 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"], }
  • 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 ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/esignaturescom/mcp-server-esignatures'

If you have feedback or need assistance with the MCP directory API, please join our Discord server