API reference

Tool reference: every REST and MCP tool

An agency token sees 148 tools on the LanaChat MCP server. This page lists each one, grouped by Console screen, with one line on what it does. Without Configure agency AI, the token gets only the 125 setup, fans and sales tools. The other boxes are checked at each call: a tool outside them stays listed and answers with a clear refusal. The server sends the exact arguments of each tool: you never type them.

  • Reads only read. Changes write something, always in your workspace only.
  • Changes that matter (publish, replies on, imports, a new brain) work in two steps: a preview first, then apply with the fresh hash or revision the preview returned.
  • No tool sends a message to a fan.

Start: permissions and formats #

Main permission: any permission.

ToolTypeWhat it does
get_capabilitiesReadsWhat this token may do, the limits and the boundaries.
get_workspace_setupReadsWhat the token may set up, and the safe way to upload files.
get_workspace_connection_guideReadsThe current setup workflow, the exact script format, upload limits and how to poll sales.
get_workspace_content_schemaReadsThe fields you can edit on a creator, their price limits and permissions.
get_schemasReadsThe exact format of agents, phases, triggers and conditions of an AI Brain.
get_workspace_onboarding_statusReadsRead the Get started checklist, per creator and for the agency.

Creators #

Main permission: Manage workspace setup.

ToolTypeWhat it does
list_workspace_modelsReadsList the creators of the workspace, with their revision number.
save_workspace_modelChangesCreate a creator or change some of her fields. Never publishes a brain.
delete_workspace_modelChangesDelete a creator that nothing uses any more.
extract_creator_profileChangesTurn a description, a PDF or photos into proposed creator fields. Saves nothing.
set_workspace_model_photoChangesUse one of her Vault images as her profile photo, or clear it.
list_modelsReadsList creators with their linked AI Brain, AI mode and build status.

Telegram Accounts #

Main permission: Manage workspace setup.

ToolTypeWhat it does
list_workspace_telegramReadsList the bots and connected accounts. No secrets, no messages.
register_workspace_telegram_botChangesCheck and save a BotFather bot for a creator, optionally with its waiting account.
connect_workspace_telegram_botChangesRegister or repair the bot webhook. The account owner still links it in Telegram.
resync_workspace_telegram_botChangesUnblock a bot or account stuck on "Waiting for Telegram".
get_workspace_telegram_statusReadsRead the health of a bot webhook.
update_workspace_telegram_botChangesRename a bot or turn it on or off.
update_workspace_telegram_accountChangesChange an account name, on or off, reply language, market or traffic source.
remove_workspace_telegram_accountChangesRemove an account from LanaChat (it comes back with restore).
restore_workspace_telegram_accountChangesBring a removed account back.
list_workspace_storiesReadsList the Telegram stories, newest first.
get_workspace_pool_loadReadsHow hard each account sends against the hourly cap (last 60 minutes).
get_workspace_telegram_rightsReadsRead the Business rights an account gave at its last connection.
copy_workspace_telegram_account_settingsChangesCopy one account's settings onto another account of the same creator.
list_workspace_traffic_sourcesReadsList the traffic sources an account can carry, built-in and your own.
get_workspace_telegram_account_profileReadsRead the Telegram profile of an account: name, username, bio, photo.
update_workspace_telegram_account_profileChangesChange the Telegram name, username, bio or photo of an account.
list_workspace_telegram_account_profile_changesReadsRead who changed an account's profile from LanaChat, and when.
list_workspace_pool_payment_modesReadsList the default payment mode of each pool.
set_workspace_pool_payment_modeChangesSet or remove the default payment mode of one pool.
create_workspace_storyChangesPost or schedule a story from a Vault photo or video. Preview first.
delete_workspace_storyChangesCancel a scheduled story, or take down a posted one.

Vault #

Main permission: Manage workspace setup.

ToolTypeWhat it does
list_workspace_media_assetsReadsList the media of a creator.
get_workspace_media_assetReadsRead one media file and its details.
begin_workspace_media_uploadChangesStart or resume an upload of up to 2 GiB, sent in parts.
get_workspace_media_uploadReadsRead which parts of an upload arrived.
complete_workspace_media_uploadChangesFinish an upload and prepare the file in the Vault.
abort_workspace_media_uploadChangesCancel an unfinished upload.
list_workspace_media_metadataReadsRead names, descriptions, tags, folders and prices of the media.
update_workspace_media_metadataChangesChange one media: name, description, tags, folder, free or paid, price in Stars.
list_workspace_media_tagsReadsList the tags in use and how often.
update_workspace_media_tagsChangesAdd or remove tags, set or clear the folder of one media.
prepare_workspace_media_analysisReadsCheck whether a photo or video can be described automatically.
analyze_workspace_mediaChangesDescribe a photo or video from a few samples.
preview_workspace_drive_importChangesLook inside a public Google Drive folder before importing. Copies nothing yet.
start_workspace_drive_importChangesImport the previewed Drive folder into the creator's Vault.
cancel_workspace_drive_importChangesStop a Drive import; files already imported stay.
list_workspace_drive_importsReadsList the last 20 Drive imports of a creator.
get_workspace_drive_importReadsFollow one Drive import, file by file.

AI Brain and scripts #

Main permission: Configure agency AI; publishing needs Publish agency AI.

ToolTypeWhat it does
get_workspace_ai_templatesReadsList the approved starting templates for a new brain.
setup_workspace_aiChangesGive a creator a new AI Brain, replies off. Preview first, then apply.
set_workspace_auto_replyChangesPreview, then turn the AI replies of a creator on or off.
list_ai_profilesReadsList the saved drafts of a brain and their latest version.
get_ai_profileReadsRead one draft version: persona, scripts, history.
create_ai_profileChangesCreate a new draft from the live brain or from a saved version.
edit_ai_profileChangesCheck or save a new draft version: persona, scripts, agents. Live replies do not change.
compare_ai_profile_versionsReadsShow what changed between two draft versions.
restore_ai_profile_versionChangesBring back an earlier draft as a new version.
archive_ai_profileChangesHide an unused draft, or show it again.
publish_ai_profileChangesCheck, then publish an exact draft version to the live brain.
get_configurationReadsRead the live sources of a brain and their current hash.
configure_documentsChangesCheck or publish complete edited sources of a brain.
configure_engineChangesManage custom agents, phases and their rules.
revision_historyReadsList the last edits, with before and after.
rollback_revisionChangesUndo one edit, if nothing changed it since.

Playground #

Main permission: Generate Playground replies; diagnostics need Read reply diagnostics.

ToolTypeWhat it does
playground_replyChangesGet a real test reply from a draft or the live brain. Nothing goes to Telegram.
list_playground_sessionsReadsFind recent test conversations of a creator.
get_playground_conversationReadsRead a test conversation and what the AI noted.
explain_playground_turnReadsExplain why the AI answered as it did on one turn.

Conversation styles and advanced replies #

Main permission: Configure agency AI; the advanced replies journal needs Read sales and Read reply diagnostics.

ToolTypeWhat it does
get_conversation_variantsReadsRead the three conversation styles and their settings.
get_workspace_jev_usageReadsRead the usage journal of the advanced replies for one account.

Fans and conversations #

Main permission: Read fans and conversations; import needs Import fan history.

ToolTypeWhat it does
list_workspace_fansReadsList the fans of an account or a creator.
list_workspace_conversationsReadsList the conversations of an account or a creator.
get_workspace_messagesReadsRead the messages of one fan.
get_workspace_control_historyReadsRead when a conversation was paused or resumed.
set_workspace_fan_pausedChangesPause or resume the AI for one fan.
import_workspace_fan_historyChangesPreview, then add past fans and messages. Sends nothing.
get_workspace_fan_timeline_memoryReadsRead what the AI remembers about a fan, day by day.
get_workspace_fan_spendingReadsRead what a fan really spent, and a 90-day estimate.
set_workspace_fan_spend_consentChangesRecord or withdraw a fan consent you already have.
export_workspace_fanReadsExport everything the agency holds about one fan.
delete_workspace_fanChangesErase one fan data on request.
list_workspace_safety_alertsReadsRead the safety alerts: a possible minor, a fan in distress.
ack_workspace_safety_alertChangesClose a safety alert with a note of what your team did.

Fan lists #

Main permission: Manage workspace setup; reading members needs Read fans and conversations, changing them needs Import fan history.

ToolTypeWhat it does
list_workspace_fan_listsReadsList the fan lists with their rule.
save_workspace_fan_listChangesCreate a fan list, or rename it or change its rule. Sends nothing.
delete_workspace_fan_listChangesDelete a fan list nothing uses any more.
list_workspace_fan_list_membersReadsRead the fans a lead agent put in a list.
set_workspace_fan_list_membersChangesAdd fans to a list by hand, or undo a manual add (50 per call).

Sales, tracking and events #

Main permission: Read sales.

ToolTypeWhat it does
list_workspace_salesReadsRead the sales of an account, several accounts or a creator.
list_workspace_eventsReadsRead the stream of sales and safety events.
list_workspace_tracking_linksReadsList the tracking links with clicks and results. Read only.
create_workspace_tracking_linkChangesCreate a tracking link with its pixel and postback settings. Not working yet: create links in the Console for now.
update_workspace_tracking_linkChangesChange a tracking link. Not working yet: use the Console for now.
delete_workspace_tracking_linkChangesArchive a tracking link; its stats stay. Not working yet: use the Console for now.
restore_workspace_tracking_linkChangesBring an archived tracking link back. Not working yet: use the Console for now.
add_workspace_tracking_domainChangesAdd your own domain for tracking links. Not working yet: use the Console for now.
verify_workspace_tracking_domainChangesCheck the DNS of a tracking domain and turn it on. Not working yet: use the Console for now.
list_workspace_payment_linksReadsList the payment links.
create_workspace_payment_linkChangesAdd a payment link (https, at most 20). Needs Manage workspace setup too.
update_workspace_payment_linkChangesChange a payment link. Needs Manage workspace setup too.
delete_workspace_payment_linkChangesDelete a payment link. Needs Manage workspace setup too.
list_workspace_payments_to_refundReadsList the Stars payments to refund: a fan who paid twice for the same media.
list_workspace_message_plus_campaignsReadsList the Message+ campaigns and their status.
get_workspace_delivery_statusReadsRead what may block replies on an account.
set_workspace_delivery_modeChangesPut a creator and her accounts in Test or Live.
list_workspace_webhooksReadsList the outgoing sales webhooks.
create_workspace_webhookChangesPreview, then create a signed webhook.
set_workspace_webhook_enabledChangesTurn a webhook on or off.
list_workspace_webhook_deliveriesReadsRead the last 100 deliveries of a webhook.
test_workspace_webhookChangesSend a test event to a webhook.
retry_workspace_webhook_deliveryChangesSend a failed delivery again.

FanGate #

Main permission: Manage workspace setup.

ToolTypeWhat it does
get_workspace_fangate_connectionReadsRead whether the creator is connected to FanGate, and its currency.
list_workspace_fangate_jobsReadsList the FanGate items and packs and their state.
prepare_workspace_fangate_mediaChangesPrepare one Vault media for FanGate, with a price.
create_workspace_fangate_packChangesMake one FanGate checkout from 1 to 10 ready media.
update_workspace_fangate_jobChangesRefresh, reprice or retry a FanGate item.
get_workspace_sells_withReadsRead how each creator sells by default: Stars or FanGate.
set_workspace_sells_withChangesChoose how one creator sells by default. Sends nothing.
get_workspace_dropp_connectionReadsRead a creator's Dropp Fans connection. Keys are never returned.
list_workspace_dropp_paymentsReadsList a creator's Dropp Fans payments.
list_workspace_dropp_attentionReadsList the Dropp Fans sales and creators that need a person.

Agency settings #

Main permission: Manage workspace setup.

ToolTypeWhat it does
get_workspace_agencyReadsRead the agency name, logo, time zone, currency and default AI Brain.
update_workspace_agencyChangesChange them, as Users › Agency settings does.
get_workspace_leaderboard_settingsReadsRead whether the agency is on the public leaderboard.
set_workspace_leaderboard_settingsChangesJoin or leave the leaderboard. Token created by the workspace owner only.

Share for Share #

Main permission: Manage workspace setup.

ToolTypeWhat it does
list_workspace_sfs_marketReadsBrowse the other agencies' creators open to a story swap.
list_workspace_sfs_requestsReadsRead your proposals, received and sent, and their status.
propose_workspace_sfsChangesPropose a story swap to another agency. Preview first.
accept_workspace_sfsChangesAccept a proposal you received.
decline_workspace_sfsChangesDecline a proposal you received.
cancel_workspace_sfsChangesCancel a proposal, sent or received. The other agency is told.
get_workspace_sfs_listingReadsRead what your agency shows of its creators in the market.
update_workspace_sfs_listingChangesChange what one creator shows in the market.

Team #

Main permission: Manage workspace setup.

ToolTypeWhat it does
list_workspace_employeesReadsList the employees and the permissions they can get.
save_workspace_employeeChangesCreate or change an employee. Takes effect at once.
disable_workspace_employeeChangesTurn an employee off, keeping the history.
send_workspace_employee_invitationChangesSend the invitation e-mail to a saved employee.

Balance and licences #

Main permission: Read sales for the reads; changes need the Spend the balance on licences right on the token (it needs Read sales too, only the workspace owner can give it, never on by default), within the Daily limit for licences of the token.

ToolTypeWhat it does
list_workspace_licencesReadsRead the licences: stock, price, each account, renewals.
assign_workspace_licenceChangesGive one Telegram account a licence, paid from the balance.
set_workspace_licence_auto_renewChangesTurn auto-renew on or off for one account.
set_workspace_licencesChangesOne licence action on 1 to 50 accounts at once.
remove_workspace_licenceChangesTake the licence off an account; it goes back to the stock with its days left.
list_workspace_licence_eventsReadsRead the licence journal.
list_workspace_licence_mcp_logReadsRead the licences put on accounts by an MCP token.
get_workspace_balanceReadsRead the balance, and whether Lana can still answer.
list_workspace_ledgerReadsRead the Billing activity: top-ups, fees, licences.
Note

The list follows the server. When LanaChat adds a tool, your assistant sees it at its next connection, before this page is updated.

Tutorial: MCP tool reference: every tool, by screen