MCP tool reference
All 39 Ody MCP tools: what each does, its arguments, required scope, annotations and test-mode behaviour.
Every tool requires one scope. tools/list only returns the tools the key can call. Results come back as JSON text in content[0].text, and the same data is also in structuredContent.result.
Annotation key: R read-only · W writes to the workspace · $ spends money or reaches the outside world (openWorldHint) · D destructive · I idempotent (safe to repeat).
#At a glance
| Tool | Scope | Hints | Test key |
|---|---|---|---|
workspace_summary | conversations:read | R | Same |
list_contacts | contacts:read | R | Same |
create_contact | contacts:write | W | Same (real write) |
update_contact | contacts:write | W · I | Same (real write) |
delete_contact | contacts:write | W · D · I | Same (real delete) |
list_conversations | conversations:read | R | Same |
get_conversation | conversations:read | R | Same |
set_conversation_status | conversations:write | W · I | Same (real write) |
search_messages | conversations:read | R | Same |
wait_for_message | conversations:read | R | Same |
send_message | messages:send | W · $ | Simulated |
list_numbers | numbers:read | R | Same |
search_numbers | numbers:manage | R · $ | Same (live inventory) |
buy_number | numbers:manage | W · $ | Simulated |
get_messaging_status | numbers:manage | R | Same |
submit_10dlc_registration | numbers:manage | W · $ · I | Mock filing |
place_call | calls:place | W · $ | Simulated |
get_agent | agent:manage | R | Same |
configure_agent | agent:manage | W · $ · I | Saves; publish simulated |
connect_agent_to_number | agent:manage | W · $ · I | Real routing change |
list_agents | agent:manage | R | Same |
create_agent | agent:manage | W | Same (real write) |
attach_agent | agent:manage | W · I | Real routing change |
delete_agent | agent:manage | W · D · I | Simulated |
set_agent_recording | agent:manage | W · I | Same (real write; Growth plan to enable) |
get_agent_texting | agent:manage | R | Same |
set_agent_texting | agent:manage | W · I | Same (real write) |
set_number_texting | agent:manage | W · I | Same (real write) |
set_conversation_ai_texting | conversations:write | W · I | Same (real write) |
list_conversation_ai_texting_runs | conversations:read | R | Same |
list_knowledge | knowledge:read | R | Same |
get_knowledge_article | knowledge:read | R | Same |
search_knowledge | knowledge:read | R | Same |
create_knowledge_article | knowledge:write | W | Same (real write) |
update_knowledge_article | knowledge:write | W · I | Same (real write) |
delete_knowledge_article | knowledge:write | W · D · I | Same (real delete) |
import_website_knowledge | knowledge:write | W · $ | Same (reads the live site) |
create_knowledge_folder | knowledge:write | W | Same (real write) |
update_knowledge_folder | knowledge:write | W · D · I | Same (real write) |
A test key simulates anything that sends, spends or dials. Contact, conversation-status and routing changes are real writes to the workspace. Use a dedicated test workspace if you don't want them in your live data.
#Orientation
#workspace_summary
A snapshot of the workspace: contact count, open and done conversation counts, unread total, active numbers, and message and call volume over the last 7 days. Good as an assistant's first call.
Arguments: none.
#Contacts
#list_contacts
Lists or searches contacts.
qstring — Full-text search over names, company, phones and emails.
#create_contact
Creates a contact. Provide at least one of firstName, lastName, company, phone, email.
firstName,lastName,companystringphonestring — E.164.emailstring
#update_contact
Updates a contact. Only the fields you provide change. phone and email replace the contact's phone and email lists.
contactIduuid requiredfirstName,lastName,company,phone,emailstring
#delete_contact
Permanently deletes a contact. Its conversations remain. This can't be undone.
contactIduuid required
#Conversations
#list_conversations
Lists recent conversations, most recent activity first.
status"open" | "done"
#get_conversation
The full thread: messages, calls, voicemails, transcripts and AI summaries.
conversationIduuid required
#set_conversation_status
Marks a conversation open or done.
conversationIduuid requiredstatus"open" | "done" required
#search_messages
Case-insensitive search over message bodies, voicemail transcripts and call notes, newest first. Each match includes its conversationId.
qstring requiredlimitinteger
#wait_for_message
Long-polls for a new inbound message in a conversation, for up to 25 seconds. It returns { activities, lastActivityId } as soon as something arrives, or { activities: [], timedOut: true, lastActivityId }. Call it again with afterActivityId: lastActivityId to keep waiting without missing anything.
conversationIduuid requiredafterActivityIduuid — Only return activities newer than this. Defaults to the newest activity at call time.timeoutSecondsinteger — 1–25, default 20.
#Texting
#send_message
Sends an SMS. Provide body, plus either conversationId or to (E.164). With to, the conversation is created from the workspace's number. Live texting needs 10DLC.
bodystring requiredconversationIduuidtostring — E.164.
#Numbers and 10DLC
#list_numbers
The workspace's phone numbers, with routing (voiceMode).
#search_numbers
Searches carrier inventory, with Ody's monthly price per result: local numbers are $5/mo (the first is included in the plan), toll-free $10/mo (calling only).
type"local" | "toll_free" — Defaultlocal.countrystring — ISO 3166 alpha-2, defaultUS.startsWithstring — Area-code prefix (local only).containsstring,localitystring,statestringlimitinteger
#buy_number
Buys a number. Spends real money: it's billed to the workspace's plan like an in-app purchase. The same plan, identity and App Store gates as the REST endpoint apply.
phoneNumberstring required — E.164, fromsearch_numbers.type"local" | "toll_free" — A hint; Ody works out the real type from the number.
#get_messaging_status
10DLC status: step, canText and any failure reasons. See Messaging (10DLC).
#submit_10dlc_registration
Files the brand and campaign. Submitting is a purchase. On a free trial it ends the trial and charges the plan plus the $20 per-number setup fee right away, so the assistant must tell the user and pass acknowledge_trial_end: true. Fields match POST /messaging/registration.
businessobject requiredcampaignobjectacknowledge_trial_endboolean — Required on a trial, after the user has been told.
#Calls and agent
#place_call
The published AI agent calls to and holds the conversation. Billed in AI credits like an inbound AI call. See Place an AI call.
tostring required — E.164.fromstring — One of the workspace's numbers.agentIdstring — Which agent speaks when the workspace runs several. Default: the primary agent.
#get_agent
The agent's configuration (name, greeting, tone, voice, jobs, hours, publish status) plus this cycle's credit usage. Pass agentId for one of the other agents; without it, the primary agent.
#configure_agent
Creates or updates the agent. Only the fields you provide change. Pass publish: true to push the configuration live in the same call. Pass agentId to edit one of the other agents (the primary without it).
agentIdstring — One oflist_agents; default the primary agent.name,greeting,tone,voice,languagestringtimezonestring — IANA, for exampleAmerica/Chicago.inHoursAction,offHoursAction"agent" | "voicemail" | "app" | "forward"enabledbooleanjobsarray of {name, instructions}publishboolean
#connect_agent_to_number
Routes a number's inbound calls to an agent. The agent must exist; publish it for live answering.
phoneNumberstring required — One of the workspace's numbers.agentIdstring — Which agent answers; default the primary agent.
#Several AI agents
A workspace can run several agents — one per line, a Spanish line, a sales desk (Starter 1, Growth 3, Enterprise 10, trials 3). They share the knowledge base and AI credits. The primary agent is the first one created; it is what get_agent, configure_agent, connect_agent_to_number and place_call mean when you omit agentId.
#list_agents
Every agent with how callers reach it — reach.numbers (lines answered directly), reach.menuNumbers ([{e164, digit}] phone-menu keys), reach.flowNumbers (call-flow lines) — plus the plan's limit and canAddMore.
#create_agent
Adds another agent as a draft. Fails with a plain message when the plan's limit is reached. Configure it with configure_agent(agentId), give it a line with attach_agent or connect_agent_to_number, then publish.
namestring required — ≤ 60 characters; heard in phone menus ("Press 2 for Sales").greeting,tone,voice,languagestring
#attach_agent
Makes an agent reachable on a line. mode: "number" sends the line's inbound calls to this agent. mode: "menu" is the failover for a workspace with one line: the line becomes — or extends — a phone menu with a key for this agent; whatever answered before keeps key 1 and the new agent takes the next free key (needs the Growth plan's phone menus — otherwise the tool says so). Lines running a call flow must be edited in the flow builder instead.
agentIdstring requiredphoneNumberstring required — E.164.mode"number" | "menu" requireddigitstring — Preferred menu key formenu; default the next free key.
Returns { mode, e164, digit?, menuCreated? }.
#delete_agent
Deletes an agent — never the last one. Lines it answered ring the team again; phone-menu keys that led to it are removed. Irreversible; test keys simulate.
agentIdstring required
#AI call recording
#set_agent_recording
Turns AI call recording on or off for one agent. When on, every call the agent handles is recorded dual-channel and the audio lands on the call in the thread. Needs the Growth-plan call-recording feature to enable; disabling always works. No publish — applies from the next call. Same contract as POST /agents/:id/recording.
enabledboolean requiredagentIdstring — Default: the primary agent.acknowledgeConsentboolean — Required withenabled: truethe first time for an agent. Some jurisdictions require every party on a call to be told it is recorded; Ody plays no announcement — put a line in the agent's greeting. Without the flag the tool returns an error naming consent. Stored once asagent.recordingConsent; later off/on flips never ask again.
Returns { agent } — read agent.recordCalls and agent.recordingConsent.
#Business AI Texting
Three switches decide whether the agent answers inbound texts: the agent (set_agent_texting), the line (set_number_texting), and the thread (set_conversation_ai_texting). Same surface as the AI Texting API. No publish — changes are immediate.
#get_agent_texting
Status for one agent: enabled, agentEnabled, links.textingNumbers, textingReady, derived live, creditsPerSegment (30), and recent runs.
agentIdstring — Default: the primary agent.limitinteger — Recent runs to return (1–100, default 20).
#set_agent_texting
Agent-level AI texting switch. Lines stay linked when you turn it off; pass unlinkLines: true with enabled: false to clear them (returned as released).
enabledboolean requiredagentIdstring — Default: the primary agent.unlinkLinesboolean — Withenabled: false, also clear every line's texting link.
#set_number_texting
Link a number's inbound texts to an agent, or pass agentId: null to unlink. Independent of who answers the line's calls.
phoneNumberstring required — E.164.agentIdstring | null required — Agent id, ornullto unlink.
#set_conversation_ai_texting
Take a thread over (paused: true) or hand it back (paused: false). Other threads keep working. send_message does not pause the agent by itself.
conversationIdstring requiredpausedboolean required
#list_conversation_ai_texting_runs
What the texting agent did in one conversation — replied, skipped (and why), or failed. Newest first.
conversationIdstring requiredlimitinteger — Default 20.
#Link tracking
The workspace's tracked-short-link preference — the same three switches as Settings → Analytics in the app and the Link tracking API. When on, every URL in an outbound text (a teammate's, the AI texting agent's, Astra's during a call, or send_message) leaves as link.ody.co/<code>; human clicks appear in the thread, in Analytics and as the link.clicked webhook. On by default since 2026-11-07 (configure_link_tracking { enabled: false } opts out); changes are immediate.
#get_link_tracking
Returns settings (enabled, showInThread, utmTemplate | null), defaults.utmTemplate, baseUrl and the template placeholders. No arguments.
#configure_link_tracking
Only provided fields change.
enabledboolean — Rewrite links in outbound texts as tracked short links.showInThreadboolean — Show "… clicked your link" in conversations (and bump the thread to the top of the inbox on the first click; never an unread badge).utmTemplatestring | null —k=v&k=vwith{source}{contactRef}{workspaceRef}{line}{code};nullresets to the default. Parameters already on a link are never overwritten.
#Hosted files
The workspace's Hosted files preference — the same card as Settings → Analytics → Hosted files in the app and the Hosted files API. When on (the default), every photo, gallery, video or PDF that a teammate, the AI or send_message texts leaves as a branded link.ody.co/m/<token> page (no per-send choice); the recipient's opens, photo views and saves appear in the thread, in Analytics → Files and as the media.opened / media.downloaded webhooks. configure_hosted_files { enabled: false } restores plain sending exactly.
#get_hosted_files
Returns settings (enabled, displayName, logoKey, accent, websiteUrl, expiryDays, allowSave {photos, documents, video}, trackOpens) and baseUrl. No arguments.
#configure_hosted_files
Only provided fields change; immediate for the next text (pages already sent keep their branding snapshot).
enabledboolean — Enable hosted files: every attachment is a page.false= the previous MMS + raw-link behaviour ("just send normal pictures").displayNamestring | null — Business name on the page (null= workspace name, ≤ 60 chars).logoKeynull — Clears the logo; uploading one happens in the app.accentstring | null —#rrggbb.websiteUrlstring | null —https://URL for the tracked Visit website button.expiryDaysnumber —0(default, as long as the conversation exists) ·7·30·90.allowSaveobject —{ photos, documents, video }.trackOpensboolean — Record opens and show them in the thread.
#Knowledge
The workspace's knowledge base — what every AI agent and AI texting (the inbox's suggested replies and the automated texting agent) know. Articles live in folders; each has an Available to AI switch (enabled) and an audience (all, or selected consumer keys: agent:<agentId>, texting for AI texting on every number, texting:<e164> for AI texting on one number). A folder's audience restricts everything inside it; an article can narrow but never widen. Full field reference: Knowledge API. Writes take effect immediately — no publish step.
#list_knowledge
Every folder and article (without bodies) plus the consumers you can grant access to — the agents by name with their keys, texting, and one texting:<e164> per line when the workspace has several numbers. Call this first to resolve names to keys.
folderIdstring — Only articles directly in this folder.
#get_knowledge_article
One article with its full Markdown body, folder, enabled flag and audience.
articleIdstring required
#search_knowledge
The passages that best answer a question, with the article each comes from. Pass consumer to see only what that AI can read — the way to answer "why doesn't my sales agent know the cancellation fee?".
qstring required — The question or topic.consumerstring —agent:<agentId>,textingortexting:<e164>.folderIdstring — Only this folder and its sub-folders.limitinteger — 1–20, default 6.
#create_knowledge_article
Writes a Markdown article (≤ 20,000 characters). Ready at once; published agents its audience admits are updated.
titlestring requiredcontentstring required — Markdown body.folderIdstringenabledboolean — Defaulttrue.audience"all" | "selected" — Defaultall.consumersstring[] — Consumer keys whenaudienceisselected.
#update_knowledge_article
Changes only the fields you provide. Use enabled: false to hide an article from every AI without deleting it; folderId: null moves it to the top level.
articleIdstring requiredtitle,contentstringfolderIdstring | nullenabledbooleanaudience"all" | "selected"consumersstring[]
#delete_knowledge_article
Permanently deletes an article. Every AI stops using it immediately; this cannot be undone, so confirm with the user first.
articleIdstring required
#import_website_knowledge
Reads a public website (up to 20 main pages) and organizes it into one article, or re-reads an existing website article in place. Blocks for 20–40 seconds.
urlstring —https://…public site. Required unlessrefreshArticleIdis set.titlestringfolderIdstringrefreshArticleIdstring — An existing website article to re-read (urlis then ignored; folder and audience are kept).
#create_knowledge_folder
namestring requireddescriptionstringparentIdstring — Nest inside another folder (3 levels max).audience"all" | "selected"consumersstring[]
#update_knowledge_folder
Rename, move, change the audience — or delete with delete: true (articles and sub-folders move up to the parent; nothing is lost).
folderIdstring requirednamestringdescriptionstring | nullparentIdstring | null —null= top level.audience"all" | "selected"consumersstring[]deleteboolean
#Errors
A tool that fails returns a normal result with isError: true and a readable message, so the model can explain or recover:
{
"content": [{ "type": "text", "text": "Unauthorized: this API key does not have the 'messages:send' scope required by send_message. Ask the workspace admin for a key with that scope." }],
"isError": true
}Protocol-level problems (unknown tool, missing name) come back as JSON-RPC errors instead. See Protocol details.