MCPDocumentation
On this page

Voice agents

Search the knowledge base

kb_search
Read
Permission required
agent:runtime (agent keys only)

When to use it

Searches the centre's information (hours, prices, services…). Answer only with what it returns; if nothing, do not make it up.

Input

FieldTypeDescription
queryRequiredstringWhat they ask, in their words
limitintegerSections (default 3)

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
availableRequiredboolean
reasonRequiredstring | null
kb_versionRequiredstring | null
resultsRequiredobject[]
results[].titleRequiredstring
results[].categoryRequiredstring | null
results[].contentRequiredstring

Examples

Example 1: Pool hours

Call

JSON
{
  "name": "kb_search",
  "arguments": {
    "query": "horario de la piscina"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "kb_search",
    "arguments": {
      "query": "horario de la piscina"
    }
  }
}