OdyDocs

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

ToolScopeHintsTest key
workspace_summaryconversations:readRSame
list_contactscontacts:readRSame
create_contactcontacts:writeWSame (real write)
update_contactcontacts:writeW · ISame (real write)
delete_contactcontacts:writeW · D · ISame (real delete)
list_conversationsconversations:readRSame
get_conversationconversations:readRSame
set_conversation_statusconversations:writeW · ISame (real write)
search_messagesconversations:readRSame
wait_for_messageconversations:readRSame
send_messagemessages:sendW · $Simulated
list_numbersnumbers:readRSame
search_numbersnumbers:manageR · $Same (live inventory)
buy_numbernumbers:manageW · $Simulated
get_messaging_statusnumbers:manageRSame
submit_10dlc_registrationnumbers:manageW · $ · IMock filing
place_callcalls:placeW · $Simulated
get_agentagent:manageRSame
configure_agentagent:manageW · $ · ISaves; publish simulated
connect_agent_to_numberagent:manageW · $ · IReal routing change
list_agentsagent:manageRSame
create_agentagent:manageWSame (real write)
attach_agentagent:manageW · IReal routing change
delete_agentagent:manageW · D · ISimulated
set_agent_recordingagent:manageW · ISame (real write; Growth plan to enable)
get_agent_textingagent:manageRSame
set_agent_textingagent:manageW · ISame (real write)
set_number_textingagent:manageW · ISame (real write)
set_conversation_ai_textingconversations:writeW · ISame (real write)
list_conversation_ai_texting_runsconversations:readRSame
list_knowledgeknowledge:readRSame
get_knowledge_articleknowledge:readRSame
search_knowledgeknowledge:readRSame
create_knowledge_articleknowledge:writeWSame (real write)
update_knowledge_articleknowledge:writeW · ISame (real write)
delete_knowledge_articleknowledge:writeW · D · ISame (real delete)
import_website_knowledgeknowledge:writeW · $Same (reads the live site)
create_knowledge_folderknowledge:writeWSame (real write)
update_knowledge_folderknowledge:writeW · D · ISame (real write)
Test keys still write data

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.

  • q string — 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, company string
  • phone string — E.164.
  • email string

#update_contact

Updates a contact. Only the fields you provide change. phone and email replace the contact's phone and email lists.

  • contactId uuid required
  • firstName, lastName, company, phone, email string

#delete_contact

Permanently deletes a contact. Its conversations remain. This can't be undone.

  • contactId uuid 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.

  • conversationId uuid required

#set_conversation_status

Marks a conversation open or done.

  • conversationId uuid required
  • status "open" | "done" required

#search_messages

Case-insensitive search over message bodies, voicemail transcripts and call notes, newest first. Each match includes its conversationId.

  • q string required
  • limit integer

#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.

  • conversationId uuid required
  • afterActivityId uuid — Only return activities newer than this. Defaults to the newest activity at call time.
  • timeoutSeconds integer — 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.

  • body string required
  • conversationId uuid
  • to string — 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" — Default local.
  • country string — ISO 3166 alpha-2, default US.
  • startsWith string — Area-code prefix (local only).
  • contains string, locality string, state string
  • limit integer

#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.

  • phoneNumber string required — E.164, from search_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.

  • business object required
  • campaign object
  • acknowledge_trial_end boolean — 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.

  • to string required — E.164.
  • from string — One of the workspace's numbers.
  • agentId string — 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).

  • agentId string — One of list_agents; default the primary agent.
  • name, greeting, tone, voice, language string
  • timezone string — IANA, for example America/Chicago.
  • inHoursAction, offHoursAction "agent" | "voicemail" | "app" | "forward"
  • enabled boolean
  • jobs array of {name, instructions}
  • publish boolean

#connect_agent_to_number

Routes a number's inbound calls to an agent. The agent must exist; publish it for live answering.

  • phoneNumber string required — One of the workspace's numbers.
  • agentId string — 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.

  • name string required — ≤ 60 characters; heard in phone menus ("Press 2 for Sales").
  • greeting, tone, voice, language string

#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.

  • agentId string required
  • phoneNumber string required — E.164.
  • mode "number" | "menu" required
  • digit string — Preferred menu key for menu; 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.

  • agentId string 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.

  • enabled boolean required
  • agentId string — Default: the primary agent.
  • acknowledgeConsent boolean — Required with enabled: true the 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 as agent.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.

  • agentId string — Default: the primary agent.
  • limit integer — 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).

  • enabled boolean required
  • agentId string — Default: the primary agent.
  • unlinkLines boolean — With enabled: 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.

  • phoneNumber string required — E.164.
  • agentId string | null required — Agent id, or null to 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.

  • conversationId string required
  • paused boolean required

#list_conversation_ai_texting_runs

What the texting agent did in one conversation — replied, skipped (and why), or failed. Newest first.

  • conversationId string required
  • limit integer — Default 20.

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.

Returns settings (enabled, showInThread, utmTemplate | null), defaults.utmTemplate, baseUrl and the template placeholders. No arguments.

Only provided fields change.

  • enabled boolean — Rewrite links in outbound texts as tracked short links.
  • showInThread boolean — Show "… clicked your link" in conversations (and bump the thread to the top of the inbox on the first click; never an unread badge).
  • utmTemplate string | null — k=v&k=v with {source} {contactRef} {workspaceRef} {line} {code}; null resets 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).

  • enabled boolean — Enable hosted files: every attachment is a page. false = the previous MMS + raw-link behaviour ("just send normal pictures").
  • displayName string | null — Business name on the page (null = workspace name, ≤ 60 chars).
  • logoKey null — Clears the logo; uploading one happens in the app.
  • accent string | null — #rrggbb.
  • websiteUrl string | null — https:// URL for the tracked Visit website button.
  • expiryDays number — 0 (default, as long as the conversation exists) · 7 · 30 · 90.
  • allowSave object — { photos, documents, video }.
  • trackOpens boolean — 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.

  • folderId string — Only articles directly in this folder.

#get_knowledge_article

One article with its full Markdown body, folder, enabled flag and audience.

  • articleId string 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?".

  • q string required — The question or topic.
  • consumer string — agent:<agentId>, texting or texting:<e164>.
  • folderId string — Only this folder and its sub-folders.
  • limit integer — 1–20, default 6.

#create_knowledge_article

Writes a Markdown article (≤ 20,000 characters). Ready at once; published agents its audience admits are updated.

  • title string required
  • content string required — Markdown body.
  • folderId string
  • enabled boolean — Default true.
  • audience "all" | "selected" — Default all.
  • consumers string[] — Consumer keys when audience is selected.

#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.

  • articleId string required
  • title, content string
  • folderId string | null
  • enabled boolean
  • audience "all" | "selected"
  • consumers string[]

#delete_knowledge_article

Permanently deletes an article. Every AI stops using it immediately; this cannot be undone, so confirm with the user first.

  • articleId string 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.

  • url string — https://… public site. Required unless refreshArticleId is set.
  • title string
  • folderId string
  • refreshArticleId string — An existing website article to re-read (url is then ignored; folder and audience are kept).

#create_knowledge_folder

  • name string required
  • description string
  • parentId string — Nest inside another folder (3 levels max).
  • audience "all" | "selected"
  • consumers string[]

#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).

  • folderId string required
  • name string
  • description string | null
  • parentId string | null — null = top level.
  • audience "all" | "selected"
  • consumers string[]
  • delete boolean

#Errors

A tool that fails returns a normal result with isError: true and a readable message, so the model can explain or recover:

JSON
{
  "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.

Last updated Sat Nov 07 2026 00:00:00 GMT+0000 (Coordinated Universal Time)Something wrong on this page? Tell us