mcp

v0.12.1
@cognitiondesk/mcp Checked 3 hours ago Published 16 days ago

MCP 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.

ParameterTypeDescription
accountstringRead 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…

ParameterTypeDescription
name *stringAccount name, as listed by get_connection_status. Never a key.

list_assistants

List all assistants owned by the API key.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
assistantId *string
accountstringRead 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.

ParameterTypeDescription
assistantData *object

update_assistant

Patch fields on an existing assistant.

ParameterTypeDescription
assistantId *string
updates *object

delete_assistant

Delete an assistant permanently.

ParameterTypeDescription
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…

ParameterTypeDescription
assistantId *string
casosarrayOnly these case ids.
dryRunbooleanDefault true. false = run for real and spend credits.
generalesbooleanfalse = skip the 7 general cases.
identidadesobjectPer audience (staff|contact|owner): who to identify as and the PIN. Never logged.
timeoutSecintegerDefault: 5 min — a run is many chat calls.
versionstringDefault "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…

ParameterTypeDescription
assistantId *string
messagestringOne-off question. Ignored when `messages` is passed.
messagesarrayFull exchange, to test memory and follow-ups.
modelstringOverride the assistant's model — leave empty to test what customers actually get.
temperaturenumber
timeoutSecintegerHow 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.
versionstringDefault "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…

ParameterTypeDescription
assistantId *string
motivostringWhy the override (recorded with who and when).
overridebooleanOnly 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.

ParameterTypeDescription
assistantId *string
accountstringRead 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…

ParameterTypeDescription
assistantId *string
accountstringRead 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…
audiencestringWho is talking. Default owner.
platformstringChannel 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…

ParameterTypeDescription
assistantId *string
accountstringRead 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…
daysintegerUsage 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…

ParameterTypeDescription
antesId *stringAssistant as it is today.
conversaciones *array
despuesId *stringNever-published copy that has the new tool.
toolNueva *stringExact tool name, as the model sees it.
timeoutSecinteger
versionstringDefault "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.

ParameterTypeDescription
assistantId *string
versionId *stringFrom list_assistant_versions.

assign_workflow_to_assistant

Assign (or unassign) a workflow to an assistant.

ParameterTypeDescription
assistantId *string
workflowId *string
enabledboolean

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.

ParameterTypeDescription
assistantId *string
accountstringRead 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.

ParameterTypeDescription
access *objectThe complete policy object, typically { audiencePolicy: { roleLevels: {...}, ... } }.
assistantId *string

list_workflows

List workflows, optionally filtered by category/tags/enabled.

ParameterTypeDescription
accountstringRead 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…
categorystring
enabledboolean
tagsstringcomma-separated tags

get_workflow

Get a single workflow by id.

ParameterTypeDescription
workflowId *string
accountstringRead 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).

ParameterTypeDescription
edges *array
name *string
nodes *array
categorystring
descriptionstring
tagsarray

update_workflow

Update a workflow draft (name/description/nodes/edges/category/tags — send only the fields to change).

ParameterTypeDescription
updates *object
workflowId *string

run_workflow

Run/test a workflow with an optional input payload.

ParameterTypeDescription
workflowId *string
inputobject

publish_workflow

Publish the current draft of a workflow as an immutable version.

ParameterTypeDescription
workflowId *string

list_workflow_versions

List published versions of a workflow.

ParameterTypeDescription
workflowId *string
accountstringRead 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.

ParameterTypeDescription
workflowId *string
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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…
statusstring

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.…

ParameterTypeDescription
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 *stringwho proposes — your signature, shown as "proposed by <name>"
spec *object{cron} | {every_ms} | {at}
title *stringshort human title, shown on the approval card — say what runs and how often, in plain language
agentModelstring
projectIdstringscope this schedule to a project, if the tenant uses projects
timezonestringIANA tz of the TENANT (e.g. America/Argentina/Cordoba); default UTC
userIdstringowner 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.

ParameterTypeDescription
action *string
scheduleId *string

list_schedule_runs

Run history of a schedule: status, lateness (said, not hidden), what each run produced.

ParameterTypeDescription
scheduleId *string
accountstringRead 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).

ParameterTypeDescription
accountstringRead 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…
typestring

get_report

Full report by id: signed summary plus the deterministic source it was written over (auditable).

ParameterTypeDescription
reportId *string
accountstringRead 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).

ParameterTypeDescription
goal *stringOne or two sentences describing what the squad should accomplish.
namestringSquad name; defaults to a name derived from the goal.
rolesarrayRole keys to keep; defaults to all roles the planner proposes.
saveTemplatebooleanSave the squad as a reusable org template.
tiersobjectMap of roleKey -> model tier; defaults to the tier the planner proposes per role.
topologystringDefaults to the planner's proposed topology.

list_squad_templates

List reusable squad templates available to this organization.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
name *string
templateId *string
dryRunboolean
overridesobject{ excludeRoleKeys?, tierOverrides?, counts? }
tierMapobject

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.

ParameterTypeDescription
sessionId *string
accountstringRead 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.

ParameterTypeDescription
sessionId *string

get_usage

Get the current plan and usage/quota snapshot for the API key owner.

ParameterTypeDescription
accountstringRead 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).

ParameterTypeDescription
accountstringRead 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…
periodstringe.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.

ParameterTypeDescription
actionType *string
accountstringRead 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…
metadataobject

get_available_plans

List available billing plans and their limits.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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…
categorystring
limitnumbermax 200, default 50
projectIdstring
searchstring
typestring

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[] }.

ParameterTypeDescription
items *arrayItems using inventory field names (name, sku, price, ...)
dryRunbooleanValidate only — nothing is written
projectIdstringScope the imported items to a project
upsertBySkubooleanfalse = 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 } }).

ParameterTypeDescription
importId *string
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
sourceId *string
dryRunboolean

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.

ParameterTypeDescription
payloadobjectSeed 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
prompt *stringWhat to generate. Be concrete: subject, style, framing.
optionsobjectPlatform 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.

ParameterTypeDescription
accountstringRead 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".

ParameterTypeDescription
clientName *string
allowedAssistantIdsarray
expiresInDaysnumber
maxUsagenumber
scopesarray

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.

ParameterTypeDescription
keyId *string
allowedAssistantIdsarray
clientNamestring
scopesarray

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".

ParameterTypeDescription
keyId *string

delete_api_key

Permanently delete an API key. Requires "apikeys:manage".

ParameterTypeDescription
keyId *string

get_api_key_stats

Get usage stats for a single API key. Requires "apikeys:manage".

ParameterTypeDescription
keyId *string
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
toolId *string
accountstringRead 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…

ParameterTypeDescription
definition *object

update_custom_tool

Patch a custom tool (displayName, description, config, inputSchema, enabled, minAudience…). Requires "tools:write". The name is immutable.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
accountstringRead 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…
organizationIdstring

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…

ParameterTypeDescription
allowedDomains *arrayhosts allowed to embed it, e.g. ["hub.cognitiondesk.com"] or ["*.mi-tienda.com"]. Required — there is no "any domain".
assistantId *stringthe assistant this widget talks to — must be owned by the key owner (list_assistants)
botNamestringthe name the visitor sees in the bubble
descriptionstring
namestringwhat to call it in the panel, e.g. "Development Hub"
organizationIdstring
positionstring'bottom-right' | 'bottom-left'
primaryColorstringhex, e.g. "#2563eb" — take it from the brand, do not invent one
projectIdstring

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.

ParameterTypeDescription
widgetId *stringfrom list_channels
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
connectionId *stringfrom 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.

ParameterTypeDescription
accountstringRead 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…
connectionIdstringfrom list_social_connections; optional when there is exactly one YouTube channel
maxintegerhow 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.

ParameterTypeDescription
filePath *stringabsolute path to the video (.mp4, .mov, .webm, .mkv)
title *string
connectionIdstringoptional when there is exactly one YouTube channel
descriptionstring
languagestringBCP-47 of title and audio, e.g. "es"
privacyStatusstringdefault private
tagsarray
thumbnailPathstringabsolute 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.

ParameterTypeDescription
videoId *stringthe id (the part after youtu.be/)
connectionIdstringoptional when there is exactly one YouTube channel
descriptionstring
privacyStatusstring
tagsarray
thumbnailPathstringabsolute path to a .jpg/.png up to 2 MB
titlestring

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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
pageId *stringthe Meta page id from `available`
subscribeMessagingbooleandefault 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.

ParameterTypeDescription
accountstringRead 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…
connectionIdstringfrom list_facebook_pages; optional when there is exactly one Page
limitintegerpublished 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.

ParameterTypeDescription
accountstringRead 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…
connectionIdstringoptional when there is exactly one Page
daysintegerdefault 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…

ParameterTypeDescription
approvalIdstringREQUIRED 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
connectionIdstringoptional when there is exactly one Page
imageUrlstring
imagesarray2 to 10 photo URLs, in order: ONE multi-photo post (carousel). One URL = a normal photo post. Not with imageUrl or videoUrl
linkstringtext posts only
publishedbooleanfalse = hidden draft to test the path
scheduledAtstringISO date; omit to publish now
textstringthe post text (caption for photo/video)
videoUrlstring

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.

ParameterTypeDescription
postId *stringthe id from list_facebook_posts → scheduled, e.g. "<pageId>_<n>"
connectionIdstringoptional when there is exactly one Page
reasonstringwhy, 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.

ParameterTypeDescription
brand *stringthe brand the schedule publishes for, e.g. "mounaji-gaming"
platform *stringfacebook | instagram | linkedin …
approvalIdstringREQUIRED by the platform: the id from request_post_approval (destino social-piece with this brand/platform), approved by the human
imageUrlstring
linkstring
sourceobjectwhere it came from (planilla, cosecha, tablero) — for the trail
textstring
typestringdefault photo
videoUrlstring

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.

ParameterTypeDescription
destino *object
imageUrlstring
imagesarrayfacebook-post carousel: the same photo URLs, in the same order, you will pass to schedule_facebook_post
linkstring
notastringfor the human: where it comes from and why now
textstring
videoUrlstring

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.

ParameterTypeDescription
approvalId *string
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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…

ParameterTypeDescription
bufferMinutesinteger
defaultDurationMinutesinteger
enabledboolean
maxAdvanceBookingDaysinteger
minAdvanceMinutesinteger
serviceTypesarray
slotDurationMinutesintegergrid between offered start times
timezonestring
workingHoursobjectkeys: 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.

ParameterTypeDescription
accountstringRead 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…
endDatestringISO upper bound
limitinteger
startDatestringISO lower bound; default now
statusstringscheduled | confirmed | cancelled | completed

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…

ParameterTypeDescription
widgetId *stringfrom list_channels or get_web_widget
allowedDomainsarrayTHE 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.
avatarUrlstring
botEmojistring
botNamestringthe name the visitor sees in the bubble
descriptionstring
isActivebooleanfalse pauses the widget for everyone without deleting it
namestring
placeholderstring
positionstring'bottom-right' | 'bottom-left'
poweredByLabelstring
poweredByUrlstring
primaryColorstringhex — take it from the brand of the SITE the widget is embedded in, not from the platform
showPoweredBybooleanfalse hides the "Powered by" footer — a white-label storefront should not advertise the platform inside a business's own shop
statusTextstring
welcomeMessagestring

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…

ParameterTypeDescription
action *string
widgetId *stringfrom list_channels or get_web_widget
maxAudienceViaTokenstringthe ceiling a token can grant; required for set_cap, optional on rotate
revealbooleanrotate only: return the secret in the clear
saveTostringrotate 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.

ParameterTypeDescription
accountstringRead 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).

ParameterTypeDescription
assistantId *string
accountstringRead 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…

ParameterTypeDescription
assistantId *string
identities *arrayCOMPLETE list of how this person reaches the assistant. Omitted ones get deleted.
levelstringOverrides the rung the role would give.
namestring
personIdstringOmit to create. From list_assistant_contacts to edit.
pinstringRequired if any identity is on a channel that cannot authenticate (web-widget). Omit on edit to keep the current one.
rolestringFree 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…

ParameterTypeDescription
assistantId *string
channel *stringwhatsapp | web-widget | telegram | …
identifier *stringThe phone, email or user id on that channel
levelstring
namestring
personIdstringAttach this identity to an existing person instead of creating a standalone contact.
pinstring
rolestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
assistantId *string
accountstringRead 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…
limitintegerMost 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.

ParameterTypeDescription
accountstringRead 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…
assistantIdstringFilter 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
accountstringRead 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…
organizationIdstringDefaults 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.

ParameterTypeDescription
skillIds *arrayUsually the `skillIds` field of the assistant you are polishing.
accountstringRead 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…
organizationIdstring

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.

ParameterTypeDescription
query *stringSearch the way the customer asked, not the way the docs are titled.
accountstringRead 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…
limitinteger
organizationIdstring
projectIdstring
scopestringpersonal | 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
text *stringEl contenido en sí. Escribilo como lo preguntaría un cliente, no como un título de manual.
categorystring
descriptionstring
organizationIdstring
projectIdstring
scopestringQuién lo va a poder leer. Con organization/project hace falta el id correspondiente.
tagsarray
titlestring

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.

ParameterTypeDescription
categorystring
descriptionstring
organizationIdstring
projectIdstring
scopestringQuién lo va a poder leer. Con organization/project hace falta el id correspondiente.
tagsarray
titlestring
urlstringUna sola página.
urlsarrayVarias 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.

ParameterTypeDescription
repoUrl *string
categorystring
descriptionstring
excludePatternsarray
includePatternsarrayej: ["docs/**", "*.md"] — empezá acotado.
organizationIdstring
projectIdstring
scopestringQuién lo va a poder leer. Con organization/project hace falta el id correspondiente.
tagsarray
titlestring

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.

ParameterTypeDescription
accountstringRead 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…
limitinteger
organizationIdstring
projectIdstring
scopestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
sourceType *string
accountstringRead 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…
fileSizeBytesnumberFor sourceType "document".
repoUrlstringFor sourceType "github".
textstringFor sourceType "text".
urlstringFor sourceType "url".

get_knowledge_entry

One knowledge entry in full: source, training status, whether it is vectorized. Requires "knowledge:read".

ParameterTypeDescription
entryId *string
accountstringRead 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.

ParameterTypeDescription
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.

ParameterTypeDescription
documentId *string
categorystring
descriptionstring
organizationIdstring
projectIdstring
scopestringQuién lo va a poder leer. Con organization/project hace falta el id correspondiente.
tagsarray
titlestring

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.

ParameterTypeDescription
categorystring
contextstringWhat matters in the image — steers the vision description.
descriptionstring
imageBase64string
imageUrlstring
imagesarrayBatch: [{ imageUrl | imageBase64, title?, context? }, ...]
mimeTypestring
organizationIdstring
projectIdstring
scopestringQuién lo va a poder leer. Con organization/project hace falta el id correspondiente.
tagsarray
titlestring

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.

ParameterTypeDescription
accountstringRead 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…
limitintegerDefault 60.
organizationIdstring
prioritystring
projectIdstring
statusstring

get_task

One task in full, with its assignee and history.

ParameterTypeDescription
taskId *string
accountstringRead 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.

ParameterTypeDescription
title *string
assigneeIdstring
assigneeTypestringWho the assignee is. Defaults to "user" when assigneeId is set.
descriptionstring
dueDatestringISO date.
organizationIdstringRequired when scope is "organization".
prioritystringDefault medium.
projectIdstringRequired when scope is "project".
scopestringDefault personal.
statusstringDefault todo.
tagsarray

update_task

Change a task — status, priority, assignee, anything. Only the creator can.

ParameterTypeDescription
taskId *string
assigneeIdstring
assigneeTypestring
descriptionstring
dueDatestring
prioritystring
statusstring
tagsarray
titlestring

delete_task

Delete a task. Only the creator can. Prefer status "done" over deleting — deleting loses the trail.

ParameterTypeDescription
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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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).

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
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…

ParameterTypeDescription
category *string
description *stringQué hace y cuándo se activa. Es lo que el modelo lee para decidir usarla.
displayName *string
organizationIdstringCompartila con la organización en vez de dejarla personal.
promptstringLas instrucciones de la conducta en sí.
systemPromptSnippetstringAlias de prompt: el nombre con que lo devuelve get_skill.
toolsarrayLas 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.

ParameterTypeDescription
skillId *string
categorystring
descriptionstring
displayNamestring
promptstringEl cuerpo de la skill (get_skill lo muestra como systemPromptSnippet).
systemPromptSnippetstringAlias de prompt: el nombre con que lo devuelve get_skill.
toolsarray

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.

ParameterTypeDescription
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.

ParameterTypeDescription
skillId *string
enabledboolean

get_skill

One skill in full: its prompt, the tools it carries and where it came from.

ParameterTypeDescription
skillId *string
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
skillId *string
accountstringRead 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.

ParameterTypeDescription
payload *objectThe 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
accountstringRead 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.

ParameterTypeDescription
answersobjectRespuestas por id de pregunta.
assistantIdstringSi 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…

ParameterTypeDescription
action *string
dataobjectThe body for create/update/record_payment; filters for list.
targetIdstringThe 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…

ParameterTypeDescription
action *string
dataobject
iterationIdstringFor submit_result.
targetIdstringThe 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  

ParameterTypeDescription
action *string
dataobject
entryIdstring

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).

ParameterTypeDescription
action *string
dataobject
targetIdstring

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.

ParameterTypeDescription
action *string
dataobjectFor update: { content, summary? }.
filenamestringThe 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.

ParameterTypeDescription
action *string
dataobject
targetIdstringThe 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.

ParameterTypeDescription
action *string
assistantId *string
dataobject
nodeIdstring

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.

ParameterTypeDescription
action *string
dataobject
targetIdstring