Skip to main content
Glama
norman-finance

Norman Finance MCP Server

Official

validate_tax_number

Validate tax numbers for specific regions using region codes. This tool ensures accurate tax number verification, aiding compliance and financial accuracy for businesses.

Instructions

Validate a tax number for a specific region.

Args:
    tax_number: Tax number to validate
    region_code: Region code (e.g. "BE" for Belgium)
    
Returns:
    Validation result for the tax number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_codeYes
tax_numberYes

Implementation Reference

  • The handler function for the 'validate_tax_number' tool. It is decorated with @mcp.tool() for registration and includes inline schema via Pydantic Field descriptions. Makes a POST request to the backend API to validate the provided tax number for the specified region.
    @mcp.tool()
    async def validate_tax_number(
        ctx: Context,
        tax_number: str = Field(description="Tax number to validate"),
        region_code: str = Field(description="Region code (e.g., DE for Germany)")
    ) -> Dict[str, Any]:
        """
        Validate a tax number for a specific region.
        
        Args:
            tax_number: Tax number to validate
            region_code: Region code (e.g., DE for Germany)
            
        Returns:
            Validation result
        """
        api = ctx.request_context.lifespan_context["api"]
        
        validate_url = urljoin(config.api_base_url, "api/v1/taxes/check-tax-number/")
        
        validation_data = {
            "tax_number": tax_number,
            "region_code": region_code
        }
        
        return api._make_request("POST", validate_url, json_data=validation_data)
  • The registration block in the main server file where register_tax_tools(server) is called at line 330, which in turn registers the validate_tax_number tool among others.
    register_client_tools(server)
    register_invoice_tools(server)
    register_tax_tools(server)
    register_transaction_tools(server)
    register_document_tools(server)
    register_company_tools(server)
    register_prompts(server)
    register_resources(server)
  • Import of register_tax_tools function used to register the tax tools including validate_tax_number.
    from norman_mcp.tools.taxes import register_tax_tools
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool validates a tax number but doesn't describe behavioral traits such as what validation entails (e.g., format checks, database lookups), error handling, rate limits, or authentication needs. This leaves significant gaps for a tool that likely interacts with external systems or data.

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 sized and front-loaded, with the purpose stated first, followed by structured sections for args and returns. Each sentence adds value, such as the example for 'region_code,' but the 'Returns' section is vague ('Validation result') and could be more specific without sacrificing conciseness.

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

Completeness3/5

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

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is partially complete. It covers the basic purpose and parameters but lacks details on validation behavior, error cases, and output format. Without annotations or output schema, more context on what 'Validation result' entails would improve completeness for effective agent use.

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 meaning by naming the parameters ('tax_number' and 'region_code') and providing an example for 'region_code' ('e.g., "BE" for Belgium'), which clarifies usage beyond the schema's basic types. However, it doesn't detail formats, constraints, or validation rules for 'tax_number,' leaving some semantics unclear.

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 tool's purpose: 'Validate a tax number for a specific region.' It specifies the verb ('validate') and resource ('tax number'), and the regional scope distinguishes it from siblings like 'get_tax_report' or 'list_tax_settings.' However, it doesn't explicitly differentiate from all siblings, such as 'get_company_tax_statistics,' which might involve tax data but not validation.

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., needing a valid tax number format), exclusions, or comparisons to siblings like 'get_company_details' that might include tax information. Usage is implied only by the purpose, with no explicit context or alternatives stated.

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