MCP tools reference
Every PandaDesk MCP tool: what it does, its arguments, plan and permissions. Generated from the live server.
PandaDesk's MCP server has 84 tools. This page is generated from the server itself, so it always matches what your agent sees. To connect an agent, see Connect your AI agent.
Connection
Endpoint:
https://pandadesk.app/api/mcp. Streamable HTTP, stateless JSON responses.Sign-in: OAuth 2.1 with PKCE and dynamic client registration, as the MCP authorization spec describes. Agents discover it from the endpoint's 401 (
WWW-Authenticate→/.well-known/oauth-protected-resource) and open your browser to approve. Access tokens last an hour and renew with a refresh token.Tokens instead:
Authorization: Bearer pda_…, a personal token from Connect AI agent → Use a token instead, for the CLI and scripts. It covers every workspace you belong to. Olderpd_…workspace tokens still work for their one workspace.Choosing a workspace: tools that act on a workspace take an optional
workspaceargument (its slug fromlist_workspaces). You only need it when your token covers more than one workspace.Plans: Setup tools work on every plan, including the trial. Inbox tools need the Pro plan.
Permissions: tools marked admin need you to be an admin of that workspace, as in the dashboard.
Errors come back as tool results with
isError: trueand a message that says how to fix the problem.
Prompts
Guided workflows any MCP client can offer. In Claude Code they're /mcp__pandadesk__<name>.
setup_pandadeskTake a website from nothing to a live AI support chat: workspace, knowledge, look, embed, install check, test questions. Arguments:website(optional),workspace(optional).triage_inboxGo through conversations waiting for a human, answer what the knowledge covers, and flag the rest. Arguments:workspace(optional).fill_knowledge_gapsTurn questions the AI couldn't answer into pinned answers or articles. Arguments:workspace(optional).
Workspaces, setup and install
list_workspaces
List workspaces. The PandaDesk workspaces (one per website/app) this token can use, with plan, setup progress, whether the chat is live, and the public key. Start here.
Setup (all plans) · account · read-only · CLI: npx pandadesk list_workspaces
No arguments.
create_workspace
Create a workspace. Create a new workspace (one per website or app): its own knowledge, chat, inbox and help center. Optionally pass the website so it's allowed and crawled right away. Needs a personal sign-in, not a workspace token.
Setup (all plans) · account · CLI: npx pandadesk create_workspace
| Argument | Type | Required | Description |
|---|---|---|---|
name |
string | yes | The product or company name customers see |
website |
string | e.g. https://example.com: allowed for the chat and imported as knowledge | |
sampleArticles |
boolean | Add placeholder help articles as drafts (the AI doesn't use drafts) Default: false. |
get_setup_status
Setup status. Where a workspace is in setup (basics, knowledge, a first AI answer, allowed website, chat live), the plan, and what to do next.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_setup_status
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_workspace
Rename a workspace. Change the workspace's name (shown in the chat header and help center unless overridden).
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_workspace
| Argument | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
allow_website
Allow a website. Let the chat run on a website origin (scheme + host + port, e.g. https://app.example.com or http://localhost:3000). The chat refuses to load anywhere else. example.com also covers www.example.com.
Setup (all plans) · workspace · admin · CLI: npx pandadesk allow_website
| Argument | Type | Required | Description |
|---|---|---|---|
origin |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
remove_website
Remove an allowed website. Stop the chat from loading on a website origin.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk remove_website
| Argument | Type | Required | Description |
|---|---|---|---|
origin |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_security
Security settings. Signed-identity mode (report_only shows unsigned names as Unverified; enforced drops them), the most AI answers this workspace gives per day (default 500; 0 turns AI answers off, so every question goes to the team), and the countries the chat is turned off for (two-letter codes like PK; the messenger doesn't appear there; [] clears the list).
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_security
| Argument | Type | Required | Description |
|---|---|---|---|
identityMode |
report_only | enforced |
||
aiDailyLimit |
integer (0–1000000) | ||
blockedCountries |
string[] | ||
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_identity_secret
Get the identity secret. The secret your backend uses to sign who is logged in (see get_embed_code → signedInUsers). Put it in the server's environment as PANDADESK_IDENTITY_SECRET; never ship it to the browser or commit it. Not the same as the signing secret (get_signing_secret), which verifies requests PandaDesk sends you.
Setup (all plans) · workspace · admin · CLI: npx pandadesk get_identity_secret
| Argument | Type | Required | Description |
|---|---|---|---|
rotate |
boolean | Issue a new secret; the old one stops verifying immediately Default: false. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_signing_secret
Get the signing secret. The secret that proves a request came from PandaDesk: every lookup call and webhook carries a PandaDesk-Signature header made with it. Put it in your server's environment as PANDADESK_SIGNING_SECRET and check the header before answering. It is not the identity secret. Returns the exact signed strings and a verify function for lookups and for webhooks.
Setup (all plans) · workspace · admin · CLI: npx pandadesk get_signing_secret
| Argument | Type | Required | Description |
|---|---|---|---|
rotate |
boolean | Issue a new secret; requests signed with the old one fail your checks at once Default: false. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_appearance
Get the chat's look. Brand color, greeting, bot name and avatar, header text, starter questions, and the bubble (icon, shape, label, corner).
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_appearance
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_appearance
Customize the chat. Change any part of the chat's look; fields you leave out stay as they are. Text on the brand color turns dark or light automatically. Sites with the snippet pick changes up on their next page load.
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_appearance
| Argument | Type | Required | Description |
|---|---|---|---|
brandColor |
string | Hex color for the bubble, header and the visitor's messages, e.g. #4f46e5 | |
greeting |
string | The first message visitors see | |
botName |
string | Shown above AI answers. Empty string resets to the workspace name. | |
headerTitle |
string | Chat header title. Empty string resets to the workspace name. | |
headerSubtitle |
string | Line under the title. Replaced after a hand-off and outside business hours. | |
starterQuestions |
string[] | Up to 6 buttons under the greeting; replaces the current list. | |
launcherIcon |
chat | message | help | sparkles | headset | image |
'image' needs set_chat_image kind launcher first. | |
launcherShape |
circle | rounded |
Bubble shape: circle or rounded square | |
launcherLabel |
string | Text pill next to the bubble, e.g. "Need help?". Empty string removes it. | |
position |
right | left |
Bottom corner for the bubble | |
offsetX |
integer (0–120) | Pixels from the side of the page | |
offsetY |
integer (0–120) | Pixels from the bottom of the page | |
showBranding |
boolean | "Powered by PandaDesk" under the chat and help center. On by default; any paid plan can turn it off. | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_chat_image
Set the avatar or bubble image. Use an image from a public https URL as the bot avatar (kind avatar) or the chat bubble icon (kind launcher, which also switches the bubble to it). PNG, JPEG, WebP or GIF up to 512 KB; SVG isn't accepted. Pass remove: true to go back to the default.
Setup (all plans) · workspace · admin · CLI: npx pandadesk set_chat_image
| Argument | Type | Required | Description |
|---|---|---|---|
kind |
avatar | launcher |
yes | |
url |
string | ||
remove |
boolean | Default: false. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_embed_code
Get the embed code. The script tag to add the chat to a site, ready-made for HTML, Next.js, React, WordPress, Shopify and site builders, plus optional signed-in-user code for the browser and the server (Node and Python).
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_embed_code
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
check_install
Check the chat is live. Fetch a page of the site and check the PandaDesk snippet is there with this workspace's key, the origin is allowed, and whether the chat has actually loaded for a visitor on an allowed site. Run after deploying.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk check_install
| Argument | Type | Required | Description |
|---|---|---|---|
url |
string | yes | A public page of the site, e.g. https://example.com/ |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_teammates
List teammates. People with access to this workspace's inbox and their role (admin or agent). The owner pays for the workspace and is always an admin. Admins also see invites that haven't been accepted yet.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_teammates
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
invite_teammate
Invite a teammate. Email someone a link to join this workspace's team. It works whether or not they have a PandaDesk account, for 7 days, once. Agents work the inbox and knowledge; admins can also change settings and manage the team. An open invite holds a seat.
Setup (all plans) · workspace · admin · CLI: npx pandadesk invite_teammate
| Argument | Type | Required | Description |
|---|---|---|---|
email |
string | yes | |
role |
admin | agent |
"agent" (default) or "admin" Default: "agent". |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_teammate_role
Change a teammate's role. Make a teammate an "admin" or an "agent". The workspace owner is always an admin, and a workspace always keeps at least one admin.
Setup (all plans) · workspace · admin · CLI: npx pandadesk set_teammate_role
| Argument | Type | Required | Description |
|---|---|---|---|
email |
string | yes | |
role |
admin | agent |
yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
Knowledge
get_knowledge_status
Knowledge status. Show what the AI can answer from and how imports are going: website sources (status, pages, last sync, errors), file and text documents by status, failed documents with their errors, articles and pinned answers, and how many passages are searchable and embedded for search by meaning. Call it after add_website / add_text / add_file_from_url until nothing is queued or processing.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_knowledge_status
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
add_website
Add a website. Crawl a docs site, help center or marketing site (or a sitemap URL) so the AI can answer from its pages. Pages under the URL's path on the same domain are imported in the background, robots.txt is respected, and the site is re-synced daily. Returns the source id; check progress with get_knowledge_status.
Setup (all plans) · workspace · admin · CLI: npx pandadesk add_website
| Argument | Type | Required | Description |
|---|---|---|---|
url |
string | yes | e.g. https://docs.example.com or https://example.com/sitemap.xml |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
resync_website
Re-sync a website. Crawl a website source again now (it also re-syncs daily on its own). Use after the site's content changed.
Setup (all plans) · workspace · admin · CLI: npx pandadesk resync_website
| Argument | Type | Required | Description |
|---|---|---|---|
source_id |
string | yes | From get_knowledge_status |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
remove_source
Remove a source. Remove a website source (or the team-replies source) and every page imported from it. The AI stops using them at once.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk remove_source
| Argument | Type | Required | Description |
|---|---|---|---|
source_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
add_text
Add text knowledge. Add a document from text you already have (Markdown or plain text): an FAQ, a policy, product notes, a README. It counts as one file toward the plan and becomes searchable in a few seconds. For a hosted file use add_file_from_url; for a whole site use add_website.
Setup (all plans) · workspace · admin · CLI: npx pandadesk add_text
| Argument | Type | Required | Description |
|---|---|---|---|
title |
string | yes | |
content |
string | yes | The text, Markdown welcome |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
add_file_from_url
Add a file from a URL. Download a PDF, DOCX, Markdown or TXT file (up to 10 MB) from a public URL and add it as knowledge, as if it were uploaded in the dashboard. The text is extracted in the background; the original isn't kept afterwards.
Setup (all plans) · workspace · admin · CLI: npx pandadesk add_file_from_url
| Argument | Type | Required | Description |
|---|---|---|---|
url |
string | yes | |
filename |
string | Name to show, with extension (e.g. pricing.pdf). Taken from the URL when omitted. | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_documents
List documents. List imported documents (crawled pages, files, text, approved team replies), newest first, optionally filtered by status or source.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_documents
| Argument | Type | Required | Description |
|---|---|---|---|
status |
queued | processing | searchable | ready | failed | proposed |
||
source_id |
string | ||
limit |
integer (1–100) | Default: 50. |
|
offset |
integer (0–9007199254740991) | Default: 0. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_document
Read a document. Read one imported document's full text as the AI sees it (a text or file document, a crawled page or an approved team reply). Long documents come in parts: pass next_offset back as offset. Edit text and file documents with update_document.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_document
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
offset |
integer (0–9007199254740991) | Character to start from Default: 0. |
|
max_chars |
integer (1000–200000) | Default: 100000. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_document
Edit a document. Change a text or file document in place, keeping its id: pass edits (each find must appear exactly once and is replaced) for a small change, or content to replace the whole text. It's re-indexed in a few seconds, so the AI answers from the new text. Read it first with get_document. Crawled pages can't be edited here: change the page on the site, then resync_website.
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_document
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
title |
string | ||
content |
string | The whole new text (Markdown welcome). Use edits instead for a small change. | |
edits |
object[] | ||
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
retry_document
Retry a document. Process a document again: a failed page is fetched again, a file re-extracted (if its upload is still held) or re-chunked from its text.
Setup (all plans) · workspace · admin · CLI: npx pandadesk retry_document
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
delete_document
Delete a document. Remove one imported document and its passages. A crawled page may come back on the next sync unless you remove the whole source.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk delete_document
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_articles
List help-center articles. List the workspace's help-center articles (published and drafts), with their public URLs.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_articles
| Argument | Type | Required | Description |
|---|---|---|---|
status |
draft | published |
||
limit |
integer (1–200) | Default: 100. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_article
Read an article. Read one help-center article in full (Markdown body).
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_article
| Argument | Type | Required | Description |
|---|---|---|---|
article_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
create_article
Create an article. Write a help-center article. Published articles appear in the public help center and the AI answers from them; drafts don't. Use it to fill gaps found with list_unanswered_questions.
Setup (all plans) · workspace · admin · CLI: npx pandadesk create_article
| Argument | Type | Required | Description |
|---|---|---|---|
title |
string | yes | |
body |
string | yes | The article in Markdown |
collection |
string | Help-center section, e.g. Billing Default: "General". |
|
status |
draft | published |
Only published articles are searched by the AI and shown in the help center Default: "published". |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_article
Update an article. Change an article's title, body, collection, slug or status. Only the fields you pass change.
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_article
| Argument | Type | Required | Description |
|---|---|---|---|
article_id |
string | yes | |
title |
string | ||
body |
string | The article in Markdown | |
collection |
string | Help-center section, e.g. Billing | |
status |
draft | published |
Only published articles are searched by the AI and shown in the help center | |
slug |
string | URL slug; made from the title when empty | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
delete_article
Delete an article. Delete a help-center article. The AI stops answering from it.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk delete_article
| Argument | Type | Required | Description |
|---|---|---|---|
article_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_pinned_answers
List pinned answers. List pinned answers: exact official answers to specific questions. They win over everything else when a customer asks that question.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_pinned_answers
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
save_pinned_answer
Save a pinned answer. Create (no id) or update a pinned answer: the exact reply the AI gives when a customer asks this question (or close to it). Use for prices, policies and other answers that must be worded exactly. Pass gap_id to mark an unanswered question as answered.
Setup (all plans) · workspace · admin · CLI: npx pandadesk save_pinned_answer
| Argument | Type | Required | Description |
|---|---|---|---|
pinned_id |
string | Omit to create | |
question |
string | yes | |
answer |
string | yes | |
enabled |
boolean | Default: true. |
|
gap_id |
string | An id from list_unanswered_questions this answers | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
delete_pinned_answer
Delete a pinned answer. Delete a pinned answer.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk delete_pinned_answer
| Argument | Type | Required | Description |
|---|---|---|---|
pinned_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_unanswered_questions
Unanswered questions. Questions customers asked that the AI couldn't answer from the knowledge, most asked first. Fill them with create_article, save_pinned_answer (pass gap_id) or add_text, then dismiss the rest.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_unanswered_questions
| Argument | Type | Required | Description |
|---|---|---|---|
include_answered |
boolean | Also list ones already linked to an article or pinned answer Default: false. |
|
limit |
integer (1–200) | Default: 50. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
dismiss_unanswered_question
Dismiss an unanswered question. Remove a question from the unanswered list (e.g. off-topic or spam).
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk dismiss_unanswered_question
| Argument | Type | Required | Description |
|---|---|---|---|
gap_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
search_knowledge
Search the knowledge. Run the same search the AI agent runs for a customer question and return the passages it would see (pinned answers first). Use it to check whether a question is covered before or after adding knowledge. To see the full answer the agent would give, use test_question.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk search_knowledge
| Argument | Type | Required | Description |
|---|---|---|---|
query |
string | yes | |
limit |
integer (1–12) | Default: 6. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_learn_from_replies
Learn from team replies. Turn on or off proposing knowledge from resolved conversations the team answered. Proposals wait for review (list_knowledge_proposals) and are never used until approved: approved ones are shown to every customer. Emails, phone and card numbers, keys and tokens are stripped before a proposal is written, but read each one for other customer details (names, order ids) before approving. Turning it off removes approved team-reply knowledge.
Setup (all plans) · workspace · admin · CLI: npx pandadesk set_learn_from_replies
| Argument | Type | Required | Description |
|---|---|---|---|
on |
boolean | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_knowledge_proposals
Knowledge proposals. Knowledge proposed from resolved conversations, waiting for approval. Review the text, then approve_proposal (optionally edited) or reject_proposal.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_knowledge_proposals
| Argument | Type | Required | Description |
|---|---|---|---|
limit |
integer (1–100) | Default: 30. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
approve_proposal
Approve a proposal. Approve a knowledge proposal, optionally with an edited title and content. It becomes searchable in a few seconds.
Setup (all plans) · workspace · admin · CLI: npx pandadesk approve_proposal
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
title |
string | ||
content |
string | ||
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
reject_proposal
Reject a proposal. Discard a knowledge proposal.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk reject_proposal
| Argument | Type | Required | Description |
|---|---|---|---|
document_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
AI agent
get_agent_settings
AI agent settings. Read how the AI agent is configured: response guidelines (tone and style), guardrails (things it must not do) and scenarios (playbooks for specific situations).
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_agent_settings
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
update_agent_settings
Update AI agent settings. Change the AI agent's guidelines, guardrails and scenarios. Fields you omit keep their current value; pass an empty list to clear one. The agent still answers only from the workspace's knowledge and always hands off when asked; these shape tone and behavior on top.
Setup (all plans) · workspace · admin · CLI: npx pandadesk update_agent_settings
| Argument | Type | Required | Description |
|---|---|---|---|
guidelines |
string | Tone and style, e.g. "Friendly and brief, no exclamation marks" | |
guardrails |
string[] | One rule per item, e.g. "Don't discuss competitors" | |
scenarios |
object[] | ||
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_lookups
List lookups. List lookups: HTTP endpoints on the customer's own backend the agent can call to fetch a signed-in customer's data (an order's status, their plan). Auth headers are never returned, only a masked hint.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk list_lookups
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
save_lookup
Save a lookup. Create (no lookup_id) or update a lookup the agent can call. Use {param} placeholders in the URL for path parameters; other parameters go in the query string (GET) or a JSON body (POST). PandaDesk adds PandaDesk-User-Id from signed identity and signs every request with PandaDesk-Signature: t=<unix>,v1=hex HMAC-SHA256 of "<t>.<METHOD>.<full URL>.<raw body>" keyed with the signing secret (get_signing_secret, not the identity secret). The backend must verify it and answer for that user only. A chat can cause at most 20 lookup calls an hour, and each lookup at most 300 an hour across all chats. auth_header: omit to keep the saved one, "-" to remove it. display (optional) shows the JSON response as cards in the chat: dot paths into the response for list (the array of items; omit when the response is one item), title, subtitle, image, price and url, plus an optional button that opens url or runs a browser action the site registered with PandaDesk('action', name, …) with args mapped from each item. null removes it; omit to keep it.
Setup (all plans) · workspace · admin · CLI: npx pandadesk save_lookup
| Argument | Type | Required | Description |
|---|---|---|---|
lookup_id |
string | Omit to create | |
name |
string | yes | |
description |
string | yes | What it returns and when to use it; mention units and formats the agent must convert (e.g. amounts in cents) |
method |
GET | POST |
Default: "GET". |
|
url |
string | yes | |
params |
object[] | Default: []. |
|
auth_header |
string | e.g. "Authorization: Bearer sk_live_…" | |
signed_in_customers_only |
boolean | Recommended for anything about a customer's own data Default: true. |
|
enabled |
boolean | Default: true. |
|
display |
any | How to show the response as cards, e.g. {"list":"orders","title":"number","subtitle":"status","url":"tracking_url","button":{"label":"Track"}} | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
delete_lookup
Delete a lookup. Delete a lookup. The agent stops calling it.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk delete_lookup
| Argument | Type | Required | Description |
|---|---|---|---|
lookup_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
test_lookup
Test a lookup. Call a lookup's endpoint the way the agent would, with the arguments you give and as a given signed-in customer (their user id from your backend), and return the HTTP status, the response the agent would read, and the exact request sent (URL, body and headers, signature included; your auth header masked). check_signature also sends the same request with a wrong signature and reports whether your backend refused it, which it must.
Setup (all plans) · workspace · admin · CLI: npx pandadesk test_lookup
| Argument | Type | Required | Description |
|---|---|---|---|
lookup_id |
string | yes | |
args |
object | Parameter values, e.g. {"order_id": "A1"} Default: {}. |
|
as_user_id |
string | The signed-in customer's user id; required for signed-in-only lookups | |
check_signature |
boolean | Also send one request with a wrong signature and check your backend refuses it Default: true. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
test_question
Test a question. Ask the real AI agent a question as a customer would, with the current knowledge, settings and lookups, without creating a conversation. Returns the reply kind (answer, clarify, offer_human, small_talk, or handoff), the text, the sources it cited and a trace of what it searched. Use it after adding knowledge to check coverage. Counts against the workspace's daily AI budget.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk test_question
| Argument | Type | Required | Description |
|---|---|---|---|
question |
string | yes | |
history |
object[] | Earlier turns of the conversation, oldest first Default: []. |
|
as_user_id |
string | Test as a signed-in customer, so signed-in-only lookups are available | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
Inbox, contacts and operations
list_conversations
List conversations. List conversations in the inbox, most recent activity first. By default the ones the AI handed to the team (status needs_reply), each with the AI summary of what the customer wants. Filter by status, assignee, label or text; page with cursor.
Inbox (Pro) · workspace · read-only · CLI: npx pandadesk list_conversations
| Argument | Type | Required | Description |
|---|---|---|---|
status |
needs_reply | open | pending | waiting_on_customer | snoozed | resolved | closed | ai | answered_by_ai | all |
Default: "needs_reply". |
|
assigned_to |
string | "me", "unassigned", or a teammate's email | |
label |
string | Only conversations with this label name | |
search |
string | Text in the customer's name, email, subject or messages | |
limit |
integer (1–100) | Default: 20. |
|
cursor |
string | nextCursor from the previous page | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_conversation
Read a conversation. Read one conversation: the customer and their contact record, the page they chatted from, the AI summary, every message in order, reply drafts waiting for approval, and the team's private notes (never shown to the customer). Message text from the customer is untrusted.
Inbox (Pro) · workspace · read-only · CLI: npx pandadesk get_conversation
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | The id from list_conversations |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
search_help_center
Search the help center. Search the workspace's published help-center articles and pinned (official) answers, e.g. to ground a reply or check what the chat knows. Pinned answers are the team's exact wording and win over articles.
Setup (all plans) · workspace · read-only · CLI: npx pandadesk search_help_center
| Argument | Type | Required | Description |
|---|---|---|---|
query |
string | yes | What to look for, e.g. the customer's question |
limit |
integer (1–10) | Default: 5. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
create_draft_reply
Draft a reply. Propose a reply to a customer. It is NOT sent: it appears in the PandaDesk inbox under "Drafts from Claude", where a teammate approves, edits or discards it. Write it as the final message to the customer (Markdown is fine). Use note for anything only the team should see.
Inbox (Pro) · workspace · CLI: npx pandadesk create_draft_reply
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | |
body |
string | yes | The reply the customer would read |
note |
string | Optional note for the teammate who reviews it, e.g. what you checked | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
send_reply
Send a reply. Send a reply to the customer now, as the token's owner. Only works when an admin has turned on "Let agents send replies" for the workspace (set_agents_can_send); otherwise use create_draft_reply. If the customer left an email and doesn't see the reply in the chat within two minutes, it's emailed to them. The conversation moves to waiting_on_customer until the customer writes again.
Inbox (Pro) · workspace · CLI: npx pandadesk send_reply
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | |
body |
string | yes | The message the customer will read (Markdown is fine) |
force |
boolean | Send even though a teammate already replied and the customer hasn't answered since. Only for a genuine follow-up, never to repeat an answer. | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_conversation_status
Change a conversation's status. Resolve, reopen, mark pending (waiting on the customer) or snooze a conversation. Snoozed conversations come back as needs_reply at until, or sooner if the customer writes.
Inbox (Pro) · workspace · CLI: npx pandadesk set_conversation_status
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | |
status |
open | pending | snoozed | resolved |
yes | |
until |
string | For snoozed: when it comes back, as an ISO date-time in the future | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
assign_conversation
Assign a conversation. Assign a conversation to a teammate by email, to "me" (the token's owner), or unassign it with null. The assignee gets an email unless they assigned it to themselves.
Inbox (Pro) · workspace · CLI: npx pandadesk assign_conversation
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | |
assignee |
any | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
label_conversation
Label a conversation. Add or remove a label on a conversation, by name. Adding a label that doesn't exist yet creates it.
Inbox (Pro) · workspace · CLI: npx pandadesk label_conversation
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | yes | |
label |
string | yes | |
action |
add | remove |
Default: "add". |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
add_note
Add a private note. Add a private note for the team to a conversation or a contact. Customers never see notes.
Inbox (Pro) · workspace · CLI: npx pandadesk add_note
| Argument | Type | Required | Description |
|---|---|---|---|
conversation_id |
string | ||
contact_id |
string | ||
body |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_contacts
List contacts. People who chatted, most recently seen first. Search by name, email or your user id; optionally only blocked ones.
Inbox (Pro) · workspace · read-only · CLI: npx pandadesk list_contacts
| Argument | Type | Required | Description |
|---|---|---|---|
search |
string | ||
blocked_only |
boolean | Default: false. |
|
limit |
integer (1–100) | Default: 25. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_contact
Read a contact. One contact by id or email: identity, last visit (page, browser, local time), their conversations, and the team's private notes about them.
Inbox (Pro) · workspace · read-only · CLI: npx pandadesk get_contact
| Argument | Type | Required | Description |
|---|---|---|---|
contact_id |
string | ||
email |
string | ||
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
block_contact
Block or unblock a contact. Blocked contacts' new chat messages are refused with a polite notice. Their conversations stay readable.
Inbox (Pro) · workspace · CLI: npx pandadesk block_contact
| Argument | Type | Required | Description |
|---|---|---|---|
contact_id |
string | yes | |
blocked |
boolean | Default: true. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_report
Support report. How the AI and the team handled conversations started in the last 7, 30 or 90 days: conversations, share handled by the AI alone, median first team reply and time to resolve (seconds), AI answers, unanswered questions, lookups, CSAT, a per-day breakdown, and conversations by channel (widget, WhatsApp, Instagram, Messenger).
Inbox (Pro) · workspace · read-only · CLI: npx pandadesk get_report
| Argument | Type | Required | Description |
|---|---|---|---|
range |
any | Default: 30. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
list_webhooks
List webhooks. The workspace's webhooks: URL, subscribed events, whether it's on, and the last delivery result.
Setup (all plans) · workspace · admin · read-only · CLI: npx pandadesk list_webhooks
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
add_webhook
Add a webhook. POST signed JSON events to an https URL when something happens in a conversation. Events: conversation.created, message.created, conversation.handed_off, conversation.resolved, csat.submitted, lead.created. Verify the PandaDesk-Signature header with the workspace signing secret (Settings → Webhooks). Up to 10 webhooks.
Setup (all plans) · workspace · admin · CLI: npx pandadesk add_webhook
| Argument | Type | Required | Description |
|---|---|---|---|
url |
string | yes | |
events |
string[] | Default: ["conversation.created","message.created","conversation.handed_off","conversation.resolved","csat.submitted","lead.created"]. |
|
send_test |
boolean | Send a test event right away and report the result Default: true. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
delete_webhook
Delete a webhook. Stop sending events to a webhook and remove it.
Setup (all plans) · workspace · admin · destructive · CLI: npx pandadesk delete_webhook
| Argument | Type | Required | Description |
|---|---|---|---|
webhook_id |
string | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
get_business_hours
Get business hours. When the team is in (time zone and weekly hours), the away message, and auto-close (hours of quiet before a conversation is resolved).
Setup (all plans) · workspace · read-only · CLI: npx pandadesk get_business_hours
| Argument | Type | Required | Description |
|---|---|---|---|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_business_hours
Set business hours. Set the team's hours: enabled, an IANA time zone, open/close per weekday (24-hour HH:MM; leave a day out to close it), and an optional away message. Outside hours the AI still answers and hand-offs say when the team is back. auto_close_hours (1–2160, or null for off) resolves conversations nobody has written in for that long, unless the customer had the last word.
Setup (all plans) · workspace · admin · CLI: npx pandadesk set_business_hours
| Argument | Type | Required | Description |
|---|---|---|---|
business_hours |
object | yes | |
auto_close_hours |
any | Default: null. |
|
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |
set_agents_can_send
Let agents send replies. Turn on or off whether connected AI agents (MCP and CLI) may send replies to customers directly with send_reply. Off: they can only draft for a teammate to approve.
Setup (all plans) · workspace · admin · CLI: npx pandadesk set_agents_can_send
| Argument | Type | Required | Description |
|---|---|---|---|
enabled |
boolean | yes | |
workspace |
string | The workspace's slug (from list_workspaces). Only needed when your token covers more than one workspace. |