mcpField
M
manage-agents

manage-agents

github.com/bolna-aiAgent workflows367 installsUpdated 3d ago
Repository

About manage-agents

A Bolna skill for managing voice agents through the Bolna API, for users maintaining agent configurations and queued calls. It covers listing, inspecting, updating, stopping queued calls, and deleting agents, with guidance on choosing PATCH or PUT.

Key features

  1. 01List and inspect agents
  2. 02Patch selected configuration fields
  3. 03Replace full agent configuration
  4. 04Stop an agent's queued calls
  5. 05Delete an agent

Use cases

  1. 01Change an agent prompt or voice
  2. 02Update a webhook or SIP provider setting
  3. 03Stop queued calls before agent deletion
  4. 04Replace configuration from a complete backup

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bolna-ai/skills --skill manage-agents

After installing, type/manage-agentsin Claude Code to confirm it loaded.

Bundled filesscripts/list_agents.py

Details

From the project README

Manage Bolna Agents

Endpoints

  • List agents: GET https://api.bolna.ai/v2/agent/all
  • Get agent: GET https://api.bolna.ai/v2/agent/{agent_id}
  • Full update: PUT https://api.bolna.ai/v2/agent/{agent_id}
  • Patch update: PATCH https://api.bolna.ai/v2/agent/{agent_id}
  • Delete agent: DELETE https://api.bolna.ai/v2/agent/{agent_id}
  • Stop queued calls for one agent: POST https://api.bolna.ai/v2/agent/{agent_id}/stop

Always send Authorization: Bearer $BOLNA_API_KEY. Send Content-Type: application/json for PUT and PATCH.

Workflow

  1. Use list or get before changing an agent.
  2. Prefer PATCH for small changes to prompt, welcome message, webhook URL, synthesizer, inbound source config, or SIP telephony provider.
  3. Use PUT only when you have the full desired agent document. A partial PUT can drop existing nested configuration.
  4. Save a copy of the existing config before destructive changes.
  5. Use stop before deleting when queued calls should not run.
  6. Delete only after confirming the user understands this cleans up the agent and related operational data.

List agents

curl --request GET \
  --url https://api.bolna.ai/v2/agent/all \
  --header "Authorization: Bearer $BOLNA_API_KEY"

Patch prompt or welcome message

curl --request PATCH \
  --url "https://api.bolna.ai/v2/agent/$AGENT_ID" \
  --header "Authorization: Bearer $BOLNA_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "agent_config": {
      "agent_name": "Support Agent",
      "agent_welcome_message": "Hi {customer_name}, this is Tara from Acme."
    },
    "agent_prompts": {
      "task_1": {
        "system_prompt": "You are a concise support agent. Ask one question at a time."
      }
    }
  }'

Patch SIP telephony provider

curl --request PATCH \
  --url "https://api.bolna.ai/v2/agent/$AGENT_ID" \
  --header "Authorization: Bearer $BOLNA_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"agent_config":{"telephony_provider":"sip-trunk"}}'

After this, map a SIP trunk phone number with setup-inbound for inbound calls, or use a trunk DID as the outbound caller ID.

Stop queued calls

curl --request POST \
  --url "https://api.bolna.ai/v2/agent/$AGENT_ID/stop" \
  --header "Authorization: Bearer $BOLNA_API_KEY"

This stops queued calls for the agent. It is different from stopping one call or one batch.

Delete agent

curl --request DELETE \
  --url "https://api.bolna.ai/v2/agent/$AGENT_ID" \
  --header "Authorization: Bearer $BOLNA_API_KEY"

PUT vs PATCH

WhenUse
Renaming, swapping voice, updating webhook URL, changing the system prompt, toggling task_config flagsPATCH
Wholesale replacement of agent_config from a backed-up documentPUT

PUT requires the full agent_config body — anything you omit is dropped. Common bug: PUT-ing a partial body loses tools_config.api_tools or ingest_source_config. Prefer PATCH when you only know a subset of fields.

See also

  • create-agent — initial creation; same shape PUT expects.
  • make-call — POST /v2/agent/{id}/stop cancels queued calls for one agent without deleting it.
  • bolna-graph-agents — for editing llm_agent.nodes and edge structures.
  • https://raw.githubusercontent.com/bolna-ai/skills/main/references/bolna-core.md — auth, headers, pagination defaults.

Comments

Markdown supported