Skip to main content
Glama

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

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