Skip to content
AdlyseMCP Docs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-reports
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_status
adlyse-adminadlyse-all
  1. Overview
  2. adlyse-workflows

run_assistant

Run an agent once, right now, with a message — how you test a colleague you just built, or re-run one to see what it does.

The run is headless: the agent acts as your organization’s system user, with its configured tools, integrations and skills — exactly as a scheduled run would. Platform-internal agents (the suggestion pipeline, the opportunity investigator) are refused; your own colleagues and the user-visible platform agents are fine.

This spends a real agent run. The dispatch is asynchronous — poll get_assistant_run with the returned thread_id until status is completed, failed or interrupted.

Parameters#

NameTypeRequiredDefaultDescription
assistant_idstringyesThe agent id (from this server’s list_assistants, or get_creation_guide in chat)
messagestringyesWhat the agent wakes up to — a real instruction, the same text a schedule would send it

Returns#

json
{
  "thread_id": "thread_abc123",
  "assistant_id": "assistant_xyz",
  "status": "queued",
  "note": "Dispatched asynchronously; this spends a real run. Poll get_assistant_run(thread_id) ..."
}

Errors#

error_typeWhen
auth_errorMissing / invalid API key
permission_deniedThe credential’s user lacks CAN_MANAGE_WORKFLOW, or the caller is a headless agent
not_foundUnknown agent id, or one outside your organization
invalid_inputEmpty message, or a platform-internal agent

The test loop#

  1. Build or change the colleague (create_assistant / update_assistant on this workflows server, configure_assistant in chat).
  2. run_assistant(assistant_id, message) → thread_id.
  3. Poll get_assistant_run until terminal; read reply, tool_calls and suggestions.
  4. Adjust the instructions and run again.