MCPDocumentation
On this page

Knowledge

Agent knowledge

get_knowledge
Read
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

FieldTypeDescription
organization_idintegerOnly 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

FieldTypeDescription
organization_idRequirednumber
kbobject
kb.availableRequiredboolean
kb.reasonRequiredstring | nullWhy it is missing (null when present)
kb.sourceRequiredstring | nulldatabase or google_drive
kb.blocksRequiredobject[]
kb.blocks[].titleRequiredstring
kb.blocks[].categoryRequiredstring | null
kb.blocks[].contentRequiredstring
kb.blocks[].sort_orderRequirednumber
kb.blocks[].start_datetimeRequiredstring | null
kb.blocks[].end_datetimeRequiredstring | null
kb.blocks[].recurrence_daysany
kb.blocks[].is_temporalRequiredbooleanBlock with a date window (offers, notices…)
greetingobject
greeting.availableRequiredboolean
greeting.reasonRequiredstring | nullWhy it is missing (null when present)
greeting.messageRequiredstring | nullThe message after the greeting the agent says now
greeting.introRequiredstring | null
greeting.default_messageRequiredstring | null
greeting.templateRequiredstring | null
greeting.template_variantsRequiredobject | null
greeting.continuation_enabledRequiredboolean
pricesobject
prices.availableRequiredboolean
prices.reasonRequiredstring | nullWhy it is missing (null when present)
prices.tariffsRequiredobject[]
prices.tariffs[].idRequirednumber
prices.tariffs[].nameRequiredstring
prices.tariffs[].is_defaultRequiredboolean
prices.servicesRequiredobject[]
prices.services[].idRequirednumber
prices.services[].familyRequiredstring | null
prices.services[].nameRequiredstring
prices.services[].descriptionRequiredstring | null
prices.services[].billingRequiredstring
prices.services[].locationsRequiredobject[]
prices.textRequiredstringThe same list in Markdown, as the agent receives it
worker_rulesobject
worker_rules.availableRequiredboolean
worker_rules.reasonRequiredstring | nullWhy it is missing (null when present)
worker_rules.default_enabledRequiredbooleanWhether a worker does every service by default
worker_rules.rulesanyWorker external id → {familias, servicios} it is limited to

Examples

Example 1: What the agent knows about prices

Call

JSON
{
  "name": "get_knowledge",
  "arguments": {
    "kinds": [
      "prices"
    ]
  }
}

Example 2: All the agent's knowledge

Call

JSON
{
  "name": "get_knowledge",
  "arguments": {}
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_knowledge",
    "arguments": {
      "kinds": [
        "prices"
      ]
    }
  }
}