Tools and details
Each MCP tool acts in Harmony as the user who created your API key, or the user who signed in, so it can see and change only what that user can in the Account.
Read tools
voice_agents_listlists your Voice agents with their status and live version.voice_agent_getreads one Voice agent: its persona, script goals and their IDs, the fields it collects, prepared responses, calling settings, and recent versions. It reads the live version unless you ask for another, anddetail: "full"adds the complete configuration.contacts_searchsearches your contacts by Harmonyid, byexternalIdwithsourceKind, or bysearchTerm,status,sourceKind,addedSince,addedBefore, andassignedWorkflowId, theworkflowIdof the Voice agent they're assigned to.calls_searchsearches your calls by Voice agent, contact, start time, outcome, direction, or part of a contact's name or phone number, newest first. Test calls from the agent editor are left out unlessincludePreviewsis true.call_getreads one call: when it happened, the agent and contact, the outcome, the summary, and the values the agent collected.includeTranscript: trueadds what each side said.detail: "trace"adds the transcript with each agent line's reasoning: the goals the agent acted on, where each part of the line came from, the knowledge offered to it, the model's thinking and tool calls, and timing. Itsversionidentifies the agent script the line ran on; several agent versions can share one, so it isn't a version IDvoice_agent_getaccepts. Calls recorded before reasoning was available have none, and the shape may still change. The Public API transcript endpoint takes the samedetail=trace. It also reads a test call by its preview ID once the call ends.analytics_querycounts and breaks down calls, script goals, and contacts across the Account or for one Voice agent: totals, trends over time, goal completion and drop-off, and funnels. It runs one query per call, in your Account's time zone unless you pass another.docs_readreads Harmony's docs: the platform guide on building, deploying, and reviewing agents in the Harmony app, the script reference, and the guide toanalytics_query.
Time inputs take ISO 8601 times or times relative to now, such as now-7d or now-12h.
The search tools return one page of short rows at a time. They accept limit, nextToken from the previous page, and fields to choose which fields each row returns. Calls and Voice agents include a link that opens them in Harmony.
A result longer than 40,000 characters is cut. A search keeps the rows that fit and says how to read the rest, and call_get keeps the start of a long transcript; any other tool returns an error asking for less.
Build tools
These tools build and test Voice agents. Edits go to your draft, the same draft you see in the agent editor, and reach contacts only when the agent is published.
voice_agent_createcreates a Voice agent from Harmony's default script, or as a copy of another agent without its phone numbers or contacts. A new agent makes no calls until it's published.voice_agent_editchanges your draft in one batch: script goals and responses, persona, voice, placeholder defaults, pronunciation, and calling settings. If one edit fails, nothing is saved.voice_agent_preview_chattalks to the agent in text, one contact turn at a time. It uses your draft, or the live version when you have no draft, unless you ask for another version. Ending the chat saves it as a call.voice_agent_preview_callhas the agent call a phone number now. It calls your own phone unless you pass another Verified phone number of the Account. Read the outcome withcall_getafter the call ends.voice_agent_publishmakes your draft, or a saved version you name, live, so calls use it. Publishing an older version rolls the agent back. If someone published a newer version after your draft started, it refuses unless the assistant passesreplaceNewerLive.
Harmony doesn't ask you to confirm a change. Your client's tool approval settings decide that, so keep approval on for voice_agent_publish, which changes what contacts hear, and voice_agent_preview_call, which rings a real phone.
Other clients
Any MCP client that connects over Streamable HTTP works if it can send an Authorization: Bearer harmony_pk_... header, or sign in through OAuth by registering itself with a Client ID Metadata Document or Dynamic Client Registration. Clients that need a client ID created for them in advance can't sign in.
- Clients that run in a web browser can't connect. The server answers
403to any request with anOriginheader.
Errors
When a tool fails, it returns an error result whose text is the error body, including the code and requestId.
A missing, unknown, or revoked key fails the whole request with 401, so the client can't connect. So does a sign-in that expired or was disconnected; the client then asks you to sign in again.
Keys and data
- The client can read and change everything its user can through these tools, including contact details, call transcripts, and live Voice agents. Create a separate key for each person and client, so you can revoke one without breaking the others.
- Everything a tool returns is sent to the model your client uses, under that provider's terms.
- Tool results contain text written by your contacts and teammates, such as names, notes, and what was said on calls. Treat it as untrusted input to the model, especially when the client can also act through other tools.