Agent knowledge
- Permission required
kb.view
When to use it
What your organization's agents receive today: the knowledge base (active blocks in order), the greeting, the price list per centre and tariff (also as Markdown) and the rules of which services each worker does. Your organization only.
Input
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to repeat your organization (or, with a staff key, pick another) |
kinds | "kb" | "greeting" | "prices" | "worker_rules"[] | What you want: kb (knowledge base), greeting, prices (price list), worker_rules (which services each worker does). Default: everything |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
organization_idRequired | number | |
kb | object | |
kb.availableRequired | boolean | |
kb.reasonRequired | string | null | Why it is missing (null when present) |
kb.sourceRequired | string | null | database or google_drive |
kb.blocksRequired | object[] | |
kb.blocks[].titleRequired | string | |
kb.blocks[].categoryRequired | string | null | |
kb.blocks[].contentRequired | string | |
kb.blocks[].sort_orderRequired | number | |
kb.blocks[].start_datetimeRequired | string | null | |
kb.blocks[].end_datetimeRequired | string | null | |
kb.blocks[].recurrence_days | any | |
kb.blocks[].is_temporalRequired | boolean | Block with a date window (offers, notices…) |
greeting | object | |
greeting.availableRequired | boolean | |
greeting.reasonRequired | string | null | Why it is missing (null when present) |
greeting.messageRequired | string | null | The message after the greeting the agent says now |
greeting.introRequired | string | null | |
greeting.default_messageRequired | string | null | |
greeting.templateRequired | string | null | |
greeting.template_variantsRequired | object | null | |
greeting.continuation_enabledRequired | boolean | |
prices | object | |
prices.availableRequired | boolean | |
prices.reasonRequired | string | null | Why it is missing (null when present) |
prices.tariffsRequired | object[] | |
prices.tariffs[].idRequired | number | |
prices.tariffs[].nameRequired | string | |
prices.tariffs[].is_defaultRequired | boolean | |
prices.servicesRequired | object[] | |
prices.services[].idRequired | number | |
prices.services[].familyRequired | string | null | |
prices.services[].nameRequired | string | |
prices.services[].descriptionRequired | string | null | |
prices.services[].billingRequired | string | |
prices.services[].locationsRequired | object[] | |
prices.textRequired | string | The same list in Markdown, as the agent receives it |
worker_rules | object | |
worker_rules.availableRequired | boolean | |
worker_rules.reasonRequired | string | null | Why it is missing (null when present) |
worker_rules.default_enabledRequired | boolean | Whether a worker does every service by default |
worker_rules.rules | any | Worker external id → {familias, servicios} it is limited to |
Examples
Example 1: What the agent knows about prices
Call
{
"name": "get_knowledge",
"arguments": {
"kinds": [
"prices"
]
}
}Example 2: All the agent's knowledge
Call
{
"name": "get_knowledge",
"arguments": {}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_knowledge",
"arguments": {
"kinds": [
"prices"
]
}
}
}