Skip to main content
Glama
norman-finance

Norman Finance MCP Server

Official

delete_client

Remove a client from the Norman Finance MCP Server by specifying the client ID. This tool provides confirmation of successful deletion, streamlining client management for efficient financial workflows.

Instructions

Delete a client.

Args:
    client_id: ID of the client to delete
    
Returns:
    Confirmation of deletion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes

Implementation Reference

  • The handler function for the 'delete_client' tool. It deletes the specified client using the Norman API by making a DELETE request. Includes input validation via function signature and docstring serving as schema, and is directly registered via @mcp.tool() decorator.
    @mcp.tool()
    async def delete_client(
        ctx: Context,
        client_id: str
    ) -> Dict[str, Any]:
        """
        Delete a client.
        
        Args:
            client_id: ID of the client to delete
            
        Returns:
            Confirmation of deletion
        """
        api = ctx.request_context.lifespan_context["api"]
        company_id = api.company_id
        
        if not company_id:
            return {"error": "No company available. Please authenticate first."}
        
        client_url = urljoin(
            config.api_base_url, 
            f"api/v1/companies/{company_id}/clients/{client_id}/"
        )
        
        api._make_request("DELETE", client_url)
        return {"message": "Client deleted successfully"} 
  • Top-level registration call that invokes register_client_tools(server), which registers the 'delete_client' tool (along with other client tools) with the MCP server instance.
    register_client_tools(server)

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/norman-finance/norman-mcp-server'

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