Skip to main content
Glama

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

Other Tools

Related Tools

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