AI Agents
Giving AI agents phone intelligence tools
An autonomous fraud triage or KYC agent needs a current signal to reason with, not a static description of what phone numbers usually mean. Exposing Telebase's lookup as a callable tool lets the agent decide when a carrier, number type or number validity check is worth making, instead of a human hard-wiring that decision into business logic.
Why agents need tools, not just training data
A language model has broad knowledge about how a SIM swap enables fraud, but it has no way to know whether a specific number in front of it, right now, has been swapped or which carrier serves it. That is per-query network state, and the only way an agent gets it is by calling something that queries the network. This is the same gap that made web search and code execution necessary agent tools: the model reasons, the tool supplies ground truth. What that ground truth needs to look like before an agent can branch on it directly is covered in telecom signals in an automated fraud decision.
What a phone intelligence tool call looks like
Structurally, a Telebase tool definition is a thin wrapper around one HTTP call: the agent framework describes the function (name, that it takes a phone number, what it returns), the model decides when to invoke it, and the response comes back as structured JSON the model can reason over directly.
{
"name": "lookup_phone_number",
"description": "Look up carrier, country, number type and number validity for a phone number in E.164 format.",
"parameters": {
"phone": "string, E.164 format, e.g. +447700900001"
}
}
The agent's own reasoning loop handles when to call it: before releasing funds on an unfamiliar number, before completing onboarding for a new account, or when a conversation surfaces a phone number that needs verifying. The tool does one job well and returns a predictable shape every time, which is what makes it safe to hand to a model rather than a person. See designing a phone check an agent can act on without a human in the loop for what changes once no one reviews that result before it is acted on.
Machine-readable documentation matters as much as the API itself
An agent building its own tool call, or evaluating whether Telebase fits a task, benefits from documentation written for a model to parse directly rather than a human to read in a browser. Telebase publishes a machine-readable API guide at skills.md for exactly this reason: exact request shape, exact response fields, and no marketing language for an agent to have to filter out. See how skills.md and llms.txt work together for agents that need to discover Telebase before they can call it.
What this does not change
The UNKNOWN state applies regardless of who, or what, is calling the API. An agent should be built to treat UNKNOWN as "no signal available", not silently interpret it as "no swap detected".
Get sandbox access