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)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states 'Delete a client' which implies a destructive mutation, but doesn't disclose critical behavioral traits: whether deletion is permanent or reversible, what happens to associated data (e.g., invoices, transactions), authentication requirements, or error conditions. The 'Returns' line mentions confirmation but gives no details about format or content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately concise with three short lines. It front-loads the core purpose ('Delete a client'), then lists Args and Returns in a structured format. Every sentence earns its place, though the Returns line could be more informative. No wasted words, but the structure is minimalistic rather than optimally explanatory.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (destructive operation with no annotations, 0% schema coverage, and no output schema), the description is incomplete. It lacks crucial context: irreversible nature, side effects on related data, permission requirements, and detailed return values. For a delete tool in a financial system with many siblings, this leaves significant gaps for safe and correct usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds the parameter 'client_id' with a brief explanation 'ID of the client to delete', which provides basic semantics beyond the schema's title 'Client Id'. However, it doesn't specify format (e.g., numeric, UUID), validation rules, or where to obtain it, leaving gaps. With only one parameter, this partial compensation earns a baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Delete' and the resource 'a client', making the purpose unambiguous. It distinguishes from siblings like 'update_client' or 'get_client' by specifying deletion. However, it doesn't explicitly differentiate from other destructive operations like 'delete' actions that might exist in other contexts, keeping it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., ensure client has no active invoices), warn about irreversible effects, or suggest alternatives like archiving. With siblings like 'update_client' and 'list_clients', this lack of context leaves the agent guessing about appropriate usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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