mcp
v0.12.1MCP server for the CognitionDesk platform: create and manage AI assistants, workflows, squads and knowledge, and inspect your usage — authenticated with your…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_connection_status
Check the configured API key: masked identity, plan usage, and which assistants it may manage. Use this first to diagnose auth issues. It also answers the other question that used to have no answer: WHICH ACCOUNT you are talking to. The `keyring` block lists the accounts this server holds and which one is active; `use_account` switches, and any read tool takes `account` to peek at another one without switching.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
use_account
Switch which account of this server's keyring every following tool call uses, until the process restarts or you switch again. This server holds one keyring (COGNITIONDESK_ACCOUNTS in its .env) instead of running one instance per account: a satellite that runs on CognitionDesk (vendear, turnia, market-site) is one line in that keyring, not another MCP server. Every response — this one included — starts with `account: <name>`, so hitting the wrong account is impossible not to see. get_connection_status lists what the keyring holds; read tools take an `account` argument to look at another one…
| Parameter | Type | Description |
|---|---|---|
name * | string | Account name, as listed by get_connection_status. Never a key. |
list_assistants
List all assistants owned by the API key.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_assistant
Get a single assistant by id.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_assistant
Create a new assistant. assistantData shape: { name, model, systemPrompt?, skills?, enabledTools?, ... } — see list_assistants output for examples of existing shapes.
| Parameter | Type | Description |
|---|---|---|
assistantData * | object |
update_assistant
Patch fields on an existing assistant.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
updates * | object |
delete_assistant
Delete an assistant permanently.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string |
evaluar_asistente
Run the assistant's eval set (traps it must pass BEFORE publishing) against its DRAFT. Requires "chat:run" and, for the draft, "assistants:write". dryRun defaults to TRUE: it returns the estimated calls/tokens and spends nothing. Say that cost to whoever owns the key, then call again with dryRun:false. A real run spends the key owner's credits. Each case runs as its declared audience (owner/staff/contact), unlike try_assistant which is always a guest: staff/contact cases need `identidades: { staff: { persona, pin } }` (the backend identifies in two turns and never stores or returns the PIN). W…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
casos | array | Only these case ids. |
dryRun | boolean | Default true. false = run for real and spend credits. |
generales | boolean | false = skip the 7 general cases. |
identidades | object | Per audience (staff|contact|owner): who to identify as and the PIN. Never logged. |
timeoutSec | integer | Default: 5 min — a run is many chat calls. |
version | string | Default "draft": what you are about to publish. |
try_assistant
Talk to an assistant and read what it actually answers. Requires "chat:run". Use this BEFORE publish_assistant — editing a prompt and publishing without trying it is guessing. It runs the same code path that serves real customers, so the answer here is the answer they get. Pass `messages` (not just `message`) to test a multi-turn exchange: most failures show up on the second turn, when the assistant has to remember what was already said. Each call runs the model and spends the key owner's credits. It is a rehearsal, not a channel: nothing here is recorded as a real conversation. WHICH VERSIO…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
message | string | One-off question. Ignored when `messages` is passed. |
messages | array | Full exchange, to test memory and follow-ups. |
model | string | Override the assistant's model — leave empty to test what customers actually get. |
temperature | number | |
timeoutSec | integer | How long to wait for the answer, in seconds. Default: COGNITIONDESK_TRY_TIMEOUT_MS (60s). Raise it for slow models or big knowledge bases; it will NOT unblock a turn that called ask_user. |
version | string | Default "published" (what customers get). "draft" runs the live assistant you are editing, but needs a backend that accepts it (the response then carries source:"draft") and the key scope "assistants:… |
publish_assistant
Freeze the current draft of an assistant as an immutable version and point the LIVE bot at it. Try it with try_assistant first. WHAT "LIVE" MEANS (since 2026-09-23): every turn that enters by API key — the web widget embedded in a customer's site, the SDK, satellites, the npm connector — and every WhatsApp turn runs the PUBLISHED version. The dashboard chat runs the DRAFT on purpose (try_assistant runs the published one), so the owner can test what they are editing. Consequence: update_assistant alone changes NOTHING for customers until you publish; and an assistant that was never publishe…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
motivo | string | Why the override (recorded with who and when). |
override | boolean | Only with the hard evals gate on: publish despite red/missing evals. Owner's decision; needs `motivo`. |
list_assistant_versions
Published versions of an assistant, newest first, with which one is LIVE. Requires "assistants:read". Read this before publish_assistant on an assistant that already serves customers (to know what you are replacing) and before rollback_assistant (to pick the versionId). An empty list means the assistant was never published: its draft is what customers get, and there is nothing to roll back to. Each version is a frozen copy of the definition (prompt, model, skills, tools, scopes) with publishedAt and publishedBy. The live one is the assistant's publishedVersionId.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
assistant_context_budget
How much context an assistant costs the model on every turn: how many tools it sees, which ones, and how many tokens its tool definitions + skills + system prompt add up to. Requires "assistants:read". Use it before adding a tool or a skill (to know what it costs), and to answer "which assistant is the heaviest?" without opening the database. Same filters the chat applies (scopes granted, settings, skills, whitelists, audience). audience defaults to owner = the widest surface; pass guest to see what a stranger on the widget gets. Tokens are an estimate (chars/4) and `notCounted` lists what is…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
audience | string | Who is talking. Default owner. |
platform | string | Channel to resolve tools for (web, whatsapp, unity, …). Default web. |
diagnosticar_asistente
One-shot health report for an assistant: which tools it has, which it used in the last N days (and which never), how much context it costs, and which permissions it holds that it does not need. Requires "assistants:read". It keeps the THREE kinds of permission apart: (1) agent capabilities = what the ASSISTANT may do in a chat (grantedScopes); (2) API-key scopes = what an outside PROGRAM may do (not readable by API; a 403 names the scope); (3) audience rungs = what each PERSON sees (guest/contact/staff/owner), including what a stranger on the widget gets. Missing sources degrade with a clear n…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
days | integer | Usage window in days. Default 30. |
probar_tool_nueva
Rehearse a NEW tool against sample conversations, before/after, and report which tools the assistant used in each. Requires "chat:run" and "assistants:read"; spends the key owner's credits (2 runs per conversation). Why not just try_assistant: /try runs the PUBLISHED version, so a tool added to the draft of a live assistant is invisible to it. Pass `antesId` = the assistant as it is, and `despuesId` = a copy of it WITH the new tool that has NEVER been published (a published copy would run its frozen version and the test would say nothing). If `despuesId` has a published version the verdict is…
| Parameter | Type | Description |
|---|---|---|
antesId * | string | Assistant as it is today. |
conversaciones * | array | |
despuesId * | string | Never-published copy that has the new tool. |
toolNueva * | string | Exact tool name, as the model sees it. |
timeoutSec | integer | |
version | string | Default "published": needs the never-published copy described above. "draft": both sides run their live draft, so `despuesId` may be the real assistant with the tool added (no copy). Needs a backend t… |
rollback_assistant
Point the LIVE bot back at an earlier published version, instantly, without touching the draft. Requires "assistants:write". Use it when a publish went wrong in front of customers: pick the versionId from list_assistant_versions (never guess it). The draft keeps the owner's latest edits, so after fixing them a new publish_assistant moves live forward again. This is the owner's call — say what version you are going back to and why.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
versionId * | string | From list_assistant_versions. |
assign_workflow_to_assistant
Assign (or unassign) a workflow to an assistant.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
workflowId * | string | |
enabled | boolean |
get_assistant_access
Read the audience policy of an assistant: audiencePolicy.roleLevels (which business role maps to which rung) and any access gates. Requires "assistants:read". Read this when someone "is loaded but sees nothing": a role missing from roleLevels grants nothing, and that is invisible everywhere else.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
set_assistant_access
Replace the audience policy of an assistant (roleLevels and gates). Requires "assistants:write". This changes what every PERSON talking to the LIVE assistant gets to see — it is not a draft edit. Read get_assistant_access first and send the complete policy: this is a PUT, not a patch.
| Parameter | Type | Description |
|---|---|---|
access * | object | The complete policy object, typically { audiencePolicy: { roleLevels: {...}, ... } }. |
assistantId * | string |
list_workflows
List workflows, optionally filtered by category/tags/enabled.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
category | string | |
enabled | boolean | |
tags | string | comma-separated tags |
get_workflow
Get a single workflow by id.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_workflow
Create a workflow (LangGraph node/edge graph).
| Parameter | Type | Description |
|---|---|---|
edges * | array | |
name * | string | |
nodes * | array | |
category | string | |
description | string | |
tags | array |
update_workflow
Update a workflow draft (name/description/nodes/edges/category/tags — send only the fields to change).
| Parameter | Type | Description |
|---|---|---|
updates * | object | |
workflowId * | string |
run_workflow
Run/test a workflow with an optional input payload.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | |
input | object |
publish_workflow
Publish the current draft of a workflow as an immutable version.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string |
list_workflow_versions
List published versions of a workflow.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_workflow_analytics
Get run analytics for a workflow.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_schedules
List scheduled tasks (schedules): status, human-readable "when", next run in the tenant timezone. Requires schedules:read.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
status | string |
propose_schedule
Propose a scheduled task (proactivity check). Use when the human asks for something recurring ("every day at 9am check the attendance uploads") or you detect a task worth repeating. It is created as PROPOSED — a human approves it in the dashboard (Schedules page); it never runs before that. WHEN: the spec takes exactly one of cron ("0 10 * * *"), every_ms, or at (ISO date, runs once), read in `timezone`. WHAT — the five action types the backend can run, and what each one actually does: · run_workflow {type,workflow_id,context?} — runs a PUBLISHED workflow of yours on the durable queue.…
| Parameter | Type | Description |
|---|---|---|
action * | object | {type:"run_workflow", workflow_id, context?} | {type:"run_report", report:{type:"fuente_json", source_url, ...}} | {type:"run_report", report:{type:"salud_logs", ...}} | {type:"run_report", report:{ty… |
agentName * | string | who proposes — your signature, shown as "proposed by <name>" |
spec * | object | {cron} | {every_ms} | {at} |
title * | string | short human title, shown on the approval card — say what runs and how often, in plain language |
agentModel | string | |
projectId | string | scope this schedule to a project, if the tenant uses projects |
timezone | string | IANA tz of the TENANT (e.g. America/Argentina/Cordoba); default UTC |
userId | string | owner of the schedule — REQUIRED for publish_social and collect_social_metrics (owner of the page connection), agent_task (whose tasks) and run_report/rendimiento_asistentes (who receives the report… |
pause_schedule
Pause or resume an ACTIVE/PAUSED schedule. A proposed one cannot be touched here — approval is human, in the dashboard.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
scheduleId * | string |
list_schedule_runs
Run history of a schedule: status, lateness (said, not hidden), what each run produced.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_reports
Reports issued by schedules — every one carries its issue date and its author signature (kind · name · model).
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
type | string |
get_report
Full report by id: signed summary plus the deterministic source it was written over (auditable).
| Parameter | Type | Description |
|---|---|---|
reportId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_squad
Create a squad (a team of assistants + an orchestrator workflow) from a one-line goal. Orchestrates the platform wizard end-to-end — a planner proposes roles/tiers/topology from the goal, and any field you pass here overrides the proposal. Always confirms and materializes (this is the "just do it" tool, not a preview — use create_squad_from_template with dryRun for a preview instead).
| Parameter | Type | Description |
|---|---|---|
goal * | string | One or two sentences describing what the squad should accomplish. |
name | string | Squad name; defaults to a name derived from the goal. |
roles | array | Role keys to keep; defaults to all roles the planner proposes. |
saveTemplate | boolean | Save the squad as a reusable org template. |
tiers | object | Map of roleKey -> model tier; defaults to the tier the planner proposes per role. |
topology | string | Defaults to the planner's proposed topology. |
list_squad_templates
List reusable squad templates available to this organization.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_squad_from_template
Materialize a squad from an existing template — faster than create_squad when a suitable template already exists. Pass dryRun:true to preview the plan (resolved roles/models) without creating anything.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
templateId * | string | |
dryRun | boolean | |
overrides | object | { excludeRoleKeys?, tierOverrides?, counts? } |
tierMap | object |
get_wizard_status
State of a wizard session (the guided flow behind create_squad): current step, what it already knows, what it is waiting for. Requires "wizard:read". Use it when a squad creation was interrupted — the session may still be alive and resumable, or worth cancelling.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
cancel_wizard
Cancel a wizard session that is stuck or no longer wanted. Requires "wizard:write". Nothing the wizard had not confirmed is created; a session left hanging just expires noise.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
get_usage
Get the current plan and usage/quota snapshot for the API key owner.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_usage_analytics
Get usage analytics over a period (default 30d).
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
period | string | e.g. "7d", "30d", "90d" |
check_action_permission
Check whether the current plan allows an action before attempting it (e.g. "assistant_create", "workflow_create") without consuming quota.
| Parameter | Type | Description |
|---|---|---|
actionType * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
metadata | object |
get_available_plans
List available billing plans and their limits.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_inventory
List the inventory/catalog items (products, services) owned by the API key owner. Supports filtering by type, category, free-text search and project.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
category | string | |
limit | number | max 200, default 50 |
projectId | string | |
search | string | |
type | string |
import_inventory_items
Bulk import products/items into the inventory. Each item: { name (required), sku?, price?, currency? (3-letter), stock?, category?, description?, type? (product|service|contact|custom, default product), tags?: string[], images?: string[] (URLs), metadata?: {} }. By default items with an existing SKU are UPDATED (upsert) and items without SKU are created. Recommended: call first with dryRun:true to validate without writing, review the report, then run for real. Max 1000 items per call. Returns { created, updated, skipped, errors[] }.
| Parameter | Type | Description |
|---|---|---|
items * | array | Items using inventory field names (name, sku, price, ...) |
dryRun | boolean | Validate only — nothing is written |
projectId | string | Scope the imported items to a project |
upsertBySku | boolean | false = always create new items, ignoring SKUs |
get_import_status
Get the status and report of an inventory import by id ({ status, totalRows, report: { created, updated, skipped, errors } }).
| Parameter | Type | Description |
|---|---|---|
importId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_import_sources
List configured inventory import sources — external product APIs (the client's own database/endpoint) connected to the inventory. Each source knows its endpoint, response itemsPath and field mapping.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
sync_import_source
Sync now: fetch all products from a configured external API source and import them (upsert by SKU with the source's saved mapping). Pass dryRun:true to validate without writing. Returns the import report.
| Parameter | Type | Description |
|---|---|---|
sourceId * | string | |
dryRun | boolean |
seed_inventory
Seed the inventory with starter items for a business type. Requires "inventory:write". Meant for EMPTY inventories — on one with real items prefer import_inventory_items, which upserts by SKU.
| Parameter | Type | Description |
|---|---|---|
payload | object | Seed options as the platform expects them; empty uses defaults. |
list_inventory_imports
Import history: every bulk import with its report (created/updated/skipped/errors). Requires "inventory:read". Read this before re-running an import — the last report usually explains the current state of the catalog.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
generate_image
Generate an image and store it in the account's media. Requires "images:write" — a sensitive scope because EVERY CALL COSTS MONEY. Say the cost before generating in bulk; never loop this without the human asking for exactly that.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | What to generate. Be concrete: subject, style, framing. |
options | object | Platform options (size, model...) — omit for defaults. |
list_api_keys
List API keys owned by the same account as the configured key. Requires the "apikeys:manage" scope on the configured key.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_api_key
Create a new API key for the same account as the configured key. Requires the "apikeys:manage" scope on the configured key. A child key cannot be granted more scope than its creator — extra scopes are silently ignored unless the creator itself has "apikeys:manage".
| Parameter | Type | Description |
|---|---|---|
clientName * | string | |
allowedAssistantIds | array | |
expiresInDays | number | |
maxUsage | number | |
scopes | array |
update_api_key
Rename a key, change its allowedAssistantIds, or REPLACE its scopes (e.g. grant "receivables:write"). `scopes` is the full new list, not a delta: read the current one with list_api_keys and send it with the additions. Requires "apikeys:manage"; the backend rejects unknown scopes and anything above the caller's org role.
| Parameter | Type | Description |
|---|---|---|
keyId * | string | |
allowedAssistantIds | array | |
clientName | string | |
scopes | array |
revoke_api_key
Deactivate an API key (reversible via update_api_key on isActive if ever exposed — today this is one-way in the UI too). Requires "apikeys:manage".
| Parameter | Type | Description |
|---|---|---|
keyId * | string |
delete_api_key
Permanently delete an API key. Requires "apikeys:manage".
| Parameter | Type | Description |
|---|---|---|
keyId * | string |
get_api_key_stats
Get usage stats for a single API key. Requires "apikeys:manage".
| Parameter | Type | Description |
|---|---|---|
keyId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_custom_tools
List the custom tools owned by the API key. Requires the "tools:read" scope.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_custom_tool
Get one custom tool by id. Requires "tools:read". Sensitive header values (Authorization, *key*, *token*…) come back masked as [redactado …last4]: to keep a header when updating, leave it out of the change.
| Parameter | Type | Description |
|---|---|---|
toolId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_custom_tool
Create a custom tool the assistants can call. Requires "tools:write". definition: { name (lowercase_snake, 2-60 chars), displayName, description, type: "api_call" | "llm_transform", config, inputSchema?, systemPromptSnippet?, minAudience? } · api_call → config: { url, method?, headers?, bodyTemplate? } · llm_transform → config: { systemPrompt } The description is what the model reads to decide when to call it: write it for the model, not for a menu. minAudience ("guest"|"contact"|"staff"|"owner") hides the tool from whoever is talking below that level — use it for anything that returns…
| Parameter | Type | Description |
|---|---|---|
definition * | object |
update_custom_tool
Patch a custom tool (displayName, description, config, inputSchema, enabled, minAudience…). Requires "tools:write". The name is immutable.
| Parameter | Type | Description |
|---|---|---|
toolId * | string | |
updates * | object |
delete_custom_tool
Delete a custom tool permanently. Requires "tools:write". Assistants still listing its id in customToolIds simply stop seeing it.
| Parameter | Type | Description |
|---|---|---|
toolId * | string |
list_channels
Every channel that can reach this account's assistants: connected messaging, embedded web widgets and SDK/code connections. Returns one shape for all three even though they still live in three different stores. A channel whose `channel` field is null is NOT declared in the platform catalog — no tools resolve there.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
organizationId | string |
create_web_widget
Give an assistant an embeddable web chat widget — the channel a website visitor talks through. Requires "channels:write" (sensitive: it is not in any key’s default set, an admin grants it once). THE WIDGET IS CREATED SWITCHED OFF. It exists, list_channels shows it and the dashboard lists it, but it serves nobody: the public config endpoint answers 404 and every origin is blocked until a person turns it on in the panel. That is deliberate and it is the whole shape of this tool — an agent PROPOSES a channel, a human publishes it, the same way an email campaign is drafted here and sent by a…
| Parameter | Type | Description |
|---|---|---|
allowedDomains * | array | hosts allowed to embed it, e.g. ["hub.cognitiondesk.com"] or ["*.mi-tienda.com"]. Required — there is no "any domain". |
assistantId * | string | the assistant this widget talks to — must be owned by the key owner (list_assistants) |
botName | string | the name the visitor sees in the bubble |
description | string | |
name | string | what to call it in the panel, e.g. "Development Hub" |
organizationId | string | |
position | string | 'bottom-right' | 'bottom-left' |
primaryColor | string | hex, e.g. "#2563eb" — take it from the brand, do not invent one |
projectId | string |
get_web_widget
One web widget in full: its allowedDomains, its assistant, whether it is switched on, and its embed key. Requires "channels:read". READ THIS BEFORE TOUCHING A WIDGET THAT ALREADY WORKS — update_web_widget replaces allowedDomains wholesale, so you need the current list to add to it. The widget must belong to the key owner; someone else's widget answers 404 even if you know its id. The embed key comes back in the clear: it is a public key by design (it travels in the page's source), but it is still an account credential — do not paste it into a chat or a commit.
| Parameter | Type | Description |
|---|---|---|
widgetId * | string | from list_channels |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_social_connections
The publishing accounts connected to this CognitionDesk account (YouTube channels; Facebook Pages are listed by list_facebook_pages), plus which networks can be connected from here. Requires "social:read". No secret comes back: only id, network, channel name and when the stored token expires (it renews itself; an expired date here is not a problem by itself). `oauthReady: false` on a network means the server has no OAuth app configured for it yet, so connect_youtube_channel will answer 503 until an admin sets it.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
connect_youtube_channel
Start connecting a YouTube channel. Requires "social:write". Returns a Google URL — YOU CANNOT FINISH THIS ALONE: give the URL to the human and ask them to open it with the Google account that OWNS the channel (a brand-account manager is not enough) and accept. When they come back, confirm with list_social_connections. Reconnecting a channel that is already connected renews it instead of duplicating it. While the Google app is unverified only its test users can consent, and videos uploaded through the API stay private until the project passes YouTube's audit — say so if the human expects t…
disconnect_social_account
Disconnect a publishing account (e.g. a YouTube channel) and DELETE everything stored for it. Requires "social:write". IRREVERSIBLE: to publish there again the owner has to connect it from scratch. For YouTube the server first revokes the app's access in Google and only then deletes; if Google does not confirm, nothing is deleted and this fails saying the account is still connected — retry, never report it as done. Confirm with the human which account (name and id from list_social_connections) before calling.
| Parameter | Type | Description |
|---|---|---|
connectionId * | string | from list_social_connections |
list_youtube_videos
The latest videos of a connected YouTube channel with their privacy, upload status and views/likes/comments. Requires "social:read". Each video carries its short link (https://youtu.be/<id>) — the form the docs site embeds.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
connectionId | string | from list_social_connections; optional when there is exactly one YouTube channel |
max | integer | how many, newest first (default 25) |
upload_youtube_video
Upload a video file from THIS machine to a connected YouTube channel, optionally with its thumbnail. Requires "social:publish" (sensitive). PRIVATE BY DEFAULT: nobody sees it until privacyStatus is "unlisted" or "public" — pass it on purpose, or change it later with update_youtube_video. The file goes straight from this machine to Google; the channel token never leaves the server. Each upload spends one of the channel's ~100 daily API uploads. Put the link to the matching docs page in the description: YouTube has no link field.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | absolute path to the video (.mp4, .mov, .webm, .mkv) |
title * | string | |
connectionId | string | optional when there is exactly one YouTube channel |
description | string | |
language | string | BCP-47 of title and audio, e.g. "es" |
privacyStatus | string | default private |
tags | array | |
thumbnailPath | string | absolute path to a .jpg/.png up to 2 MB |
update_youtube_video
Change a video already on a connected YouTube channel: title, description, tags, privacy, thumbnail. Requires "social:publish". Only what you pass changes — the server re-sends everything else as it was, because YouTube wipes any field an update omits. Switching privacyStatus to "public" puts it in front of everyone and in search: do it only when the human chose to.
| Parameter | Type | Description |
|---|---|---|
videoId * | string | the id (the part after youtu.be/) |
connectionId | string | optional when there is exactly one YouTube channel |
description | string | |
privacyStatus | string | |
tags | array | |
thumbnailPath | string | absolute path to a .jpg/.png up to 2 MB |
title | string |
list_facebook_pages
The Facebook Pages of this CognitionDesk account: `connected` (usable now, with their connectionId) and `available` (the human already authorized them in Meta but they are not connected yet — connect_facebook_page). Requires "social:read". `authorized: false` means nobody did the Meta OAuth (or it expired): the ONLY way is the human opening `connectUrl` in the dashboard. No token ever comes back.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
connect_facebook_page
Connect a Page from list_facebook_pages → `available` (the human already authorized it in Meta). Requires "social:write". The page token is resolved and stored encrypted on the server. Messenger is NOT subscribed unless subscribeMessaging is true: that makes the page's inbox reach the platform, a separate decision from publishing.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | the Meta page id from `available` |
subscribeMessaging | boolean | default false |
list_facebook_posts
What a connected Page published (with reactions, comments, shares and permalink) and what is SCHEDULED in Meta and not out yet. Requires "social:read". Use it to see the calendar of a page and to avoid scheduling twice.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
connectionId | string | from list_facebook_pages; optional when there is exactly one Page |
limit | integer | published posts, newest first (default 10) |
get_facebook_page_insights
Followers and the page metrics of the last N days (views, reach, engagement, follows), summed and per day. Requires "social:read". Meta retires page metrics without notice: the ones it no longer serves come back in `unavailable` with Meta's reason — never read a missing metric as zero.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
connectionId | string | optional when there is exactly one Page |
days | integer | default 7 |
schedule_facebook_post
Publish on a connected Page: now, SCHEDULED (scheduledAt, 10 minutes to 30 days ahead — Meta's own scheduler, it goes out even if our server is down) or as a hidden draft (published:false). Requires "social:publish" (sensitive). This is IN FRONT OF EVERYONE. The platform REFUSES it without `approvalId`: first request_post_approval with this exact text/media/Page, then wait until the human approves it in the dashboard (get_post_approval says when). A requested cadence ("one post a day") is NOT an approval of any post. Media must be a public https URL (Meta downloads it). For a carousel (sever…
| Parameter | Type | Description |
|---|---|---|
approvalId | string | REQUIRED by the platform: the id from request_post_approval, once the human approved it in the dashboard. The text, media and Page must be exactly the approved ones |
connectionId | string | optional when there is exactly one Page |
imageUrl | string | |
images | array | 2 to 10 photo URLs, in order: ONE multi-photo post (carousel). One URL = a normal photo post. Not with imageUrl or videoUrl |
link | string | text posts only |
published | boolean | false = hidden draft to test the path |
scheduledAt | string | ISO date; omit to publish now |
text | string | the post text (caption for photo/video) |
videoUrl | string |
retract_facebook_post
Take back a SCHEDULED post of a connected Page before Meta publishes it (it gets deleted in Meta). Requires "social:publish". Only posts that are still scheduled (list_facebook_posts → scheduled): what already went out is NOT removed here. It returns the text, picture and date that were scheduled, and the platform keeps an audit row, so the piece can be proposed again. Retracting is a human decision: do it only for posts the human named, never to "clean up" on your own.
| Parameter | Type | Description |
|---|---|---|
postId * | string | the id from list_facebook_posts → scheduled, e.g. "<pageId>_<n>" |
connectionId | string | optional when there is exactly one Page |
reason | string | why, in plain words — goes to the audit row |
queue_social_piece
Put ONE human-approved piece in the publishing queue (social_pieces) of a brand and network. Requires "social:publish" (sensitive). It is born APPROVED: the approval already happened upstream — never queue something the human did not see. Nothing goes out from here: the publish_social schedule of that brand/network (propose_schedule → the human approves it) takes the oldest approved piece on each run. Media must be a public https URL. guides/facebook-pages.
| Parameter | Type | Description |
|---|---|---|
brand * | string | the brand the schedule publishes for, e.g. "mounaji-gaming" |
platform * | string | facebook | instagram | linkedin … |
approvalId | string | REQUIRED by the platform: the id from request_post_approval (destino social-piece with this brand/platform), approved by the human |
imageUrl | string | |
link | string | |
source | object | where it came from (planilla, cosecha, tablero) — for the trail |
text | string | |
type | string | default photo |
videoUrl | string |
request_post_approval
Ask the HUMAN to approve one post before it can go out (CONTENIDO_EDITORIAL F10). Requires "social:publish". It publishes NOTHING: it leaves a pending approval the account owner decides in the dashboard with their own login (an API key cannot approve). Pass the exact text/media and the destination: { kind: "facebook-post", connectionId } for schedule_facebook_post, or { kind: "social-piece", brand, platform } for queue_social_piece. Returns approvalId and approveUrl — give the human the URL. Changing a comma afterwards invalidates it; each approval is used once and expires in 14 days.
| Parameter | Type | Description |
|---|---|---|
destino * | object | |
imageUrl | string | |
images | array | facebook-post carousel: the same photo URLs, in the same order, you will pass to schedule_facebook_post |
link | string | |
nota | string | for the human: where it comes from and why now |
text | string | |
videoUrl | string |
get_post_approval
Where a post approval stands: pending (the human has not decided), approved (you may publish it once, unchanged), rejected (with the reason), used. Requires "social:read". Never approve or work around it yourself.
| Parameter | Type | Description |
|---|---|---|
approvalId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_agenda
The key owner's agenda settings: working hours per weekday, timezone, default duration, minimum notice, how far ahead people can book, appointment types, intake fields — and whether a calendar link (iCal) is active. Requires "appointments:read". This is the SAME agenda the assistant's booking tools and the public booking page use: what you read here is what customers are offered.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
update_agenda
Change the key owner's agenda: working hours, timezone, default duration, minimum notice, booking window, appointment types. Requires "appointments:write". IT IS LIVE AT ONCE: the next customer who asks for a slot sees the new hours, on WhatsApp, the widget and the public page. Fields are MERGED — what you omit stays. `workingHours` merges per day: send only the days you change, each as { enabled, start: "HH:mm", end: "HH:mm" }. `timezone` must be IANA ("America/Argentina/Buenos_Aires"), not "ART" or "-03:00" — it is rejected otherwise, because every slot is computed from it. Setting `serv…
| Parameter | Type | Description |
|---|---|---|
bufferMinutes | integer | |
defaultDurationMinutes | integer | |
enabled | boolean | |
maxAdvanceBookingDays | integer | |
minAdvanceMinutes | integer | |
serviceTypes | array | |
slotDurationMinutes | integer | grid between offered start times |
timezone | string | |
workingHours | object | keys: mon tue wed thu fri sat sun |
list_agenda_appointments
The meetings and appointments on the key owner's agenda — who, when (UTC + the agenda's timezone), how long, status, contact details and notes. Requires "appointments:read". Defaults to from now on.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
endDate | string | ISO upper bound |
limit | integer | |
startDate | string | ISO lower bound; default now |
status | string | scheduled | confirmed | cancelled | completed |
agenda_calendar_link
The agenda as a calendar you subscribe to from Google Calendar, Apple Calendar or Outlook (an iCal link). Requires "appointments:write" (status: "appointments:read"). · status — whether a link exists and since when. Never returns it. · create — makes a new link and RETURNS IT ONCE. Creating again ROTATES it: the previous link stops working at once (Google then shows an empty calendar until the new one is added). · revoke — kills the link. WHOEVER HAS THE LINK SEES EVERY APPOINTMENT with names, phones and emails. Hand it to the owner through a private channel (abrir_archivo of mcp-cock…
| Parameter | Type | Description |
|---|---|---|
action * | string |
update_web_widget
Edit a live web widget — above all its allowedDomains, the list that decides whether the chat answers or returns 403. Requires "channels:write". ALLOWEDDOMAINS IS REPLACED, NOT MERGED. Everything you leave out is revoked. To add one host, call get_web_widget first and send the existing list plus the new one. Every other field IS merged: what you omit stays as it is. WRITE THE ORIGIN THE PAGE IS REALLY SERVED FROM, not the domain you think of. `https://vendear.com` does NOT authorise `https://www.vendear.com`, and a site that redirects its apex to www serves every visitor from www — that ex…
| Parameter | Type | Description |
|---|---|---|
widgetId * | string | from list_channels or get_web_widget |
allowedDomains | array | THE COMPLETE list of hosts allowed to embed it — it replaces the current one. "vendear.com", "www.vendear.com" or "*.vendear.com"; the scheme is filled in for you. |
avatarUrl | string | |
botEmoji | string | |
botName | string | the name the visitor sees in the bubble |
description | string | |
isActive | boolean | false pauses the widget for everyone without deleting it |
name | string | |
placeholder | string | |
position | string | 'bottom-right' | 'bottom-left' |
poweredByLabel | string | |
poweredByUrl | string | |
primaryColor | string | hex — take it from the brand of the SITE the widget is embedded in, not from the platform |
showPoweredBy | boolean | false hides the "Powered by" footer — a white-label storefront should not advertise the platform inside a business's own shop |
statusText | string | |
welcomeMessage | string |
widget_identity
The web widget's IDENTITY SECRET — lets the site that embeds the widget tell the chat, with a signature, who the visitor is (Intercom-style identity verification). Without it, a visitor on a public widget is a guest until they type a PIN. The site's SERVER signs a short JWT (HS256, ≤ 10 min) with this secret: { sub: email|phone, wid: widgetId, aid: assistantId, iat, exp, nonce } and passes it to CognitionDesk.init({ identityToken }). The backend resolves `sub` against the assistant's contacts and caps the result at maxAudienceViaToken (default "staff"; "owner" only if you set it explicitly…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
widgetId * | string | from list_channels or get_web_widget |
maxAudienceViaToken | string | the ceiling a token can grant; required for set_cap, optional on rotate |
reveal | boolean | rotate only: return the secret in the clear |
saveTo | string | rotate only: local file to write the secret to (recommended) |
list_channel_types
The channel catalog: which channel types exist, their family, and what each one can render. Read this before declaring a tool for a channel — a tool that names a channel not in here resolves nowhere.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_assistant_contacts
Who the assistant recognises. Requires "audience:read". Never returns the PIN, only `tienePin`. Returns ONE ROW PER (channel, identifier) — that is the storage shape, not the mental model. Rows that share `personId` are the SAME PERSON reachable on several channels, with `name`, `role`, `level` and PIN repeated on each row. Group by `personId` before showing this to a human, or the same person looks like two contacts. A row with no `personId` is an older contact: treat it as a person with a single identity (the backend fills `personId` with the row id so grouping always works).
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
upsert_assistant_person
Register or edit a PERSON with every way they reach the assistant, in one call. Requires "audience:write". PREFER THIS over upsert_assistant_contact whenever someone is reachable on more than one channel, or whenever you need to EDIT someone who already exists — one person, one call. · Omit `personId` to create. Pass the `personId` from list_assistant_contacts to edit. · `identities` is the COMPLETE list, not a patch: identities you leave out are DELETED. To add a channel to someone, send their existing identities plus the new one. · whatsapp/telegram authenticate the identifier themselve…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
identities * | array | COMPLETE list of how this person reaches the assistant. Omitted ones get deleted. |
level | string | Overrides the rung the role would give. |
name | string | |
personId | string | Omit to create. From list_assistant_contacts to edit. |
pin | string | Required if any identity is on a channel that cannot authenticate (web-widget). Omit on edit to keep the current one. |
role | string | Free business text, e.g. "ventas". Maps to a rung via audiencePolicy.roleLevels. |
upsert_assistant_contact
Register (or update) ONE identity of someone the assistant should recognise. Requires "audience:write". This is the single-channel shortcut. If the person reaches the assistant on more than one channel, or you are editing someone who already exists, use upsert_assistant_person instead — calling this twice for the same human creates TWO unrelated contacts that do not share name, role or PIN. · channel "whatsapp" + identifier = the phone → recognised with NO pin: WhatsApp authenticates the number, not us. Zero friction. · channel "web-widget" → the browser session proves nothing, so a `p…
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
channel * | string | whatsapp | web-widget | telegram | … |
identifier * | string | The phone, email or user id on that channel |
level | string | |
name | string | |
personId | string | Attach this identity to an existing person instead of creating a standalone contact. |
pin | string | |
role | string |
delete_assistant_person
Stop recognising a person EVERYWHERE — all their channels at once. Requires "audience:write". This is what you want when someone leaves the team: deleting just one identity leaves the others working, so the person keeps their rung through whatever channel you forgot. Takes effect on their next message.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
personId * | string |
delete_assistant_contact
Stop recognising ONE identity of someone. Takes effect on their next message. Requires "audience:write". Only removes that channel. If the person is reachable elsewhere they still get their rung there — to remove them entirely use delete_assistant_person.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
channel * | string | |
identifier * | string |
get_identity_audit
Who proved who they are, who tried and failed, and when — the assistant's identity log. Requires "audience:read". Read this BEFORE blaming the prompt for a wrong answer: an assistant that treats a client as a guest is usually an unrecognised contact, not a bad instruction. Failed attempts on a channel that needs a PIN mean the person never got past the door, so nothing downstream ran. Identifiers come back masked (last four) — this is an audit log, not a contact list.
| Parameter | Type | Description |
|---|---|---|
assistantId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
limit | integer | Most recent entries first. Defaults to the backend default. |
list_handoff_contacts
The humans an assistant can hand a customer off to. Requires "handoff:read". Check this whenever an assistant's prompt promises escalation: a promised handoff with no target here is the most common way "I'll pass you to a human" turns into silence.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
assistantId | string | Filter by assistant; omit for the whole account. |
upsert_handoff_contact
Add or update a handoff target: who receives the customer when the assistant lets go, and through which channel. Requires "handoff:write" (sensitive — this decides where customers get sent). A good handoff names WHO and WHAT HAPPENS NOW ("Ana, answers today") — configure the contact so the assistant can promise exactly that.
| Parameter | Type | Description |
|---|---|---|
contact * | object | { name, channel, identifier, assistantId?, ... } — the platform's handoff contact shape. |
delete_handoff_contact
Remove a handoff target. Requires "handoff:write". If it was the only one for an assistant that promises escalation, say so — deleting it silently breaks that promise.
| Parameter | Type | Description |
|---|---|---|
contactId * | string |
list_skills
Every skill this account can put on an assistant — built-ins plus the org's own, grouped by scope (system / organization / user / imported). This is the menu, not what any particular assistant has: for that read `skillIds` on the assistant and pass it to resolve_skills.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
organizationId | string | Defaults to the org the key resolves to. |
resolve_skills
Turn a list of skillIds into what they ACTUALLY produce: the concrete tools they add and the text they append to the system prompt. Nothing is created or changed. This is how you check the skill system is working. Two failures only show up here: a skillId that resolves to nothing (typo, or a skill the account cannot see — the assistant just silently lacks the capability), and skills whose prompt additions contradict each other. Read it together with try_assistant: this says what the assistant was GIVEN, try_assistant says what it DID with it.
| Parameter | Type | Description |
|---|---|---|
skillIds * | array | Usually the `skillIds` field of the assistant you are polishing. |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
organizationId | string |
search_knowledge
Search what the assistant knows and has written down — the knowledge base it answers from. When an assistant answers wrong, the cause is usually here, not in the prompt: search the exact wording the customer used and see what comes back. Nothing relevant means the answer was invented; something stale means it was remembered wrong. Both need a different fix than editing instructions.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search the way the customer asked, not the way the docs are titled. |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
limit | integer | |
organizationId | string | |
projectId | string | |
scope | string | personal | organization | project |
get_knowledge_stats
How much the assistant actually has to answer from: entries, chunks and embeddings. Check this before debugging a bad answer — an empty or barely-embedded knowledge base explains more wrong answers than any prompt ever will, and no amount of prompt editing fixes it.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
ingest_knowledge_text
Write something into the knowledge base as text — the fastest way to fix "the assistant does not know X". Requires "knowledge:write". Use this when the fix is a fact the assistant should have had (a price, a policy, an exception), not when the fix is HOW it should answer — that is the prompt. Confusing the two is why prompts grow into walls of facts that nobody can maintain. Costs embedding quota and takes effect once indexing finishes.
| Parameter | Type | Description |
|---|---|---|
text * | string | El contenido en sí. Escribilo como lo preguntaría un cliente, no como un título de manual. |
category | string | |
description | string | |
organizationId | string | |
projectId | string | |
scope | string | Quién lo va a poder leer. Con organization/project hace falta el id correspondiente. |
tags | array | |
title | string |
ingest_knowledge_url
Pull one or more web pages into the knowledge base. Requires "knowledge:write". Pass `urls` for a batch instead of calling this once per page. What gets stored is the page as it is TODAY: this is a copy, not a subscription — if the page changes, re-ingest it or the assistant keeps answering from the old version without any sign that it is stale.
| Parameter | Type | Description |
|---|---|---|
category | string | |
description | string | |
organizationId | string | |
projectId | string | |
scope | string | Quién lo va a poder leer. Con organization/project hace falta el id correspondiente. |
tags | array | |
title | string | |
url | string | Una sola página. |
urls | array | Varias de una — preferí esto antes que llamar la tool en loop. |
ingest_knowledge_github
Ingest a GitHub repository into the knowledge base. Requires "knowledge:write". Narrow it with `includePatterns`/`excludePatterns` before running: a whole repo is mostly lockfiles, builds and vendored code, and every one of those files costs embedding quota and dilutes retrieval — the assistant ends up answering from a minified bundle instead of the docs.
| Parameter | Type | Description |
|---|---|---|
repoUrl * | string | |
category | string | |
description | string | |
excludePatterns | array | |
includePatterns | array | ej: ["docs/**", "*.md"] — empezá acotado. |
organizationId | string | |
projectId | string | |
scope | string | Quién lo va a poder leer. Con organization/project hace falta el id correspondiente. |
tags | array | |
title | string |
list_knowledge_entries
What is actually in the knowledge base, entry by entry. Requires "knowledge:read". Use it before ingesting to avoid loading the same thing twice: duplicated entries do not make the assistant surer, they split retrieval between two near-identical chunks and make it answer from whichever happens to rank higher.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
limit | integer | |
organizationId | string | |
projectId | string | |
scope | string |
delete_knowledge_entry
Remove an entry and its chunks from the knowledge base. Requires "knowledge:write". This is the fix for an assistant that confidently answers something outdated: the stale entry has to LEAVE, because adding the correct version next to it leaves both in play and retrieval can still pick the old one.
| Parameter | Type | Description |
|---|---|---|
entryId * | string |
estimate_knowledge_ingest
Price an ingest BEFORE doing it: estimated tokens, chunks, and whether it fits the plan's embedding quota. Creates nothing, spends nothing. Use it before any bulk ingest (a repo, a site, a long document) — "how much will this cost and does it fit" is a question the human should get answered before the quota is gone, not after.
| Parameter | Type | Description |
|---|---|---|
sourceType * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
fileSizeBytes | number | For sourceType "document". |
repoUrl | string | For sourceType "github". |
text | string | For sourceType "text". |
url | string | For sourceType "url". |
get_knowledge_entry
One knowledge entry in full: source, training status, whether it is vectorized. Requires "knowledge:read".
| Parameter | Type | Description |
|---|---|---|
entryId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
update_knowledge_entry
Patch a knowledge entry's metadata (title, description, category, tags). Requires "knowledge:write". This edits how the entry is catalogued, not its content — stale CONTENT needs delete + re-ingest, because the chunks already embedded do not change.
| Parameter | Type | Description |
|---|---|---|
entryId * | string | |
updates * | object |
ingest_knowledge_document
Embed an ALREADY-UPLOADED document (by its documentId) into the knowledge base. Requires "knowledge:write". Uploading the file itself happens in the app; this triggers the embedding and creates the entry. Spends embedding quota — estimate_knowledge_ingest with the file size answers whether it fits first.
| Parameter | Type | Description |
|---|---|---|
documentId * | string | |
category | string | |
description | string | |
organizationId | string | |
projectId | string | |
scope | string | Quién lo va a poder leer. Con organization/project hace falta el id correspondiente. |
tags | array | |
title | string |
ingest_knowledge_image
Ingest an image into the knowledge base: vision describes it and the description gets embedded, so the assistant can answer questions about what is IN the image. Requires "knowledge:write". Pass imageUrl or imageBase64 (or `images` for a batch). `context` tells vision what matters in the picture ("this is our price list") — without it the description is generic and retrieval suffers.
| Parameter | Type | Description |
|---|---|---|
category | string | |
context | string | What matters in the image — steers the vision description. |
description | string | |
imageBase64 | string | |
imageUrl | string | |
images | array | Batch: [{ imageUrl | imageBase64, title?, context? }, ...] |
mimeType | string | |
organizationId | string | |
projectId | string | |
scope | string | Quién lo va a poder leer. Con organization/project hace falta el id correspondiente. |
tags | array | |
title | string |
list_tasks
The work items in a scope: personal, project or organization. Filter before reading everything. Without `account`, it reads EVERY account of the keyring and returns the union, each row tagged with its `account` (and `failed` for any account that did not answer). Pass `account` to read just one.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
limit | integer | Default 60. |
organizationId | string | |
priority | string | |
projectId | string | |
status | string |
get_task
One task in full, with its assignee and history.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_task
Create a work item. Counts against the plan's task limit. `scope` decides who sees it and it is NOT a label: "project" needs `projectId` and "organization" needs `organizationId`, and the backend checks you actually belong there — a task created in the wrong scope is invisible to the people who needed it.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
assigneeId | string | |
assigneeType | string | Who the assignee is. Defaults to "user" when assigneeId is set. |
description | string | |
dueDate | string | ISO date. |
organizationId | string | Required when scope is "organization". |
priority | string | Default medium. |
projectId | string | Required when scope is "project". |
scope | string | Default personal. |
status | string | Default todo. |
tags | array |
update_task
Change a task — status, priority, assignee, anything. Only the creator can.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
assigneeId | string | |
assigneeType | string | |
description | string | |
dueDate | string | |
priority | string | |
status | string | |
tags | array | |
title | string |
delete_task
Delete a task. Only the creator can. Prefer status "done" over deleting — deleting loses the trail.
| Parameter | Type | Description |
|---|---|---|
taskId * | string |
get_tasks_summary
Deterministic snapshot of the key owner's tasks: counts by status, overdue, due within 48h, stuck in review, and 7-day throughput. This is the JSON a signed report (or the task-manager agent) writes ON TOP OF — read it before opining about workload.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
get_tasks_analytics
Task analytics over time: creation/completion trends and distribution. The summary (get_tasks_summary) says how things stand NOW; this says how they have been moving.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_email_campaigns
Email campaigns of the account, with status. Requires "email:read" (sensitive scope).
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
create_email_campaign_draft
Create an email campaign as a DRAFT. Requires "email:write" (sensitive scope). Sending is a human act in the dashboard — there is no send-by-API-key, on purpose. Write the draft, tell the human where to review it, and stop there.
| Parameter | Type | Description |
|---|---|---|
campaign * | object | { name, subject, content, ... } — the platform's campaign shape. |
create_skill
Create a reusable skill. Requires the skills scope. WHEN TO REACH FOR THIS instead of the alternatives — they are not interchangeable: · A SKILL is a behaviour with the tools it needs, reusable across assistants. Use it when more than one assistant should behave the same way, or when the behaviour has its own tool set. · A CUSTOM TOOL (create_custom_tool) is a single capability — one call that does one thing. Use it when what is missing is an action, not a way of behaving. · The PROMPT is for what makes THIS assistant different from every other one. Everything you put in the prompt that…
| Parameter | Type | Description |
|---|---|---|
category * | string | |
description * | string | Qué hace y cuándo se activa. Es lo que el modelo lee para decidir usarla. |
displayName * | string | |
organizationId | string | Compartila con la organización en vez de dejarla personal. |
prompt | string | Las instrucciones de la conducta en sí. |
systemPromptSnippet | string | Alias de prompt: el nombre con que lo devuelve get_skill. |
tools | array | Las tools que esta skill necesita para existir. |
update_skill
Edit a custom skill. Only its owner can. Immutable fields are dropped silently. Editing a skill changes it for EVERY assistant that lists it — that is the point of a skill, and also the risk: check who uses it before rewording what it does.
| Parameter | Type | Description |
|---|---|---|
skillId * | string | |
category | string | |
description | string | |
displayName | string | |
prompt | string | El cuerpo de la skill (get_skill lo muestra como systemPromptSnippet). |
systemPromptSnippet | string | Alias de prompt: el nombre con que lo devuelve get_skill. |
tools | array |
delete_skill
Delete a custom skill. Only its owner can. Any assistant that listed it silently loses that behaviour — it does not error, it just stops doing the thing. Prefer toggle_skill if you only want to stop it for now.
| Parameter | Type | Description |
|---|---|---|
skillId * | string |
toggle_skill
Turn a skill on or off without deleting it — the reversible way to take a behaviour out of circulation while you work out whether it was the cause of something.
| Parameter | Type | Description |
|---|---|---|
skillId * | string | |
enabled | boolean |
get_skill
One skill in full: its prompt, the tools it carries and where it came from.
| Parameter | Type | Description |
|---|---|---|
skillId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_skill_packs
Curated skill packs: ready-made bundles for common business types (appointments, e-commerce, CRM...). Check here before hand-writing a skill an existing pack already covers.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_builtin_skills
The platform's built-in skills — registered at startup, read-only. What list_skills shows under "system". Built-ins cannot be edited: to adjust one, create a custom skill alongside it.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
export_skill
Export a skill as portable JSON — the way a skill travels between accounts (pair with import_skills). The export carries the behaviour, not the assistants that use it.
| Parameter | Type | Description |
|---|---|---|
skillId * | string | |
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
import_skills
Import skills from an export payload (see export_skill). Imported skills arrive as drafts of this account — they do nothing until an assistant lists them.
| Parameter | Type | Description |
|---|---|---|
payload * | object | The JSON produced by export_skill (or a compatible pack). |
list_projects
The organization's projects (the org → project tenancy structure). Requires "projects:read". Read-only by design: creating or reorganizing projects is done logged in, not by integration. Use the ids here for the projectId filters of tasks, inventory and knowledge.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
list_scopes
Every permission the platform defines, in one call: agent capabilities (what an ASSISTANT may do inside a chat), API key scopes (what a PROGRAM from outside may do), and the audience rungs (guest/contact/staff/owner). Read this instead of guessing a scope name. The three are different systems that people mix up constantly: giving an API key "audience:write" does not give the ASSISTANT any new capability, and raising someone to "staff" does not grant the assistant permission to do anything it was not already allowed to do.
| Parameter | Type | Description |
|---|---|---|
account | string | Read this from another account of the keyring, just for this call — para comparar dos cuentas sin cambiar de contexto. Omitilo y contesta la activa. No cambia la cuenta activa: use_account es lo que… |
wizard_alta_pyme_whatsapp
Wizard vertical "whatsapp-pymes": sin `answers` devuelve las preguntas del alta de una pyme; con `answers` devuelve el PLAN ordenado de llamadas (create_assistant, ingest_knowledge_text, upsert_handoff_contact, try_assistant, publish_assistant, conexión del número, cartera) o lista lo que falta. No escribe nada: cada paso lo ejecutás vos con su tool, y publicar va siempre después de probar.
| Parameter | Type | Description |
|---|---|---|
answers | object | Respuestas por id de pregunta. |
assistantId | string | Si el asistente ya existe, para completar los args. |
manage_receivables
Receivables (money owed to the account owner): summary, receivable projects, receivables and payments. Requires "receivables:read"/"receivables:write" — sensitive scopes: this is the owner's money and their clients' balances. NOTE: these "projects" are receivable groupings, unrelated to org projects. Actions and what each needs: · summary — nothing. The state of what is owed, in one read. Start here. · list_projects — nothing · create_project — data:{name,...} · update_project — targetId + data · delete_project — targetId · list — filters? in data · create — data:{descri…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | The body for create/update/record_payment; filters for list. |
targetId | string | The receivable/project id, for update/delete/record_payment. |
manage_loops
Loops: recurring autonomous work items an agent claims and reports on, iteration by iteration. This is the claim/submit machinery for a WORKER agent — most sessions only need list/get to see state. Actions: · list — nothing · get — targetId · iterations — targetId (the run history) · create — data:{title, spec, ...} · patch — targetId + data (pause/resume/edit) · claim_next — targetId: atomically claims the next pending iteration (you are now responsible for it) · submit_result — targetId + iterationId + data:{result...}: closes the claimed iteration. Claim only what you…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | |
iterationId | string | For submit_result. |
targetId | string | The loop id. |
knowledge_maintenance
Under-the-hood maintenance of the knowledge base — for diagnosing retrieval, not for everyday ingest (that is ingest_knowledge_*). Requires the knowledge scopes. Actions: · chunks — entryId (+ data:{limit?, offset?}): the actual vector chunks of an entry. Read them when retrieval returns something odd — the chunk boundaries usually explain it. · retrain — entryId: re-embed one entry (spends embedding quota). The fix when an entry was ingested before a config change. · fingerprint — nothing: which embedding model/config the account's vectors were built with. · clear_fingerprint  
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | |
entryId | string |
skill_collections
Skill collections: named groups of skills so a whole capability set is assigned as one thing. Actions: list — nothing · create — data:{name, skillIds, ...} · update — targetId + data · delete — targetId (the skills survive; only the grouping goes).
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | |
targetId | string |
user_memory
The structured memory files the platform keeps ABOUT the user (who they are, preferences, business) — what the Copilot has learned. Requires "memory:read"/"memory:write" (sensitive). Actions: list — nothing · read — filename · update — filename + data:{content, summary?} (full overwrite, not a patch: read first, edit, write back) · export — nothing (all files as one JSON). Write here when you learn something DURABLE about the human — not facts for customers (knowledge base) nor things they asked you to save (agent_workspace). See guides/memoria-y-archivos.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | For update: { content, summary? }. |
filename | string | The memory file name, from list. |
agent_workspace
The user's personal workspace of notes and saved items: free-form, foldered, searchable. Requires "memory:read"/"memory:write" (sensitive). This is THEIR notebook — write here when the human says "save this for me". Actions: list — data:{folderId?...} · get — targetId · save — data:{name (required), content, type?, folderId?...} · update — targetId + data · delete — targetId · search — data:{q} · recent — nothing · starred — nothing · stats — nothing.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | |
targetId | string | The item id. |
assistant_files
Each assistant's PRIVATE filesystem: what that agent wrote down while working (notes, drafts, traces), organized in layers. Owner-only, per assistant. Requires "files:read"/"files:write" (sensitive). Actions (all need assistantId): stats — nothing else · list — data:{layer?, parentId?} · search — data:{q} · read — nodeId · write — data:{name, content, layer?, parentId?...} · update — nodeId + data · delete — nodeId. Deleting changes what the agent remembers of its own work — it does not error, it just forgets.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
assistantId * | string | |
data | object | |
nodeId | string |
workflow_templates
Reusable workflow templates (squads are templates with kind "squad"). Actions: list — data:{kind?} to filter · get — targetId · create — data (the template definition; it stores model TIERS, never concrete model ids — tiers resolve at materialize time). To MATERIALIZE a template into real assistants use create_squad_from_template (it has dryRun preview); this router deliberately does not duplicate that.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | object | |
targetId | string |