Skip to content

Use cases

Validation tools for AI agents through MCP

Give an AI agent phone, email and IP checks as MCP tools, with its own API key, credit limits and the same results as the REST API.

Updated 2026-11-23

AI agents are good at reading and writing text and poor at knowing whether an email address exists. They also act at a speed where bad data does damage quickly: an agent that books meetings, sends outreach or enriches a spreadsheet will happily use a number with a missing digit. Giving it validation as a tool lets it check a value before it acts, the way a careful person would.

The problem

Without a tool, an agent has three bad options when it meets contact data: trust it, guess, or refuse. With a tool it can verify:

  • Outreach agents draft and send messages to addresses taken from a page or a file, and bounce when the address is wrong.
  • Data agents clean or enrich spreadsheets, where each row holds a phone number in a different format.
  • Support and operations agents read IP addresses and numbers out of logs and tickets and need to know what they point to.
  • Signup review agents triage flagged accounts and need the signals, not a guess.

The Model Context Protocol (MCP) is the standard way to give an agent tools, and Qelka runs a remote MCP server for it.

The flow

  1. Create a dedicated key. In the dashboard, make a key named after the client, such as agent-outreach. Revoking it later stops that agent only.
  2. Start with a test key. A sk_test_ key returns simulated answers and never spends credits, so you can test prompts and tool use safely. See test mode.
  3. Connect the client. Point it at https://mcp.qelka.com/mcp with the header Authorization: Bearer sk_live_.... For Claude Code:
bash
claude mcp add --transport http validation https://mcp.qelka.com/mcp --header "Authorization: Bearer $API_KEY"
  1. Tell the agent the rules. Say in its instructions when to call each tool, for example "verify every email before drafting a message, and skip those with status undeliverable".
  2. Cap the work. Ask the agent to call get_account first, and use a bulk job for lists of thousands instead of one tool call per row.
  3. Watch the balance. The credits.low webhook tells your systems when the balance drops under 10% of the plan's monthly credits.
  4. Revoke when done. Delete the key when the project ends.

Decision table

The agent applies the same rules a developer would, written in plain language in its instructions:

Tool result Field What the agent does
Mailbox accepted verify_email: status: deliverable Allow: draft the message
Address cannot receive mail status: undeliverable Block: skip the contact, note the reason
Typo suggested did_you_mean is set Step up: ask the user whether to use the suggestion
Disposable or catch-all checks.disposable, checks.catch_all: true Review: flag the row for a human
Check inconclusive status: unknown Allow with a note, retry later
Number valid validate_phone: e164 is set Allow: store e164
Number unreadable status: unknown Step up: ask for the country
Premium-rate or invalid number line_type: premium_rate, status: invalid Block
Hosting or Tor address in a log lookup_ip: flags.datacenter or flags.tor: true Review: report it
Tool error error type such as insufficient_credits Stop: report to the user

Example

A user asks an assistant: "Check whether this contact is reachable before I email them". The agent calls verify_email with the arguments:

json
{
  "email": "jane@example.com",
  "mode": "full"
}

The tool returns the same JSON as POST /email. The part that drives the decision:

json
{
  "object": "email",
  "status": "deliverable",
  "reason": "accepted_email",
  "did_you_mean": null,
  "checks": { "disposable": false, "catch_all": false, "role": false },
  "score": 100
}

Values are illustrative. The agent answers that the mailbox is accepted and proceeds. For a phone number, validate_phone takes phone, an optional country and an optional level; lookup_ip takes ip; get_account takes nothing and costs nothing.

When the API refuses a call, the tool result is marked as an error and carries the API's message and error type, so the agent can react to insufficient_credits or rate_limited instead of guessing.

What it costs

Each tool call costs the same credits as the matching API call: 1 for verify_email, 1 for validate_phone at the basic level or 3 at the live level, 1 for lookup_ip, and nothing for get_account. Calls are authenticated, rate limited, cached for 7 days and billed like REST calls, with the same rate limits. An agent can call a tool many times in one conversation, so size long jobs first. The free plan includes 100 credits a month. See pricing.

Frequently asked questions

How does an AI agent call the API?
Through the remote MCP server at https://mcp.qelka.com/mcp. The client connects over Streamable HTTP with your API key as a bearer token and discovers its tools: validate_phone, verify_email, lookup_ip, validate_iban, check_vat, decode_vin, lookup_lei and get_account. The agent calls them like any tool, and each call returns the same JSON as the matching REST endpoint, billed in the same credits.
Can the agent spend my credits without limit?
It can spend as many as your balance and rate limits allow, so set it up deliberately. Use a dedicated key per client, tell the agent to read get_account before a long job, and prefer a bulk job for thousands of values. Revoke the key and it stops within 60 seconds. A test key returns simulated answers and spends nothing while you try the setup.
Does the agent see personal data?
It sees whatever you ask it to check, and the tool results it gets back. The values pass through the API like any other call, with the same cache, retention and providers, as data and privacy describes. The conversation itself stays with your assistant's provider. Send only the values the task needs, and avoid pasting whole customer files into a chat.
Which clients work today?
Clients that can connect to a remote MCP server and send a custom Authorization header, such as Claude Code, Claude Desktop through its configuration, and Cursor. Clients that only connect through OAuth cannot connect yet, because the server does not offer OAuth. The MCP pages list the setup steps for each client.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time