[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CPD9DXG52HZ8G94AR6C14C":3,"skill-same:01M7CPD9DXG52HZ8G94AR6C14C":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7CPD9DXG52HZ8G94AR6C14C","chatbase",null,"Use when managing Chatbase agents, sources, conversations, or help-desk tickets through the Chatbase MCP server","Chatbase-co\u002Fchatbase-plugin","Chatbase-co","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F133983327?v=4","01M7CPBWYZ4KT2YV0FC9064E2K","01M7CPBWZK51AD505WS9T4MGJH",0,"MIT","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: chatbase\ndescription: Use when managing Chatbase agents, sources, conversations, or help-desk tickets through the Chatbase MCP server\n---\n\n# Chatbase MCP\n\nJudgment the tool schemas can't express. Read this before calling any tool below.\n\n## Resolve `agentId` — never guess it\n\n`agentId` is an opaque id, not the agent's display name. Call `chatbase_list_agents` first, match the target by `name`, and use the id it returns. Never construct, infer, or reuse an id from memory or from another agent's id.\n\n## Sources train on write — there is no train step\n\n- Creating, updating or deleting a source takes effect on the agent's knowledge **immediately**. There is no separate training step and no tool to trigger one: the work starts the moment you write.\n- A new source comes back `untrained` and flips to `trained` once it is live, or `failed` if it did not land. An edited source shows `updated` until it is live again. Call `chatbase_get_source` to follow one, or `chatbase_get_agent` for the agent-level `status`. Do not report a source as live because the write succeeded — the write only means the work started.\n- **Deleting a source is immediate and permanent.** The knowledge is purged straight away; the source comes back `deleted`, or `toBeDeleted` while the purge finishes. Nothing restores it — there is no undo and no recovery tool. Confirm with the user before every `chatbase_delete_source`, and say plainly that it cannot be undone. Re-creating the source afterwards is a new source that has to train again from scratch.\n- Editing a source overwrites its content and retrains it on the spot, so the previous text and everything learned from it are gone. Treat `chatbase_update_source` as destructive too: confirm before overwriting content the user may not have a copy of.\n\n## Conversations: find with `chatbase_search_conversations`, read with `chatbase_export_conversations`\n\n- These are the **only** source-complete conversation tools on this server. There is no `listConversations`, `getConversation`, or `listConversationMessages` tool — they were deliberately left out because those API operations silently return API-source conversations only, making widget and WhatsApp conversations invisible. Never conclude \"no conversations exist\" from anything else.\n- Use `chatbase_search_conversations` to find conversations by what was said (`query`) or by what happened: `escalated`, `actionType`, `tool` \u002F `toolOutcome`, `procedure` \u002F `procedureOutcome`, `feedback`, `sentiment`, `topic`, dates. It returns ids, titles and a matching snippet, never full messages. Read the ones that matter with `chatbase_export_conversations` and `conversationId`.\n- To try several terms or filter combinations, put them all in one call's `searches` array (up to 5) instead of searching once per turn.\n- Search only covers conversations created since the 1st of the month 12 months ago. For older conversations, or to count every conversation an agent has, use export — an empty search over an older window proves nothing.\n- To limit a search to a period, filter on last activity with `updatedAfter` \u002F `updatedBefore`.\n- A search page can come back empty while `hasMore` is true — keep following `pagination.cursor` until `hasMore` is false before concluding nothing matched.\n- A snippet is one excerpt, not the conversation. Do not answer \"what happened\" from snippets alone.\n- `CONVERSATION_SEARCH_UNAVAILABLE` means the account is HIPAA-enabled or the agent redacts its data. Drop `query` and search by filters, or use export.\n- `include` defaults to `summary` (message bodies omitted). Only switch to `include: 'messages'` for a conversation you've already picked out for full reading, one `conversationId` per call, several calls together — not as the first pass over a page. A page of full transcripts can be too large for the client to read.\n- Bulk analysis over many conversations is MCP work. Do it well:\n  - Stay in `include: 'summary'` for the sweep — it omits message bodies and is the cheap mode.\n  - Page with `pagination.cursor` until `hasMore` is false, aggregating findings as you go rather than accumulating raw pages in context.\n  - `chatbase_export_conversations` returns at most **20 conversations per call**, so a large sweep is many sequential calls. Before starting a long one, tell the user roughly how many pages to expect, and report partial findings as you go rather than going silent until the end.\n  - Only escalate a specific conversation to `include: 'messages'` once the summary shows it matters.\n  - The general pagination-discipline rule below (\"read one page and stop unless asked\") still governs exploratory reads — an explicit bulk-analysis request is the case where paging through everything is the correct behaviour.\n\n## `chatbase_chat` writes to the customer's live data\n\n`chatbase_chat` is not a test harness. Every call starts or continues a **real conversation** on a real agent: it consumes the account's credits, and the exchange appears in the customer's conversation logs alongside genuine end-user traffic, where it can distort what their analytics and exports show.\n\n- Never call it to check that the connection works or that an agent exists. Use `chatbase_whoami` for connectivity and `chatbase_get_agent` to confirm an agent.\n- Call it when the user has actually asked you to talk to an agent, and say which agent you are messaging before you do.\n- Pass `conversationId` to continue a thread. Omitting it starts a new conversation every time, so a multi-turn exchange without it leaves a trail of one-message conversations in their logs.\n- Streaming is not available here; the full reply always arrives in one response.\n\nThe reply may contain `tool-call` and `tool-result` parts from actions the agent ran, carrying internal identifiers — `toolCallId`, and widget `state.id` \u002F `actionId`. Read them if they help you answer, but summarise what the agent did in plain language. Do not quote those ids back to the user, and never write them into a ticket reply or a file.\n\n`chatbase_update_conversation` sets a conversation's `status` to `ongoing`, `paused` or `ended`. Pausing or ending stops the agent replying to a real person who may be mid-conversation, and on conversation-billing accounts an ended conversation cannot be resumed (`CONVERSATION_BILLING_NOT_SUPPORTED`). Confirm with the user before pausing or ending, and say which conversation you are changing.\n\n## `chatbase_update_agent` replaces lists whole\n\nOnly the fields you send change, but list fields (`initialMessages`, `suggestedMessages`, `allowedDomains`, `blockedCountries`) and the whole `channelInstructions` record are replaced, not merged. Read the current value with `chatbase_get_agent`, change it, and send the full result. `channelInstructions` needs every channel key (`chat_widget`, `help_page`, `center_stage`, `side_panel`, `slack`, `whatsapp`, `messenger`, `instagram`, `salesforce`, `zendesk`, `zendesk_messaging`, `api`, `email`, `android_sdk`, `ios_sdk`, `phone`, `search`): keep stored overrides and send `{}` for a channel with none. An override is the instruction string, or `{\"chat\": \"...\", \"voice\": \"...\"}`; no other fields. An empty string is an empty override, not \"use the main instructions\". Show the user the before and after of any instruction or setting change, and re-read with `chatbase_get_agent` afterwards: the write only returns `success`.\n\n## Pagination discipline\n\n- Read one page, report what's in it, and stop. Never loop pages to \"get everything\" unless the user asked for that.\n- `pagination.hasMore: true` is the primary \"more exists\" signal — every paginated response carries it, so check it first. It means more items exist; say so explicitly rather than presenting a page as the complete list.\n- `truncated: true` is a rarer backstop that only appears when a tool's own cap silently cut a page short (it can't fire when the request already asked for at most the cap). Treat it the same way as `hasMore: true` when you do see it.\n- On `chatbase_search_tickets`, `hasMore: true` with a null `cursor` means there's no page to fetch — narrow the query instead of looking for a way to page.\n\n## When a result is not the whole answer\n\nSeveral tools return something that is only meaningful once you fetch the rest, or resolve an id. Finish the job rather than handing the user a fragment.\n\n- **A cursor is an instruction, not decoration.** `pagination.cursor` with `hasMore: true` means the answer you have is partial. If the user asked a question the page cannot answer — \"how many\", \"which one\", \"any that…\" — keep paging with that cursor until `hasMore` is false before answering. If you stop early, say how much you read: \"the newest 25 of at least 60\".\n- **Never answer a counting or superlative question from one page.** \"Which agent has the most sources\", \"how many tickets are open\", \"the oldest conversation\" — all require the full set. One page gives you the top of a list, not a maximum.\n- **Ids are not answers.** A result carrying `agentId`, `sourceId`, `statusId`, `authorId` or `conversationId` and no name is not yet usable by a person. Resolve it — `chatbase_get_agent`, `chatbase_get_source`, `chatbase_list_ticket_statuses`, `chatbase_list_helpdesk_teams` — and report the name, keeping the id only if the user needs it to act.\n- **A summary is a filter, not a reading.** `chatbase_export_conversations` in its default `summary` mode omits message bodies. Answering \"what did people ask about\" from summaries alone is guessing; use the summaries to choose which conversations matter, then re-read those few with `include: 'messages'`.\n- **A ticket without its messages is half a ticket.** `chatbase_list_tickets` returns records only. Set `includeMessages: true` whenever the answer depends on what was said — reading a ticket's content, a general question about tickets (\"what are customers complaining about\", \"any refund issues this week\"), or a summary of one or more tickets — and leave it off for triage and counts. Each ticket then carries `messages`: its first 25 replies and notes, oldest first; add `messageTypes: \"reply,note,event\"` only when status or assignment history matters. `messages.pagination.hasMore: true` means the thread is longer — continue it with `chatbase_list_ticket_messages`, passing `messages.pagination.cursor` and your `messageTypes` as `types`. For one ticket by number, read `chatbase_get_ticket` and `chatbase_list_ticket_messages`.\n- **A write result is a receipt, not a state.** `{\"success\": true}` confirms the call was accepted, not what the record now looks like. When the user needs to see the outcome, re-read it — `chatbase_get_ticket`, `chatbase_get_agent`, `chatbase_get_source` — and report actual state.\n- **`chatbase_get_sources_summary` is counts, not content.** Use it to see how much a knowledge base holds; use `chatbase_list_sources` when the user needs to know what is in it.\n\nChain the calls yourself. Asking the user to run a second query you could have run is the failure this section exists to prevent.\n\n## Confirm before destructive tools\n\nAsk the user before calling any of:\n- `chatbase_delete_agent`\n- `chatbase_delete_source` — the purge is immediate and there is no way back.\n- `chatbase_delete_conversation` — the conversation disappears from chat logs and the API, and no tool restores it.\n- `chatbase_delete_action` — no tool restores it. When procedures mention it, ask again before editing them to remove the mention.\n- `chatbase_delete_procedure` — its run history goes with it, and no tool restores either.\n- `chatbase_update_source` — a content change overwrites the source and retrains it at once, discarding the previous text and its embeddings. It does not \"delete\" anything by name, which is exactly why it is easy to under-estimate.\n- `chatbase_update_action` with `fields` and `chatbase_update_procedure` with `steps` — each replaces the whole list, so fields or steps left out are gone.\n- `chatbase_update_conversation` with `status: 'ended'` — on conversation-billing accounts the conversation is billed and cannot be resumed.\n- `chatbase_create_ticket_message` with `type: 'reply'` — every reply reaches the customer and can't be taken back. Get approval for each reply; never send several under one approval. A `note` stays internal to the team.\n- `chatbase_update_ticket` to a closed status — closing can email the customer a satisfaction survey and run help-desk triggers.\n\n## Error-code playbook\n\n- `RATE_LIMIT_TOO_MANY_REQUESTS` — back off and honour any retry-after; never retry in a tight loop.\n- `SUBSCRIPTION_API_RESTRICTED_PLAN` — stop and tell the user which plan the operation requires.\n- `AGENT_NOT_FOUND` and a plain 403 are both tenant-scoping failures — the id isn't wrong, it isn't yours. Do not retry with a different guessed id; re-resolve via `chatbase_list_agents`.\n- `CHAT_CONVERSATION_NOT_ONGOING` — the conversation ended; start a new one instead of retrying the same `conversationId`.\n- `SOURCE_PENDING_DELETION` — the source is mid-purge and cannot be edited. It is not recoverable: create a new source instead of waiting for it to come back.\n- `SOURCE_IS_TRAINING` — a training run owns the source right now, so the edit would be overwritten by the run's own write. Wait and retry the edit; deleting is still allowed.\n- `CONVERSATION_NOT_TAKEN_OVER` — the ticket's customer is still talking to the agent on that channel. The user takes the conversation over in the Chatbase dashboard first; this server can't. Don't retry until they have.\n- 5xx from `chatbase_update_ticket` — do not assume the update was rejected. Fields are validated together but written independently, so some may have applied. Re-read with `chatbase_get_ticket` and report actual state before retrying; never retry the whole payload blind.\n\n## Ticket attachments\n\n`chatbase_list_ticket_messages` and `chatbase_list_tickets` with `includeMessages` return `attachments` as `{name, url, type, size}`. The file is fetchable — retrieve it yourself instead of telling the user to go to the dashboard or CLI.\n\n- Fetch `url` with a plain HTTP GET and **no `Authorization` header**. The route is unauthenticated by design — the token embedded in the URL path is itself the credential. Do **not** add one: the route ignores it, so it does not fail loudly — it just means you transmitted your OAuth access token to a route that never needed it, and on to the storage host it redirects to.\n- The request 302-redirects to a short-lived (120s) signed URL. Follow the redirect and read the body in the same request; do not save the redirect target to fetch later, since it will have expired.\n- The **token URL itself does not expire.** Treat it as a durable secret, not a throwaway link: fetch it only when you need the content, never repeat it back in your own output, and never write it into a file or a ticket reply.\n- `name`, `type`, and `size` may be `null`; don't assume a filename or MIME type exists before using one.\n- `attachments` is always an empty array on `event` messages — don't expect files there.\n- After `chatbase_create_ticket_message` succeeds, tell the user the reply was recorded, not delivered — and re-read with `chatbase_get_ticket` rather than assume its status is unchanged.\n\n## Chatbase tickets, not third-party tickets\n\nEvery `chatbase_*_ticket*` tool operates on **Chatbase's own help desk only**. Chatbase can integrate with third-party ticketing platforms (Zendesk, Intercom, etc.), but neither this MCP server nor the CLI can read or write tickets in them. Never present a Chatbase helpdesk result as if it covers a customer's third-party platform, and if the user asks about one, say plainly that it isn't reachable from here.\n\n## Events: subscribe instead of polling\n\nIf `events\u002Flist` is available, the server can notify a webhook you control when something happens, so you don't have to poll. Subscribe with `events\u002Fsubscribe`: the event name, `arguments` with the `agentId`, and `delivery` with `mode: \"webhook\"`, an https `url` and a `secret` you generate (`whsec_` followed by 24 to 64 random bytes, base64-encoded). The server first POSTs a signed challenge to the URL, which must echo it back.\n\n- Deliveries are signed (Standard Webhooks) and carry only ids. Fetch the record with the tool named in the event's description, and never act on the payload alone.\n- A subscription expires at the `refreshBefore` the server returns, at most 24 hours out. Call `events\u002Fsubscribe` again with the same arguments before then to renew it. Send `ttlMs: null` to ask for no expiry: the response then has `refreshBefore: null` and the subscription lasts until the connection is revoked or expires.\n- Delivery is at least once and can arrive out of order, so dedupe on `eventId`.\n- If you subscribe to both `chatbase.ticket.created` and `chatbase.conversation.escalated`, a ticket created by the AI agent handing a conversation over arrives only as `chatbase.conversation.escalated`, which carries the `ticketNumber`.\n- Conversations from the Playground and previews never send events.\n- Revoking the connection ends its subscriptions.\n\n## When a tool seems missing\n\nCall `chatbase_whoami` first. Every tool is always listed; a call refused for permissions means the OAuth grant lacks that scope, not that the capability is absent.\n\n## Capabilities that live in the CLI, permanently\n\nAbsence from this tool surface is not absence of the capability — point the user at the CLI. These are permanent CLI-only capabilities:\n- File-source upload — `chatbase sources create --file \u003Cpath> -a \u003CagentId>` \u002F `chatbase sources update \u003CsourceId> --file \u003Cpath>`. A remote MCP server has no filesystem to read from.\n- `updateAgentStyles` — `chatbase agents styles \u003CagentId> --data '\u003Cjson>'`.\n- WhatsApp template send — `chatbase whatsapp send-template \u003Cname> --to \u003Cphone> -a \u003CagentId>` — sends a real message with no delivery confirmation, so keep it at a human's terminal.\n- WhatsApp template list — `chatbase whatsapp templates -a \u003CagentId>` is CLI-only alongside the send operation.\n\n## The API is the final validation authority\n\nThe schema catches shape and cross-field rules before a request is ever sent — for example, `chatbase_update_ticket` rejects giving both `statusId` and `statusCategory`, and `chatbase_create_ticket_message` rejects giving neither, or both, of `authorId` \u002F `authorEmail`. A schema rejection names the rule directly.\n\nThe API catches what no schema can express:\n- Whether a referenced id actually exists and belongs to this account — a well-formed `statusId`, `agentId`, or `sourceId` can still be rejected as not found. That's tenant scoping, not a malformed argument.\n- Plan and quota limits (`SUBSCRIPTION_API_RESTRICTED_PLAN`, rate limits, credit limits).\n- State-dependent rules — a conversation that has ended (`CHAT_CONVERSATION_NOT_ONGOING`), a source being purged (`SOURCE_PENDING_DELETION`) or mid-training (`SOURCE_IS_TRAINING`).\n\nTreat any rejection as a real constraint to satisfy, not a transient failure to retry unchanged: if the schema rejected the call, its message names the rule to fix; if the API rejected it, re-check the ids and the account's state rather than the argument shape.\n","# Chatbase MCP\n\nJudgment the tool schemas can't express. Read this before calling any tool below.\n\n## Resolve `agentId` — never guess it\n\n`agentId` is an opaque id, not the agent's display name. Call `chatbase_list_agents` first, match the target by `name`, and use the id it returns. Never construct, infer, or reuse an id from memory or from another agent's id.\n\n## Sources train on write — there is no train step\n\n- Creating, updating or deleting a source takes effect on the agent's knowledge **immediately**. There is no separate training step and no tool to trigger one: the work starts the moment you write.\n- A new source comes back `untrained` and flips to `trained` once it is live, or `failed` if it did not land. An edited source shows `updated` until it is live again. Call `chatbase_get_source` to follow one, or `chatbase_get_agent` for the agent-level `status`. Do not report a source as live because the write succeeded — the write only means the work started.\n- **Deleting a source is immediate and permanent.** The knowledge is purged straight away; the source comes back `deleted`, or `toBeDeleted` while the purge finishes. Nothing restores it — there is no undo and no recovery tool. Confirm with the user before every `chatbase_delete_source`, and say plainly that it cannot be undone. Re-creating the source afterwards is a new source that has to train again from scratch.\n- Editing a source overwrites its content and retrains it on the spot, so the previous text and everything learned from it are gone. Treat `chatbase_update_source` as destructive too: confirm before overwriting content the user may not have a copy of.\n\n## Conversations: find with `chatbase_search_conversations`, read with `chatbase_export_conversations`\n\n- These are the **only** source-complete conversation tools on this server. There is no `listConversations`, `getConversation`, or `listConversationMessages` tool — they were deliberately left out because those API operations silently return API-source conversations only, making widget and WhatsApp conversations invisible. Never conclude \"no conversations exist\" from anything else.\n- Use `chatbase_search_conversations` to find conversations by what was said (`query`) or by what happened: `escalated`, `actionType`, `tool` \u002F `toolOutcome`, `procedure` \u002F `procedureOutcome`, `feedback`, `sentiment`, `topic`, dates. It returns ids, titles and a matching snippet, never full messages. Read the ones that matter with `chatbase_export_conversations` and `conversationId`.\n- To try several terms or filter combinations, put them all in one call's `searches` array (up to 5) instead of searching once per turn.\n- Search only covers conversations created since the 1st of the month 12 months ago. For older conversations, or to count every conversation an agent has, use export — an empty search over an older window proves nothing.\n- To limit a search to a period, filter on last activity with `updatedAfter` \u002F `updatedBefore`.\n- A search page can come back empty while `hasMore` is true — keep following `pagination.cursor` until `hasMore` is false before concluding nothing matched.\n- A snippet is one excerpt, not the conversation. Do not answer \"what happened\" from snippets alone.\n- `CONVERSATION_SEARCH_UNAVAILABLE` means the account is HIPAA-enabled or the agent redacts its data. Drop `query` and search by filters, or use export.\n- `include` defaults to `summary` (message bodies omitted). Only switch to `include: 'messages'` for a conversation you've already picked out for full reading, one `conversationId` per call, several calls together — not as the first pass over a page. A page of full transcripts can be too large for the client to read.\n- Bulk analysis over many conversations is MCP work. Do it well:\n  - Stay in `include: 'summary'` for the sweep — it omits message bodies and is the cheap mode.\n  - Page with `pagination.cursor` until `hasMore` is false, aggregating findings as you go rather than accumulating raw pages in context.\n  - `chatbase_export_conversations` returns at most **20 conversations per call**, so a large sweep is many sequential calls. Before starting a long one, tell the user roughly how many pages to expect, and report partial findings as you go rather than going silent until the end.\n  - Only escalate a specific conversation to `include: 'messages'` once the summary shows it matters.\n  - The general pagination-discipline rule below (\"read one page and stop unless asked\") still governs exploratory reads — an explicit bulk-analysis request is the case where paging through everything is the correct behaviour.\n\n## `chatbase_chat` writes to the customer's live data\n\n`chatbase_chat` is not a test harness. Every call starts or continues a **real conversation** on a real agent: it consumes the account's credits, and the exchange appears in the customer's conversation logs alongside genuine end-user traffic, where it can distort what their analytics and exports show.\n\n- Never call it to check that the connection works or that an agent exists. Use `chatbase_whoami` for connectivity and `chatbase_get_agent` to confirm an agent.\n- Call it when the user has actually asked you to talk to an agent, and say which agent you are messaging before you do.\n- Pass `conversationId` to continue a thread. Omitting it starts a new conversation every time, so a multi-turn exchange without it leaves a trail of one-message conversations in their logs.\n- Streaming is not available here; the full reply always arrives in one response.\n\nThe reply may contain `tool-call` and `tool-result` parts from actions the agent ran, carrying internal identifiers — `toolCallId`, and widget `state.id` \u002F `actionId`. Read them if they help you answer, but summarise what the agent did in plain language. Do not quote those ids back to the user, and never write them into a ticket reply or a file.\n\n`chatbase_update_conversation` sets a conversation's `status` to `ongoing`, `paused` or `ended`. Pausing or ending stops the agent replying to a real person who may be mid-conversation, and on conversation-billing accounts an ended conversation cannot be resumed (`CONVERSATION_BILLING_NOT_SUPPORTED`). Confirm with the user before pausing or ending, and say which conversation you are changing.\n\n## `chatbase_update_agent` replaces lists whole\n\nOnly the fields you send change, but list fields (`initialMessages`, `suggestedMessages`, `allowedDomains`, `blockedCountries`) and the whole `channelInstructions` record are replaced, not merged. Read the current value with `chatbase_get_agent`, change it, and send the full result. `channelInstructions` needs every channel key (`chat_widget`, `help_page`, `center_stage`, `side_panel`, `slack`, `whatsapp`, `messenger`, `instagram`, `salesforce`, `zendesk`, `zendesk_messaging`, `api`, `email`, `android_sdk`, `ios_sdk`, `phone`, `search`): keep stored overrides and send `{}` for a channel with none. An override is the instruction string, or `{\"chat\": \"...\", \"voice\": \"...\"}`; no other fields. An empty string is an empty override, not \"use the main instructions\". Show the user the before and after of any instruction or setting change, and re-read with `chatbase_get_agent` afterwards: the write only returns `success`.\n\n## Pagination discipline\n\n- Read one page, report what's in it, and stop. Never loop pages to \"get everything\" unless the user asked for that.\n- `pagination.hasMore: true` is the primary \"more exists\" signal — every paginated response carries it, so check it first. It means more items exist; say so explicitly rather than presenting a page as the complete list.\n- `truncated: true` is a rarer backstop that only appears when a tool's own cap silently cut a page short (it can't fire when the request already asked for at most the cap). Treat it the same way as `hasMore: true` when you do see it.\n- On `chatbase_search_tickets`, `hasMore: true` with a null `cursor` means there's no page to fetch — narrow the query instead of looking for a way to page.\n\n## When a result is not the whole answer\n\nSeveral tools return something that is only meaningful once you fetch the rest, or resolve an id. Finish the job rather than handing the user a fragment.\n\n- **A cursor is an instruction, not decoration.** `pagination.cursor` with `hasMore: true` means the answer you have is partial. If the user asked a question the page cannot answer — \"how many\", \"which one\", \"any that…\" — keep paging with that cursor until `hasMore` is false before answering. If you stop early, say how much you read: \"the newest 25 of at least 60\".\n- **Never answer a counting or superlative question from one page.** \"Which agent has the most sources\", \"how many tickets are open\", \"the oldest conversation\" — all require the full set. One page gives you the top of a list, not a maximum.\n- **Ids are not answers.** A result carrying `agentId`, `sourceId`, `statusId`, `authorId` or `conversationId` and no name is not yet usable by a person. Resolve it — `chatbase_get_agent`, `chatbase_get_source`, `chatbase_list_ticket_statuses`, `chatbase_list_helpdesk_teams` — and report the name, keeping the id only if the user needs it to act.\n- **A summary is a filter, not a reading.** `chatbase_export_conversations` in its default `summary` mode omits message bodies. Answering \"what did people ask about\" from summaries alone is guessing; use the summaries to choose which conversations matter, then re-read those few with `include: 'messages'`.\n- **A ticket without its messages is half a ticket.** `chatbase_list_tickets` returns records only. Set `includeMessages: true` whenever the answer depends on what was said — reading a ticket's content, a general question about tickets (\"what are customers complaining about\", \"any refund issues this week\"), or a summary of one or more tickets — and leave it off for triage and counts. Each ticket then carries `messages`: its first 25 replies and notes, oldest first; add `messageTypes: \"reply,note,event\"` only when status or assignment history matters. `messages.pagination.hasMore: true` means the thread is longer — continue it with `chatbase_list_ticket_messages`, passing `messages.pagination.cursor` and your `messageTypes` as `types`. For one ticket by number, read `chatbase_get_ticket` and `chatbase_list_ticket_messages`.\n- **A write result is a receipt, not a state.** `{\"success\": true}` confirms the call was accepted, not what the record now looks like. When the user needs to see the outcome, re-read it — `chatbase_get_ticket`, `chatbase_get_agent`, `chatbase_get_source` — and report actual state.\n- **`chatbase_get_sources_summary` is counts, not content.** Use it to see how much a knowledge base holds; use `chatbase_list_sources` when the user needs to know what is in it.\n\nChain the calls yourself. Asking the user to run a second query you could have run is the failure this section exists to prevent.\n\n## Confirm before destructive tools\n\nAsk the user before calling any of:\n- `chatbase_delete_agent`\n- `chatbase_delete_source` — the purge is immediate and there is no way back.\n- `chatbase_delete_conversation` — the conversation disappears from chat logs and the API, and no tool restores it.\n- `chatbase_delete_action` — no tool restores it. When procedures mention it, ask again before editing them to remove the mention.\n- `chatbase_delete_procedure` — its run history goes with it, and no tool restores either.\n- `chatbase_update_source` — a content change overwrites the source and retrains it at once, discarding the previous text and its embeddings. It does not \"delete\" anything by name, which is exactly why it is easy to under-estimate.\n- `chatbase_update_action` with `fields` and `chatbase_update_procedure` with `steps` — each replaces the whole list, so fields or steps left out are gone.\n- `chatbase_update_conversation` with `status: 'ended'` — on conversation-billing accounts the conversation is billed and cannot be resumed.\n- `chatbase_create_ticket_message` with `type: 'reply'` — every reply reaches the customer and can't be taken back. Get approval for each reply; never send several under one approval. A `note` stays internal to the team.\n- `chatbase_update_ticket` to a closed status — closing can email the customer a satisfaction survey and run help-desk triggers.\n\n## Error-code playbook\n\n- `RATE_LIMIT_TOO_MANY_REQUESTS` — back off and honour any retry-after; never retry in a tight loop.\n- `SUBSCRIPTION_API_RESTRICTED_PLAN` — stop and tell the user which plan the operation requires.\n- `AGENT_NOT_FOUND` and a plain 403 are both tenant-scoping failures — the id isn't wrong, it isn't yours. Do not retry with a different guessed id; re-resolve via `chatbase_list_agents`.\n- `CHAT_CONVERSATION_NOT_ONGOING` — the conversation ended; start a new one instead of retrying the same `conversationId`.\n- `SOURCE_PENDING_DELETION` — the source is mid-purge and cannot be edited. It is not recoverable: create a new source instead of waiting for it to come back.\n- `SOURCE_IS_TRAINING` — a training run owns the source right now, so the edit would be overwritten by the run's own write. Wait and retry the edit; deleting is still allowed.\n- `CONVERSATION_NOT_TAKEN_OVER` — the ticket's customer is still talking to the agent on that channel. The user takes the conversation over in the Chatbase dashboard first; this server can't. Don't retry until they have.\n- 5xx from `chatbase_update_ticket` — do not assume the update was rejected. Fields are validated together but written independently, so some may have applied. Re-read with `chatbase_get_ticket` and report actual state before retrying; never retry the whole payload blind.\n\n## Ticket attachments\n\n`chatbase_list_ticket_messages` and `chatbase_list_tickets` with `includeMessages` return `attachments` as `{name, url, type, size}`. The file is fetchable — retrieve it yourself instead of telling the user to go to the dashboard or CLI.\n\n- Fetch `url` with a plain HTTP GET and **no `Authorization` header**. The route is unauthenticated by design — the token embedded in the URL path is itself the credential. Do **not** add one: the route ignores it, so it does not fail loudly — it just means you transmitted your OAuth access token to a route that never needed it, and on to the storage host it redirects to.\n- The request 302-redirects to a short-lived (120s) signed URL. Follow the redirect and read the body in the same request; do not save the redirect target to fetch later, since it will have expired.\n- The **token URL itself does not expire.** Treat it as a durable secret, not a throwaway link: fetch it only when you need the content, never repeat it back in your own output, and never write it into a file or a ticket reply.\n- `name`, `type`, and `size` may be `null`; don't assume a filename or MIME type exists before using one.\n- `attachments` is always an empty array on `event` messages — don't expect files there.\n- After `chatbase_create_ticket_message` succeeds, tell the user the reply was recorded, not delivered — and re-read with `chatbase_get_ticket` rather than assume its status is unchanged.\n\n## Chatbase tickets, not third-party tickets\n\nEvery `chatbase_*_ticket*` tool operates on **Chatbase's own help desk only**. Chatbase can integrate with third-party ticketing platforms (Zendesk, Intercom, etc.), but neither this MCP server nor the CLI can read or write tickets in them. Never present a Chatbase helpdesk result as if it covers a customer's third-party platform, and if the user asks about one, say plainly that it isn't reachable from here.\n\n## Events: subscribe instead of polling\n\nIf `events\u002Flist` is available, the server can notify a webhook you control when something happens, so you don't have to poll. Subscribe with `events\u002Fsubscribe`: the event name, `arguments` with the `agentId`, and `delivery` with `mode: \"webhook\"`, an https `url` and a `secret` you generate (`whsec_` followed by 24 to 64 random bytes, base64-encoded). The server first POSTs a signed challenge to the URL, which must echo it back.\n\n- Deliveries are signed (Standard Webhooks) and carry only ids. Fetch the record with the tool named in the event's description, and never act on the payload alone.\n- A subscription expires at the `refreshBefore` the server returns, at most 24 hours out. Call `events\u002Fsubscribe` again with the same arguments before then to renew it. Send `ttlMs: null` to ask for no expiry: the response then has `refreshBefore: null` and the subscription lasts until the connection is revoked or expires.\n- Delivery is at least once and can arrive out of order, so dedupe on `eventId`.\n- If you subscribe to both `chatbase.ticket.created` and `chatbase.conversation.escalated`, a ticket created by the AI agent handing a conversation over arrives only as `chatbase.conversation.escalated`, which carries the `ticketNumber`.\n- Conversations from the Playground and previews never send events.\n- Revoking the connection ends its subscriptions.\n\n## When a tool seems missing\n\nCall `chatbase_whoami` first. Every tool is always listed; a call refused for permissions means the OAuth grant lacks that scope, not that the capability is absent.\n\n## Capabilities that live in the CLI, permanently\n\nAbsence from this tool surface is not absence of the capability — point the user at the CLI. These are permanent CLI-only capabilities:\n- File-source upload — `chatbase sources create --file \u003Cpath> -a \u003CagentId>` \u002F `chatbase sources update \u003CsourceId> --file \u003Cpath>`. A remote MCP server has no filesystem to read from.\n- `updateAgentStyles` — `chatbase agents styles \u003CagentId> --data '\u003Cjson>'`.\n- WhatsApp template send — `chatbase whatsapp send-template \u003Cname> --to \u003Cphone> -a \u003CagentId>` — sends a real message with no delivery confirmation, so keep it at a human's terminal.\n- WhatsApp template list — `chatbase whatsapp templates -a \u003CagentId>` is CLI-only alongside the send operation.\n\n## The API is the final validation authority\n\nThe schema catches shape and cross-field rules before a request is ever sent — for example, `chatbase_update_ticket` rejects giving both `statusId` and `statusCategory`, and `chatbase_create_ticket_message` rejects giving neither, or both, of `authorId` \u002F `authorEmail`. A schema rejection names the rule directly.\n\nThe API catches what no schema can express:\n- Whether a referenced id actually exists and belongs to this account — a well-formed `statusId`, `agentId`, or `sourceId` can still be rejected as not found. That's tenant scoping, not a malformed argument.\n- Plan and quota limits (`SUBSCRIPTION_API_RESTRICTED_PLAN`, rate limits, credit limits).\n- State-dependent rules — a conversation that has ended (`CHAT_CONVERSATION_NOT_ONGOING`), a source being purged (`SOURCE_PENDING_DELETION`) or mid-training (`SOURCE_IS_TRAINING`).\n\nTreat any rejection as a real constraint to satisfy, not a transient failure to retry unchanged: if the schema rejected the call, its message names the rule to fix; if the API rejected it, re-check the ids and the account's state rather than the argument shape.\n",{"name":5,"description":7},"main","5faf2a09e02688d39968bd2b01846732d3b28e17","plugins\u002Fchatbase\u002Fskills\u002Fchatbase","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin","https:\u002F\u002Fgithub.com\u002FChatbase-co","2026-11-12 22:07:17",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add Chatbase-co\u002Fchatbase-plugin --skill chatbase",{"tool":35,"command":36},"bunx","bunx skills add Chatbase-co\u002Fchatbase-plugin --skill chatbase",{"tool":38,"command":39},"pnpm","pnpm dlx skills add Chatbase-co\u002Fchatbase-plugin --skill chatbase","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"SKILL.md.sha256","OTHER","其他",65,"https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase\u002FSKILL.md.sha256",[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7CPD3AZ4C09S3XW9DKGJWTV","chatbase-teach-agent","Teach a Chatbase agent new or changed facts from the chat, a file, or a document the assistant can open — drafts Q&A and text sources, adds them after approval, and checks the bot uses them. Use for \"we now close at 6pm\", \"train it on this PDF\", \"add our new pricing\". Not for fixing answers found in conversations (use chatbase-fix-answers) or changing tone (use chatbase-edit-agent).","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-teach-agent\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7CPCZSZTQQCB753SR04VDX5","chatbase-multi-agent","Compare Chatbase agents or apply one change to several — diff staging against prod, copy settings from one agent to another, add the same rule or Q&A to many agents. For agencies and teams with several bots. Use for \"what's different between staging and prod\", \"copy staging to prod\", \"add this rule to all my bots\".","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-multi-agent\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7CPCTERF6ZVPJ5MYGV8NV12","chatbase-helpdesk","Work the Chatbase help desk — what needs attention, one ticket with the bot conversation behind it, replies drafted and sent one at a time, and bulk changes (assign, prioritise, close). Use for \"go through my queue\", \"reply to ticket 123\", \"close stale tickets\", \"move Sara's tickets to Ali\". Chatbase's own help desk only, never Zendesk, Intercom or other platforms.","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-helpdesk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7CPCN4RMA76JPWGS4YW94EG","chatbase-fix-answers","Find why a Chatbase agent answered wrongly, unhelpfully or handed off, then fix it with Q&A or instruction changes and verify the fix. Use for \"why did the bot say X\", \"fix wrong answers\", \"what can't it answer\", \"why do so many chats reach my team\". Not for adding a fact the user already knows (use chatbase-teach-agent).","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-fix-answers\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7CPCGMRA3TM87CVHQ2MD1PY","chatbase-edit-agent","Change how a Chatbase agent behaves or is configured — tone, language, rules, per-channel instructions, greeting and starter questions, temporary notices like holidays, model, security and cost limits, voice settings. Always shows the change before applying it. Use for \"make it friendlier\", \"reply in Arabic\", \"we're closed Dec 24 to 26\", \"stop spam\", \"cap my credits\", \"switch the model\".","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-edit-agent\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CPCBYS9NKGX63JDTNWGDG8","chatbase-create-agent","Create a Chatbase agent from a website, or as a copy of an existing agent for a new brand, language or client, then give it real instructions and a greeting. Use for \"make me a bot for mysite.com\", \"set up Chatbase for my store\", \"make a Spanish copy of our bot\", \"is my bot ready?\".","https:\u002F\u002Fgithub.com\u002FChatbase-co\u002Fchatbase-plugin\u002Fblob\u002Fmain\u002Fplugins\u002Fchatbase\u002Fskills\u002Fchatbase-create-agent\u002FSKILL.md",[],[]]