Skip to main content
Glama
josemvelez78

mcp-europe-business

validate_kvk_nl

Read-onlyIdempotent

Verify Dutch KVK business registration numbers using official checksum validation. Ensures correct format for supplier onboarding and invoice processing.

Instructions

Validates a Dutch KVK (Kamer van Koophandel) chamber of commerce number — an 8-digit registration number assigned to all businesses registered in the Netherlands. Verifies the format and applies the official weighted checksum algorithm. Returns { valid: boolean, kvk: string, country: 'NL' } or { valid: false, reason: string }. Use when processing Dutch invoices, validating Dutch suppliers, or onboarding Dutch business partners.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kvkYes8-digit Dutch KVK number, with or without spaces. Example: '12345678'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYes
kvkNo
countryNo
reasonNo

Implementation Reference

  • index.js:367-371 (registration)
    Registration of the validate_kvk_nl tool with the MCP server. Defines metadata: description, input schema (kvk: string), output schema (valid, kvk, country, reason), and annotations.
    server.registerTool("validate_kvk_nl", {
      description: "Validates a Dutch KVK (Kamer van Koophandel) chamber of commerce number — an 8-digit registration number assigned to all businesses registered in the Netherlands. Verifies the format and applies the official weighted checksum algorithm. Returns { valid: boolean, kvk: string, country: 'NL' } or { valid: false, reason: string }. Use when processing Dutch invoices, validating Dutch suppliers, or onboarding Dutch business partners.",
      inputSchema: { kvk: z.string().describe("8-digit Dutch KVK number, with or without spaces. Example: '12345678'") },
      outputSchema: { valid: z.boolean(), kvk: z.string().optional(), country: z.string().optional(), reason: z.string().optional() },
          annotations: { title: "Validate Dutch KVK Number", readOnlyHint: true, idempotentHint: true, openWorldHint: false }
  • Handler function for validate_kvk_nl. Cleans input, validates 8-digit format, applies weighted checksum (weights [8,7,6,5,4,3,2,1]) and returns whether sum % 11 === 0.
    }, async ({ kvk }) => {
      const clean = kvk.replace(/\s/g, "");
      if (!/^\d{8}$/.test(clean)) return { content: [{ type: "text", text: JSON.stringify({ valid: false, reason: "KVK number must have exactly 8 digits" }) }] };
      const weights = [8, 7, 6, 5, 4, 3, 2, 1];
      let sum = 0;
      for (let i = 0; i < 8; i++) sum += parseInt(clean[i]) * weights[i];
      const valid = sum % 11 === 0;
      return { content: [{ type: "text", text: JSON.stringify({ valid, kvk: clean, country: "NL" }) }] };
    });
Behavior4/5

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

Annotations declare readOnlyHint and idempotentHint, and the description adds behavioral details like 'applies the official weighted checksum algorithm' and return structure, which is consistent.

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

Conciseness5/5

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

Three efficient sentences: function, method, and use cases. No redundant words, front-loaded with key purpose.

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

Completeness5/5

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

With output schema and annotations, the description sufficiently covers return values and conditions. The use case guidance completes the context for an AI agent.

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 covers 100% of the parameter details, including data type and example. The description does not add additional semantics beyond what the schema provides, so baseline score of 3 is appropriate.

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

Purpose5/5

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

The description clearly states it 'Validates a Dutch KVK chamber of commerce number' with specific format and checksum verification, distinguishing it from sibling tools like validate_vat_de or validate_codice_fiscale.

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

Usage Guidelines4/5

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

Explicitly recommends use cases: 'processing Dutch invoices, validating Dutch suppliers, or onboarding Dutch business partners.' No when-not or alternatives mentioned, but the context is well-defined.

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

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/josemvelez78/mcp-europe-business'

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