{"name":"Viva Marketing Manager — Agent API","version":"1.1.0","protocol":{"mcp":{"transport":"streamable-http","endpoint":"https://mcp.goviva.ai/mcp","protocolVersions":["2025-06-18","2025-03-26","2024-11-05"],"methods":["initialize","tools/list","tools/call"]}},"auth":{"oauth":{"issuer":"https://mcp.goviva.ai","resource":"https://mcp.goviva.ai/mcp","scopes":["mcp:read","mcp:write","mcp:send"]},"api_key":{"header":"X-Viva-Key (or Authorization: Bearer vsk_…)","issue":"business issues scoped keys in the dashboard"}},"capabilities":[{"name":"search_knowledge","title":"Search knowledge","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Search THIS business's own knowledge base (uploaded documents, FAQs, services, pricing, hours, policies). Use this for any question about how the business operates or what it offers, in the owner's own words.","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"What to look up in the knowledge base"}},"required":["query"]}},{"name":"search_feature_docs","title":"Search feature docs","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Search Viva's OWN product documentation — how the features of this dashboard work (blog, campaigns, forms, calendar, chat, voice, SMS, settings, etc.). Use for any 'how do I…' / 'where do I…' question about using the product itself, then answer with the documented steps. (This is product docs, not the business's knowledge base — use search_knowledge for that.)","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"The feature or task to look up, e.g. \"write a blog post\""}},"required":["query"]}},{"name":"list_product_updates","title":"List product updates","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Viva's release notes — the features and improvements that have actually shipped, newest first. Use for ANY 'what's new', 'what did you launch', 'what changed this week/month', 'release notes', 'what's been added' question. Also use to check whether something the owner is asking for shipped recently. Never tell an owner you can't see a changelog — call this.","input_schema":{"type":"object","properties":{"since_days":{"type":"number","description":"Only updates from the last N days (e.g. 7 for \"this week\", 30 for \"this month\"). Omit for the latest regardless of date."},"query":{"type":"string","description":"Optional: only updates matching this word or area, e.g. \"email\", \"booking\""},"limit":{"type":"number","description":"Max updates to return (default 10)"}}}},{"name":"search_roadmap","title":"Search roadmap","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Viva's public roadmap — what is being considered, planned, in progress, in beta, or released. Use when the owner asks for something the product does not have yet ('can it do X?', 'when will you add X?', 'is X coming?') so you can tell them whether it is already on the way BEFORE filing a new request with submit_feature_request.","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"What they are asking for, e.g. \"recurring appointments\""},"limit":{"type":"number","description":"Max items (default 8)"}}}},{"name":"get_business_snapshot","title":"Get business snapshot","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get a quick real-time snapshot of the business: new leads (24h), upcoming appointments (7 days), and open tasks. Use to answer \"what's going on\" / \"give me an overview\" / daily-briefing style questions.","input_schema":{"type":"object","properties":{}}},{"name":"get_integration_status","title":"Get integration status","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"What this business has actually CONNECTED — Google Business Profile, calendar, payments, POS, email, and the rest. Call this for any 'do you support X', 'is X connected', 'can I do X with X' question BEFORE answering from product docs. Docs describe what Viva can do; this says what is live for THIS business right now. Never promise a capability that depends on a connection this returns as not connected.","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"Optional: filter by name or category, e.g. 'google', 'calendar', 'payments'"}}}},{"name":"list_tags","title":"List tags","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List this business's CRM tags (segments) with how many customers and leads carry each one. Call this FIRST for any question about tags, lists or segments — before count_records or search_customers with a tag filter — so you use the exact tag names this business uses. Tag names are matched exactly; a near miss answers a different question. Also the right tool for \"what lists do I have\" / \"how is my customer base segmented\".","input_schema":{"type":"object","properties":{"entity":{"type":"string","description":"Optional: 'customers' or 'leads' to count only that side. Default: both."},"include_unused":{"type":"boolean","description":"Include tags nothing is tagged with (default false)"}}}},{"name":"set_customer_tag","title":"Set customer tag","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add or remove ONE tag on ONE customer or lead. Identify them with entity_id (from search_customers/list_leads), or with `match` — a name or email — which refuses if it's ambiguous rather than picking someone. The tag must already exist: call list_tags first, and only pass create: true after the owner has confirmed they want a brand-new tag. For many records at once use bulk_tag instead.","input_schema":{"type":"object","properties":{"entity":{"type":"string","description":"'customers' (default) or 'leads'"},"action":{"type":"string","description":"'add' or 'remove'"},"tag":{"type":"string","description":"Tag name, exactly as list_tags spells it"},"entity_id":{"type":"integer","description":"The customer/lead id — preferred"},"match":{"type":"string","description":"Or a name/email to look one up. Refuses if more than one matches."},"create":{"type":"boolean","description":"Create the tag if it does not exist. Only after the owner explicitly agreed to a NEW tag."}},"required":["action","tag"]}},{"name":"bulk_tag","title":"Bulk tag","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add or remove ONE tag across everyone matching a filter — the SAME filter count_records takes (has_tags, missing_tags, has_fields, missing_fields, status, since_days), so the set is exactly what you counted. TWO STEPS, ALWAYS: call it first WITHOUT confirm_count to get a preview (how many would change, and a sample), tell the owner that number in plain words and wait for them to agree, THEN call again with confirm_count set to the number you were shown. If the set moved in between, the write refuses. Caps at 500 records. Every apply returns a batch_id that undo_change reverses exactly.","input_schema":{"type":"object","properties":{"entity":{"type":"string","description":"'customers' (default) or 'leads'"},"action":{"type":"string","description":"'add' or 'remove'"},"tag":{"type":"string","description":"Tag name, exactly as list_tags spells it"},"create":{"type":"boolean","description":"Create the tag if it does not exist. Only after the owner explicitly agreed to a NEW tag."},"confirm_count":{"type":"integer","description":"The number from the preview. Omit for a preview; supply it to apply."},"has_tags":{"type":"array","items":{"type":"string"}},"missing_tags":{"type":"array","items":{"type":"string"}},"match_tags":{"type":"string"},"has_fields":{"type":"array","items":{"type":"string"}},"missing_fields":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"since_days":{"type":"number"},"include_closed":{"type":"boolean"}},"required":["action","tag"]}},{"name":"undo_change","title":"Undo change","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Reverse a change an assistant made, exactly — a tag edit, a seeded backlog, a batch of scheduled actions, or a chatbot settings change. Use the batch_id the change returned, or call list_recent_changes to find it. It only touches what the change actually changed: a customer who already carried the tag keeps it, a seeded tactic the owner has since edited or scheduled work off is kept, and an action that has since been approved or sent is left alone. When it reports skipped or kept items, say so — 'undone' on its own would overstate it. Over a connected assistant (Claude, ChatGPT) it reverses only changes an assistant made, never the owner's own edits on the Customers page.","input_schema":{"type":"object","properties":{"batch_id":{"type":"integer","description":"The batch_id returned when the change was made"}},"required":["batch_id"]}},{"name":"list_recent_changes","title":"List recent changes","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the recent changes made through this assistant, newest first — tag edits, seeded backlogs, batches of scheduled actions — with what was changed, how many records, and whether it has been undone. Use it to answer \"what did you just do?\" and to find a batch_id for undo_change.","input_schema":{"type":"object","properties":{"limit":{"type":"integer","description":"Max rows (default 10, max 50)"}}}},{"name":"count_records","title":"Count records","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Count how many records of a kind this business has. Use for EVERY 'how many…', 'do I have any…', 'what's my total…' question — leads, customers, appointments, quotes, tasks, forms, conversations, calls, notes. This is the ONLY correct way to answer a quantity question: list tools return one page and their totals are for pagination, not for counting. Optionally break the count down by status or by tag, and — for customers and leads — filter by which tags they carry or DON'T carry, and by which fields are filled in or blank. These COMBINE: 'how many customers have neither pilot tag but do have an email' is ONE call (missing_tags + has_fields), never a page you count by eye. Call list_tags first to get exact tag names.","input_schema":{"type":"object","properties":{"entity":{"type":"string","description":"What to count: leads | customers | appointments | quotes | tasks | forms | conversations | calls | notes"},"status":{"type":"string","description":"Optional: only records with this status"},"since_days":{"type":"number","description":"Optional: only records created in the last N days"},"by_status":{"type":"boolean","description":"Also return the breakdown per status (default false)"},"include_closed":{"type":"boolean","description":"Leads only: include won/lost/closed. Default false, matching the Pipeline page. Set true for \"how many leads have I EVER had\"."},"has_tags":{"type":"array","items":{"type":"string"},"description":"Customers/leads only: only those carrying these tags. Names must match list_tags exactly."},"missing_tags":{"type":"array","items":{"type":"string"},"description":"Customers/leads only: only those carrying NONE of these tags. This is how you answer \"how many customers do NOT have tag X or Y\" — pass both names here and read `total`."},"match_tags":{"type":"string","description":"How to combine has_tags: 'all' (default, carries every one) or 'any' (carries at least one)"},"by_tag":{"type":"boolean","description":"Customers/leads only: also return how many of the counted records carry each tag, plus how many carry none"},"has_fields":{"type":"array","items":{"type":"string"},"description":"Customers/leads only: only those with these fields filled in. Customers: email, phone, name, address, company, website, birthday, notes. Leads: email, phone, name, company, website, notes, next_action. Combines with the tag filters — \"no pilot tag AND has an email\" is one call."},"missing_fields":{"type":"array","items":{"type":"string"},"description":"Customers/leads only: only those with these fields blank or missing (e.g. [\"email\"] for \"who am I missing an address for\")."}},"required":["entity"]}},{"name":"get_sellability_score","title":"Get sellability score","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Score how much of this business would survive its owner leaving — what a buyer would actually be purchasing. Scored on TRANSFERABILITY, not marketing: owner independence, repeat and contracted revenue, whether the customer list is reachable, reputation, and whether demand arrives without the owner. Use it when the owner asks what their business is worth, whether it is sellable, how to make it worth more, or what would happen if they stepped back. Check `confidence` FIRST: 'indicative' means too little of the business is recorded to quote the number at all — report the blind spots instead of the score. Read `coverage` before quoting `score` — a driver we cannot measure is a blind spot, NOT a zero, and is dropped from the total rather than counted as failure. Financial drivers are deliberately not scored because we do not hold the books. `priority_fixes` is ranked by how much each one would actually move the number.","input_schema":{"type":"object","properties":{}}},{"name":"score_prospect_sellability","title":"Score prospect sellability","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Score PROSPECTS from Find Customers on how acquirable they look — private rather than a franchise unit, established, a real footprint, a live website, and a reputation where we can see one. Use it to rank a page of search results for a broker or an acquirer. Pass the b2b_businesses ids you want graded. Duplicate rows for the same operator are merged before scoring, and franchise status is DERIVED from how far the brand spreads across cities and phone numbers, so a franchise unit scores low and is labelled. Sector is never scored — each row carries `is_trade` so you can filter to trades and still compare scores fairly. Check `confidence` before quoting a score.","input_schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer"},"description":"b2b_businesses ids to score (max 200)."}},"required":["ids"]}},{"name":"check_market_coverage","title":"Check market coverage","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Check a LIST of business names against the Find Customers databases and report how many we already hold. Use this to answer \"do we know these businesses?\" for a broker's deal list, a chamber roster, a conference exhibitor list, or a prospect's client logos — before claiming coverage in a meeting. Reports two separate rates: in_working_set (in the enriched set Find Customers can act on today) and in_corpus_only (we hold the record but haven't pulled it in). Contacts are never returned; unlock those through Find Customers. A 'weak_match_only' row means the name matched a substring by coincidence — treat it as not found.","input_schema":{"type":"object","properties":{"businesses":{"type":"array","description":"Business names to check. Each item is a name string, or an object {name, city, state} when you know the location — supplying city/state removes same-name businesses elsewhere.","items":{"type":"string"}},"states":{"type":"array","items":{"type":"string"},"description":"Optional two-letter state codes to scope the corpus probe, e.g. ['CA','NV']."},"include_corpus":{"type":"boolean","description":"Also probe the full R2 corpus beyond the working set. Default true. Slower (one probe per name) — set false for a fast working-set-only answer."},"examples_per_name":{"type":"integer","description":"Sample matches to return per input name (default 3, max 10)."}},"required":["businesses"]}},{"name":"list_leads","title":"List leads","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the business's leads, most recent first. Optionally filter by status (new, contacted, qualified, proposal, closed), by tag, or by the product categories a lead is interested in (the \"Interested in\" list on the lead). A lead is a person at a business: email, phone, title and linkedin_url are the PERSON's; company, website, company_email and company_phone are the BUSINESS's (info@, the front desk). Returns both, plus status, value, source, next action, the lead's tags, and interested_in (product category names).","input_schema":{"type":"object","properties":{"status":{"type":"string","description":"Optional status filter: new | contacted | qualified | proposal | closed"},"include_closed":{"type":"boolean","description":"Include won/lost/closed leads. Default false — matches the Pipeline page, which shows the ACTIVE pipeline."},"has_tags":{"type":"array","items":{"type":"string"},"description":"Only leads carrying these tags. Names must match list_tags exactly."},"missing_tags":{"type":"array","items":{"type":"string"},"description":"Only leads carrying NONE of these tags."},"match_tags":{"type":"string","description":"How to combine has_tags: 'all' (default) or 'any'"},"interested_in":{"type":"array","items":{"type":"string"},"description":"Only leads interested in ANY of these product categories (e.g. [\"Commercial\"]). An unknown name returns the business's categories."},"not_interested_in":{"type":"array","items":{"type":"string"},"description":"Only leads interested in NONE of these product categories."},"has_fields":{"type":"array","items":{"type":"string"},"description":"Only leads with these fields filled in: email, phone, name, company, website, notes, next_action."},"missing_fields":{"type":"array","items":{"type":"string"},"description":"Only leads with these fields blank (e.g. [\"phone\"] for \"who am I missing a number for\")."},"limit":{"type":"integer","description":"Max rows (default 20, max 100)"}}}},{"name":"get_lead","title":"Get lead","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get full detail for one lead by id, including its recent activity timeline (calls, emails, notes, status changes, edits, enrichments). person holds the person's own details (email, phone, title, LinkedIn); business holds the company's (name, website, business email and phone, industry, address). Never use the business email as the person's.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer","description":"The lead id"}},"required":["lead_id"]}},{"name":"list_quotes","title":"List quotes","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the business's quotes / RFQs (event-supply and corporate requests), most recent first. Optionally filter by status (new, quoting, sent, accepted, invoiced, fulfilled, declined, expired). Returns buyer contact, occasion, event date, guest count, total and status. Use for \"what quotes are outstanding\", \"who hasn't accepted yet\", \"how much is in my pipeline of quotes\".","input_schema":{"type":"object","properties":{"status":{"type":"string","description":"Optional status filter: new | quoting | sent | accepted | invoiced | fulfilled | declined | expired"},"limit":{"type":"integer","description":"Max rows (default 20, max 100)"}}}},{"name":"get_quote","title":"Get quote","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get full detail for one quote by id, including its priced line items. Use when the owner asks what is on a specific quote.","input_schema":{"type":"object","properties":{"quote_id":{"type":"integer","description":"The quote id"}},"required":["quote_id"]}},{"name":"list_appointments","title":"List appointments","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List upcoming appointments within the next N days (default 7). Returns time, title, customer, status, and notes.","input_schema":{"type":"object","properties":{"days":{"type":"integer","description":"How many days ahead (default 7, max 100)"},"limit":{"type":"integer"}}}},{"name":"list_open_tasks","title":"List open tasks","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the owner's open (incomplete) tasks with due dates.","input_schema":{"type":"object","properties":{"limit":{"type":"integer"}}}},{"name":"search_customers","title":"Search customers","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Find customers by name, email, or phone (partial match), or by tag. Leave query empty to list recent customers. Tag filters (has_tags / missing_tags) segment the book the same way the Customers page does — but for a QUANTITY answer use count_records, not the length of this page. Each row comes back with its real tags.","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"Name, email, or phone fragment"},"has_tags":{"type":"array","items":{"type":"string"},"description":"Only customers carrying these tags. Names must match list_tags exactly."},"missing_tags":{"type":"array","items":{"type":"string"},"description":"Only customers carrying NONE of these tags."},"match_tags":{"type":"string","description":"How to combine has_tags: 'all' (default) or 'any'"},"has_fields":{"type":"array","items":{"type":"string"},"description":"Only customers with these fields filled in: email, phone, name, address, company, website, birthday, notes."},"missing_fields":{"type":"array","items":{"type":"string"},"description":"Only customers with these fields blank."},"limit":{"type":"integer"}}}},{"name":"list_recent_conversations","title":"List recent conversations","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the most recent customer conversations the AI handled (chat). Returns recent message snippets so you can summarize what customers have been asking.","input_schema":{"type":"object","properties":{"limit":{"type":"integer"}}}},{"name":"list_recent_calls","title":"List recent calls","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List recent phone calls the AI voice agent handled, with summaries/outcomes where available.","input_schema":{"type":"object","properties":{"limit":{"type":"integer"}}}},{"name":"get_connected_account","title":"Get connected account","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Which Viva account (business) this connection acts for: its name, id and sign-in email. Use it when asked which account you are connected to, or before reporting that something is empty.","input_schema":{"type":"object","properties":{}}},{"name":"get_business_profile","title":"Get business profile","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get this business's own profile record (name, contact, category, hours, and settings) so you have context about who you're assisting.","input_schema":{"type":"object","properties":{}}},{"name":"ask_assistant","title":"Ask assistant","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Talk to the owner's AI assistant in Viva (the one they named, which leads their agents when agents are on). It knows the business, follows the owner's standing rules, and leads the agents. Use it for judgement and for orders: 'how is marketing going and what should I focus on', 'find more corporate gift buyers', 'pause prospecting for a week', 'run the gift-buyers agent'. Turning agents on or off and running them happens only through it. Pass conversation_id from its last reply to continue the same conversation. It can make changes only if this connection may; it never sends email.","input_schema":{"type":"object","properties":{"message":{"type":"string","description":"What to ask or tell it, in the owner's words"},"conversation_id":{"type":"string","description":"From a previous reply, to continue that conversation"}},"required":["message"]}},{"name":"list_agents","title":"List agents","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"This business's agents: name, on/off, what each looks for, how many people per run, its credit budget and schedule, the workflow it hands people to, its newest run, and the run waiting for approval if any. Use for 'what are my agents doing', 'is my prospecting agent on'.","input_schema":{"type":"object","properties":{}}},{"name":"list_pending_approvals","title":"List pending approvals","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Everything waiting on the owner to decide, from every kind of workflow: people an agent found, emails and review replies agents drafted, emails a workflow drafted, work orders, marketing plan items awaiting their OK, and this week's outreach list (agent items only when agents are on). Each item says what happens on yes, to whom, why, any cost, the tools that decide it (decide_with) and where in Viva it is decided (link, on business.goviva.ai). If you cannot call a decide_with tool, send the owner to the link. `total` counts decisions; items marked offer are suggestions, not owed. Use for 'what needs my approval', 'what is waiting for me'.","input_schema":{"type":"object","properties":{}}},{"name":"get_agent_run","title":"Get agent run","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"One run of an agent: who it found (name, title, company), why, who was already known, and what approving would cost in credits against the agent's budget. Use before approving or declining a run.","input_schema":{"type":"object","properties":{"agent_id":{"type":"string","description":"From list_agents or list_pending_approvals"},"run_id":{"type":"string"}},"required":["agent_id","run_id"]}},{"name":"find_prospects","title":"Find prospects","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":true,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Search for prospects. kind 'businesses' searches the business database by name, industry, place and size (free); contacts_visible says whether this account sees emails in full or masked; each comes with its size, locations, website status (dead, missing, thin, blocked, readable), whether it sells to businesses or consumers, and employees, estimated revenue and year founded where known. A null means not measured, never none. kind 'people' finds people from a plain description such as 'HR directors at tech companies in San Jose', or from titles, seniority, company and place, which are written into that description: they narrow a semantic search rather than filter a database, so check understood_as and each person's title (free within the day's allowance; past it a search costs credits, so this stops and says so unless confirm_spend is true; ask the person first). A business's full record (contacts we hold, the owner where known) opens with unlock_business, and a person's email with unlock_people, up to 1 credit each; ask first.","input_schema":{"type":"object","properties":{"kind":{"type":"string","enum":["businesses","people"]},"query":{"type":"string","description":"people: who to find, in plain words. businesses: part of a business name"},"titles":{"type":"array","items":{"type":"string"},"description":"people: job titles to look for, e.g. [\"office manager\", \"HR director\"]"},"seniority":{"type":"string","enum":["owner","c_level","vp","head","director","senior","entry"],"description":"people: how senior"},"company":{"type":"string","description":"people: the company they work at"},"place":{"type":"string","description":"people: where they are, e.g. \"San Jose\""},"industry":{"type":"string","description":"businesses: an industry, e.g. \"winery\"; one the database lacks comes back with the closest names"},"city":{"type":"string"},"county":{"type":"string","description":"businesses: e.g. \"Santa Clara\""},"size":{"type":"string","enum":["single","multi","regional","chain"],"description":"businesses: one location, 2-5, 6-25 in one state, or 26+/multi-state"},"state":{"type":"string","description":"businesses: two-letter state, e.g. \"CA\""},"page":{"type":"integer","description":"businesses: 1-based page of 25"},"confirm_spend":{"type":"boolean","description":"people: only after the person agreed to spend credits on this search"}},"required":["kind"]}},{"name":"save_list","title":"Save list","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Save a business search as a list in Viva (Find, Lists), e.g. one list per market. It takes the same search as find_prospects kind 'businesses' (industry, query for part of a name, cities or counties, state, size), and exclude_names keeps out businesses whose names contain any of those words, e.g. captive agency brands. The list refreshes every night and opens in Viva under Find, Lists, where the owner can research it or send to it. Free: nothing is unlocked, spent or sent. Agree the name and the search with the person first. Run find_prospects first so they have seen what it holds.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Up to 80 characters, e.g. \"Commercial brokers - Seattle\""},"industry":{"type":"string","description":"e.g. \"insurance agency\"; one the database lacks comes back with the closest names"},"query":{"type":"string","description":"Optional: part of a business name, narrowing the industry"},"cities":{"type":"array","items":{"type":"string"},"maxItems":25,"description":"e.g. [\"Seattle\", \"Bellevue\"]"},"counties":{"type":"array","items":{"type":"string"},"maxItems":25,"description":"e.g. [\"Santa Clara\", \"Alameda\"]"},"state":{"type":"string","description":"Two-letter state, e.g. \"WA\". One state per list."},"size":{"type":"string","enum":["single","multi","regional","chain"],"description":"One location, 2-5, 6-25 in one state, or 26+/multi-state"},"exclude_names":{"type":"array","items":{"type":"string"},"maxItems":50,"description":"Words that keep a business out by its name, e.g. [\"State Farm\", \"Allstate\"]"}},"required":["name","industry","state"]}},{"name":"unlock_business","title":"Unlock business","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Unlock one business that find_prospects returned (pass its id) to open its full record: the email and phone we hold, the owner's name and title where known, the address and the website. Costs up to 1 credit; a business this account already unlocked costs nothing, and nothing is ever charged twice. Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true. Contacts are what we hold, not verified as deliverable unless email_status says so; still_enriching means more (the owner, other addresses) is being looked up and shows in Viva shortly.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"The id find_prospects returned for the business"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend the credit"}},"required":["id"]}},{"name":"unlock_people","title":"Unlock people","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Unlock people that find_prospects kind 'people' returned (pass their ids, up to 10 at a time) to get each one's work email. Costs up to 1 credit a person: a person this account already unlocked costs nothing, and a miss (no email found) is refunded. Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true. The result lists who was unlocked with their email, and who was not and why.","input_schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer"},"description":"Person ids from find_prospects kind 'people'"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend the credits"}},"required":["ids"]}},{"name":"decline_agent_run","title":"Decline agent run","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Decline every person a run found. They are not added as leads and nothing is sent.","input_schema":{"type":"object","properties":{"agent_id":{"type":"string"},"run_id":{"type":"string"}},"required":["agent_id","run_id"]}},{"name":"reject_followup_draft","title":"Reject followup draft","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Reject a follow-up or win-back email an agent drafted. Nothing is sent.","input_schema":{"type":"object","properties":{"draft_kind":{"type":"string","enum":["followup","winback"]},"draft_id":{"type":"integer"}},"required":["draft_kind","draft_id"]}},{"name":"approve_agent_run","title":"Approve agent run","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Approve the people a run found (all, or contact_ids): each becomes a lead and is handed to the agent's workflow, which may email them. Check get_agent_run first. If the workflow finds emails, approving costs credits; this stops and says how many unless confirm_spend is true. Ask the person before approving.","input_schema":{"type":"object","properties":{"agent_id":{"type":"string"},"run_id":{"type":"string"},"contact_ids":{"type":"array","items":{"type":"integer"},"description":"Only these people; omit for everyone the run kept"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to the credit cost"}},"required":["agent_id","run_id"]}},{"name":"approve_followup_draft","title":"Approve followup draft","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Approve a follow-up or win-back email an agent drafted: it is SENT NOW to the person it is addressed to, from the business's sender. Show the person the draft (list_pending_approvals) and get their yes first.","input_schema":{"type":"object","properties":{"draft_kind":{"type":"string","enum":["followup","winback"]},"draft_id":{"type":"integer"}},"required":["draft_kind","draft_id"]}},{"name":"reject_flow_email","title":"Reject flow email","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Reject an email a workflow drafted (list_pending_approvals, kind flow_email). Nothing is sent and the workflow carries on down its 'rejected' path.","input_schema":{"type":"object","properties":{"draft_id":{"type":"integer"}},"required":["draft_id"]}},{"name":"approve_flow_email","title":"Approve flow email","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Approve an email a workflow drafted (list_pending_approvals, kind flow_email): it is SENT NOW to the person it is addressed to. Show the person the draft and get their yes first.","input_schema":{"type":"object","properties":{"draft_id":{"type":"integer"}},"required":["draft_id"]}},{"name":"reject_review_reply","title":"Reject review reply","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Reject a reply to a customer review that an agent drafted (list_pending_approvals, kind review_reply). Nothing is posted.","input_schema":{"type":"object","properties":{"proposal_id":{"type":"integer"}},"required":["proposal_id"]}},{"name":"approve_review_reply","title":"Approve review reply","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Approve a reply to a customer review that an agent drafted (list_pending_approvals, kind review_reply): it is POSTED PUBLICLY under the review now. Show the person the review and the reply and get their yes first.","input_schema":{"type":"object","properties":{"proposal_id":{"type":"integer"}},"required":["proposal_id"]}},{"name":"get_agent_scorecards","title":"Get agent scorecards","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"How each of this business's agents (Discovery, Prospecting, Reception, Conversion) did in the 7 days ending yesterday against the 7 before, from the daily scorecards. A null number means not measured yet, never zero. Use for 'how are my agents doing', 'what did Reception do this week', 'is my discovery score going up'.","input_schema":{"type":"object","properties":{}}},{"name":"get_weekly_brief","title":"Get weekly brief","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"The owner's assistant's latest weekly brief for this business: the headline, the weakest growth term (reach / conversion / loyalty) and why, one line per agent, and the next steps. Written on Saturday mornings. Use for 'what did my weekly brief say', 'what should I focus on', 'what's my weakest area'.","input_schema":{"type":"object","properties":{}}},{"name":"get_work_orders","title":"Get work orders","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"The owner's assistant's work orders for this business: each is one agent, one number, a target and a week. Returns those waiting for the owner's approval (approved or declined on the Agents page), those running with progress so far, and the last few that ended met or missed. Use for 'what are my work orders', 'how is this week's order going', 'did we hit last week's targets'.","input_schema":{"type":"object","properties":{}}},{"name":"answer_work_order","title":"Answer work order","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Approve or decline ONE work order the owner's assistant proposed and the owner has not answered yet (from get_work_orders, waiting_for_approval). Only on the owner's clear yes or no for that order in this conversation. An approved order runs for its week and is settled as met or missed; a declined one is dropped.","input_schema":{"type":"object","properties":{"order_id":{"type":"integer","description":"The id from get_work_orders"},"decision":{"type":"string","enum":["approve","decline"]}},"required":["order_id","decision"]}},{"name":"approve_expert_review","title":"Approve expert review","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Approve the spend on ONE quoted expert review (from list_pending_approvals, kind expert_review, status quoted): a human marketer reviews the draft and the agent applies their edits. It costs the quoted credits; this stops and says how many unless confirm_spend is true. Ask the person before approving.","input_schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"The assignment_id from list_pending_approvals"},"confirm_spend":{"type":"boolean","description":"true only after the person agreed to the stated credit cost"}},"required":["assignment_id"]}},{"name":"propose_expert_review","title":"Propose expert review","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Propose a human expert's review of ONE agent draft still waiting on the owner (a follow-up, win-back or workflow email from list_pending_approvals: draft_kind followup | winback | flow, and its draft_id). Use it when a draft matters (a big list, a first send) or the owner asks for an expert to check it. type: email_polish (edited copy) or launch_check (ready or not). The price follows the size of the job, which Viva suggests from the draft: 70, 80 or 100 credits. brief: one or two sentences on the goal and audience, with no names, emails or phone numbers. It creates a quote that waits for the owner's approval; nothing is charged yet.","input_schema":{"type":"object","properties":{"draft_kind":{"type":"string","enum":["followup","winback","flow"]},"draft_id":{"type":"integer","description":"The draft_id from list_pending_approvals"},"type":{"type":"string","enum":["email_polish","launch_check"]},"brief":{"type":"string","description":"The goal and audience, without personal details"},"question":{"type":"string","description":"Optional: what the owner most wants checked"}},"required":["draft_kind","draft_id","type","brief"]}},{"name":"answer_expert_review","title":"Answer expert review","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Answer ONE expert review waiting on the owner (from list_pending_approvals, kind expert_review): decline a quote; answer the expert's question (action answer, with answer); after the agent applied the review, use_applied or keep_original; and after use_applied, add_rule adds the rule the review suggested to the agent's playbook. Only on the owner's clear words for that review in this conversation.","input_schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"The assignment_id from list_pending_approvals"},"action":{"type":"string","enum":["decline","answer","use_applied","keep_original","add_rule"]},"answer":{"type":"string","description":"The owner's answer to the expert's question (action answer only)"},"rule_text":{"type":"string","description":"add_rule only: the exact rule, as the owner read and agreed to it. Without it, this returns the rule to show them and adds nothing."}},"required":["assignment_id","action"]}},{"name":"get_growth_plan","title":"Get growth plan","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get this business's active Growth Plan — the goal, the strategic objectives (pillars), and the 90-day phased plan. Use for 'what's my plan/goal/strategy', 'what are my objectives', or when the owner asks what the agency is working toward.","input_schema":{"type":"object","properties":{}}},{"name":"get_plans","title":"Get plans","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get everything on the marketing plan still awaiting the owner's OK, for the period they are actually on (weekly, bi-weekly or monthly — never assume a week). Three groups: needs_ok_now (dated inside the current period — these expire unapproved, and any marked overdue are past their date already), next_period (next period's draft), and suggestions (AI drafts on NOBODY's calendar until accepted — never report these as planned work). Use for 'what needs my approval', 'what's waiting on me', 'what's the plan for next week'.","input_schema":{"type":"object","properties":{}}},{"name":"get_actions","title":"Get actions","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get the marketing work already committed — approved and scheduled (on_deck), past its date and still not run (overdue), sent (done), failed, plus ongoing programs with no end date (running/paused drips and automations) and the flows that are on or paused, each with what it does and how it is going. Period-aware. Use for 'what's my marketing doing', 'what's scheduled', 'did that go out', 'what's running'. For work that still needs a decision, call get_plans instead.","input_schema":{"type":"object","properties":{}}},{"name":"get_agency_scoreboard","title":"Get agency scoreboard","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get the Growth Plan scoreboard: bookings this month vs the growth-plan goal, and whether the business is on pace for the month. Use for 'am I on track', 'how am I doing vs goal', 'how many bookings this month'.","input_schema":{"type":"object","properties":{}}},{"name":"get_credits","title":"Get credits","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"The account's credits: balance now (monthly plan allotment plus packs bought), the monthly allotment and when it resets (UTC), and what used credits over the last `days` days, by reason (gross; refunds, such as a bounced send's, are given beside it as refunded, and net_used is what it cost). Credits buy work: unlocking a contact, finding a work email, people searches past the day's free allowance, AI voice minutes. Use for 'how many credits do I have', 'what used my credits'.","input_schema":{"type":"object","properties":{"days":{"type":"integer","description":"How far back to total usage (default 30, max 90)"}}}},{"name":"get_email_activity","title":"Get email activity","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"What happened to each email a campaign or outreach drip sent: delivered, opened, clicked, replied, bounced or unsubscribed, newest first, with totals. Narrow with campaign_id, with email (one person), and with only. opened/clicked count every open and click, as the Campaigns page does; opened_by_person/clicked_by_person are those that passed the mail-scanner filter, and are the ones to trust. Times are UTC.","input_schema":{"type":"object","properties":{"campaign_id":{"type":"integer","description":"One campaign (get_actions lists them as campaign:<n>)"},"email":{"type":"string","description":"One recipient's address"},"only":{"type":"string","enum":["opened","clicked","replied","bounced","unsubscribed"],"description":"Only sends with this outcome"},"limit":{"type":"integer","description":"Rows to return (default 25, max 100)"}}}},{"name":"create_task","title":"Create task","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Create a task/reminder for the owner. Use when they say to remember or follow up on something. due_date and due_time are the business's own local time. Returns task_id; complete_task closes it.","input_schema":{"type":"object","properties":{"title":{"type":"string","description":"What to do"},"due_date":{"type":"string","description":"Optional due date, ISO YYYY-MM-DD"},"due_time":{"type":"string","description":"Optional due time, HH:MM 24h"}},"required":["title"]}},{"name":"complete_task","title":"Complete task","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Mark an owner task complete. task_id comes from create_task or list_open_tasks. Errors if the task is not found or is already complete.","input_schema":{"type":"object","properties":{"task_id":{"type":"integer"}},"required":["task_id"]}},{"name":"update_task","title":"Update task","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Change an owner task: reschedule it, rename it or add notes, as the owner does on the task. task_id comes from list_open_tasks. Only the fields passed change; pass \"\" to clear notes, due_date or due_time. due_date and due_time are the business's own local time. The result lists each changed field's previous value.","input_schema":{"type":"object","properties":{"task_id":{"type":"integer"},"title":{"type":"string"},"notes":{"type":"string"},"due_date":{"type":"string","description":"ISO YYYY-MM-DD"},"due_time":{"type":"string","description":"HH:MM 24h"}},"required":["task_id"]}},{"name":"delete_task","title":"Delete task","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Delete an owner task they no longer need (skip it rather than do it), as Delete on the task does. Only when the owner asked to drop this task; a task that was done is closed with complete_task instead. task_id comes from list_open_tasks. The result returns the task as it was, so it can be created again if that was a mistake.","input_schema":{"type":"object","properties":{"task_id":{"type":"integer"}},"required":["task_id"]}},{"name":"set_lead_status","title":"Set lead status","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Move a lead to a Pipeline status: new, contacted, qualified, proposal, won, lost or closed. lead_id comes from list_leads or get_lead. Records a status-change entry on the lead's timeline. It can move a lead back as well as forward. Won makes them a customer, as marking a deal won in the Pipeline does (linked to an existing customer with the same email or phone, otherwise a new one); confirm with the owner before marking won. Setting won again on a won lead that never became a customer retries that. With lost, give lost_reason when the owner says why.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer"},"status":{"type":"string","enum":["new","contacted","qualified","proposal","won","lost","closed"]},"lost_reason":{"type":"string","description":"With status lost: why, in a few words (shown on the lead)"}},"required":["lead_id","status"]}},{"name":"bulk_set_lead_status","title":"Bulk set lead status","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Move many leads to one Pipeline status in a single call: new, contacted, qualified, proposal, lost or closed. Pick the leads EITHER by lead_ids OR by has_tags (optionally narrowed by from_status, e.g. \"the leads tagged X that are still new\"). Use this instead of calling set_lead_status once per lead whenever more than a couple of leads move. Up to 200 leads; if more match, nothing changes and the result says how many matched. Each lead gets a status-change entry on its timeline, as set_lead_status does. Not for won, and won leads are never moved off won: each won lead is a customer, so use set_lead_status for those. Confirm the count with the owner before calling.","input_schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","contacted","qualified","proposal","lost","closed"]},"lead_ids":{"type":"array","items":{"type":"integer"},"maxItems":200,"description":"The leads to move. Give this OR has_tags."},"has_tags":{"type":"array","items":{"type":"string"},"description":"Move the leads carrying these tags (names exactly as list_tags gives them). Give this OR lead_ids."},"match_tags":{"type":"string","description":"With has_tags: 'all' (default) or 'any'"},"from_status":{"type":"string","description":"With has_tags: only leads currently in this status (e.g. new)."},"lost_reason":{"type":"string","description":"With status lost: why, in a few words (shown on each lead)"}},"required":["status"]}},{"name":"create_lead","title":"Create lead","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add a person or company to the Pipeline as a lead, as the owner does by hand on the Pipeline page. name is required; give email or phone when known. If a lead with this email already exists nothing is created and its lead_id comes back with already: true. Like adding by hand, it starts no automation, so nobody is emailed. status defaults to new (won is set afterwards with set_lead_status, which makes them a customer).","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"The person's name, or the company's when there is no contact yet"},"email":{"type":"string","description":"The person's own email. A company mailbox (info@, sales@) goes in company_email"},"phone":{"type":"string","description":"The person's own phone. The company's main line goes in company_phone"},"company":{"type":"string"},"title":{"type":"string","description":"Their job title"},"website":{"type":"string"},"company_email":{"type":"string","description":"The business's general email, e.g. info@"},"company_phone":{"type":"string","description":"The business's main phone line"},"linkedin_url":{"type":"string","description":"The person's LinkedIn profile URL"},"value":{"type":"number","description":"What the deal is worth, in dollars"},"status":{"type":"string","enum":["new","contacted","qualified","proposal"]},"notes":{"type":"string"},"next_action":{"type":"string","description":"What to do next, in a few words"}},"required":["name"]}},{"name":"create_customer","title":"Create customer","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add someone straight to Customers, as the owner does with Add customer on the Customers page: a walk-in, a client from before Viva, anyone who never was a sales lead. For a deal still being worked use create_lead instead. name is required; give email or phone when known. If a customer with this email or phone already exists nothing is created and their customer_id comes back with already: true. It emails no one and starts no automation. To tag them afterwards use set_customer_tag.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"The person's name, or the company's for a business customer"},"email":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"title":{"type":"string","description":"Their job title"},"website":{"type":"string"},"address":{"type":"string"},"notes":{"type":"string"}},"required":["name"]}},{"name":"enrich_lead","title":"Enrich lead","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Look up a Pipeline lead's missing details, as Enrich contact does on the lead: the business's website for its email, phone, socials and owner, and the person's LinkedIn profile, title and own email. It only fills fields that are empty; a value that differs from one the lead already has is returned in offers and never applied. Costs 3 credits, charged only when something new was found (nothing for a lead already unlocked from Find Customers). Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer","description":"From list_leads or get_lead"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend the credits"}},"required":["lead_id"]}},{"name":"update_lead","title":"Update lead","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Correct or fill in a Pipeline lead's details, as the owner does with Edit on the lead. lead_id comes from list_leads or get_lead. Only the fields you pass change; pass \"\" to clear one (name cannot be cleared). Status is not set here (use set_lead_status), and a note for the timeline goes through add_lead_note, not notes. The result lists each changed field's previous value: to undo, call this again with those values.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer"},"name":{"type":"string"},"company":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","description":"The person's own email; a company mailbox (info@) goes in company_email"},"phone":{"type":"string","description":"The person's own phone; the company's main line goes in company_phone"},"website":{"type":"string"},"address":{"type":"string"},"company_email":{"type":"string","description":"The business's general email"},"company_phone":{"type":"string","description":"The business's main phone line"},"linkedin_url":{"type":"string","description":"The person's LinkedIn profile URL"},"value":{"type":"number","description":"What the deal is worth, in dollars"},"next_action":{"type":"string","description":"What to do next, in a few words"},"notes":{"type":"string","description":"Replaces the lead's notes field in full"}},"required":["lead_id"]}},{"name":"update_customer","title":"Update customer","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Correct or fill in a customer's details, as the owner does with Edit on the Customers page. customer_id comes from search_customers. Only the fields you pass change; pass \"\" to clear one (name cannot be cleared). Refuses an email or phone another customer already has. Notes are added with add_customer_note, and tags with set_customer_tag. The result lists each changed field's previous value: to undo, call this again with those values.","input_schema":{"type":"object","properties":{"customer_id":{"type":"integer"},"name":{"type":"string"},"title":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"website":{"type":"string"},"address":{"type":"string"}},"required":["customer_id"]}},{"name":"add_customer_note","title":"Add customer note","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add a dated note to a customer, where the owner sees it on the Customers page. customer_id comes from search_customers. For a lead use add_lead_note.","input_schema":{"type":"object","properties":{"customer_id":{"type":"integer"},"note":{"type":"string"}},"required":["customer_id","note"]}},{"name":"log_activity","title":"Log activity","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Record a call, meeting, email or text the owner had with a lead or customer outside Viva, so it shows on their record and counts as their last contact. Give lead_id (from list_leads) or customer_id (from search_customers), what kind it was, and a short summary of what was said. date is the day it happened (YYYY-MM-DD, the business's own calendar), today if left out. This records something that happened; it sends nothing.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer"},"customer_id":{"type":"integer"},"type":{"type":"string","enum":["call","meeting","email","sms"]},"summary":{"type":"string","description":"What happened, in a sentence or two"},"date":{"type":"string","description":"YYYY-MM-DD; today if left out"}},"required":["type","summary"]}},{"name":"bulk_create","title":"Bulk create","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add up to 50 people at once, e.g. from a list the owner pasted: as leads in the Pipeline (kind leads) or straight into Customers (kind customers). Each row takes the same fields as create_lead or create_customer and is handled exactly like one: anyone already there by email (or phone, for customers) is not added twice, and nobody is emailed. Show the owner how many you are about to add before calling. The result counts created, already there and refused rows, and says why each refused row was refused.","input_schema":{"type":"object","properties":{"kind":{"type":"string","enum":["leads","customers"]},"rows":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"title":{"type":"string"},"website":{"type":"string"},"address":{"type":"string","description":"customers only"},"value":{"type":"number","description":"leads only"},"status":{"type":"string","description":"leads only"},"notes":{"type":"string"},"next_action":{"type":"string","description":"leads only"}},"required":["name"]}}},"required":["kind","rows"]}},{"name":"add_lead_note","title":"Add lead note","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add a note to a lead's timeline, where the owner sees it on the lead in the Pipeline. lead_id comes from list_leads or get_lead.","input_schema":{"type":"object","properties":{"lead_id":{"type":"integer"},"note":{"type":"string"}},"required":["lead_id","note"]}},{"name":"save_note","title":"Save note","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Quick-capture a freeform note for the owner — a thought or something to remember that is NOT a dated to-do (use create_task for that) and NOT about a specific lead (use add_lead_note for that). Use for 'jot this down' / 'note that…'. Capture the text verbatim.","input_schema":{"type":"object","properties":{"text":{"type":"string","description":"The note, captured verbatim"},"source":{"type":"string","description":"optional: 'voice' if dictated"}},"required":["text"]}},{"name":"get_plan_backlog","title":"Get plan backlog","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get this business's Plan Backlog — every marketing tactic it could run, with which are due, already scheduled, running, finished, or on the wishlist (wanted but Viva can't run them yet). Each carries its growth category (reach/conversion/loyalty), kind (producer = generates the goal metric itself, multiplier = raises another tactic's conversion, enabler = makes execution or measurement possible), cadence, and lag. ALWAYS call this before suggesting new marketing — proposing something already on the list is worse than proposing nothing. Use for 'what's in my backlog', 'what am I not doing', 'what should I add', 'what's due'.","input_schema":{"type":"object","properties":{}}},{"name":"get_plan_setup","title":"Get plan setup","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Everything already known about this business before you ask them anything — category, whether they have a website/booking/reviews/customer list, whether a goal and backlog exist, and which starter set (if any) is written for their industry. ALWAYS call this before helping set up a plan or backlog. Never ask an owner something this returns; asking what is already on their profile tells them you haven't looked. What it CANNOT tell you is what they actually sell and whether their customers come back — those two are worth asking, and they are the only two.","input_schema":{"type":"object","properties":{}}},{"name":"suggest_topics","title":"Suggest topics","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Propose what a content tactic should actually be ABOUT — real headlines for a blog post, social post, landing page, GBP post or SEO article. A tactic names a slot ('Monthly blog post'); this fills it. Use it whenever the owner asks what to write, and ALWAYS before putting a blog/social/page tactic on a date with a title. Writes nothing: topics come back, the owner keeps, edits or throws away the ones they want. Each carries an angle (what it covers) and why it fits. It reads what this business has already published and already has planned and will not repeat it — which is exactly why you must not invent titles yourself. Get item_id from get_plan_backlog.","input_schema":{"type":"object","properties":{"item_id":{"type":"integer","description":"The content tactic, from get_plan_backlog"},"count":{"type":"integer","description":"How many to propose (default 5, max 12). Ask for what the owner needs, not the maximum"}},"required":["item_id"]}},{"name":"list_forms","title":"List forms","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List this business's forms (lead capture, surveys, intake) with status, field count, and responses. Use to find a form before reading or editing it.","input_schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","active","inactive"],"description":"Optional status filter"}}}},{"name":"get_form","title":"Get form","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Get one form in full: fields (key, label, type, required, options), settings, and status. Always call this before update_form so ops reference real field keys.","input_schema":{"type":"object","properties":{"form_id":{"type":"integer","description":"Form id from list_forms"}},"required":["form_id"]}},{"name":"list_notes","title":"List notes","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the owner's recent quick-capture notes.","input_schema":{"type":"object","properties":{"limit":{"type":"integer"}}}},{"name":"list_wine_requests","title":"List wine requests","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the Viva Wine network requests this winery has been offered on — what a buyer asked for, the wine and case count offered, and where the offer stands (proposed, awaiting your approval, sent to the buyer, or taken). Use for 'what wine enquiries do we have', 'any new network requests', 'what has the buyer not answered yet'.","input_schema":{"type":"object","properties":{"status":{"type":"string","description":"Optional: proposed | needs_approval | offered | selected | declined"},"limit":{"type":"integer"}}}},{"name":"list_wine_orders","title":"List wine orders","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List this winery's Viva Wine network orders — the buyer, the wine, cases ordered against cases shipped, and what is left to ship. Use for 'what network orders are open', 'what do we still owe', 'has the wine for X gone out yet'.","input_schema":{"type":"object","properties":{"open_only":{"type":"boolean","description":"Only orders with cases still to ship"},"limit":{"type":"integer"}}}},{"name":"list_flows","title":"List flows","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the business's flows (its automations: 'when someone books, wait 2 days, then send a thank-you'). Each comes with one plain sentence of what it does and a health line: on or paused, how many people are in it and finished, the reply or goal rate when it has a goal (otherwise not measured yet, never zero), and anything holding it up. Use for 'what's running', 'what automations do I have', 'is my follow-up working'.","input_schema":{"type":"object","properties":{"include_archived":{"type":"boolean","description":"Also list archived flows (default false)"}}}},{"name":"get_flow","title":"Get flow","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"One flow in full: what it does (a sentence and each step in plain words), its health, and the latest people through it.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string","description":"From list_flows"}},"required":["flow_id"]}},{"name":"set_flow_status","title":"Set flow status","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Switch a flow on or off. On, it starts for everyone it is meant for and does what it says, which can include emailing them; switching on a proposed flow approves it. Off, it stops starting and holds anyone part-way through. Only when the owner asked for this flow in this conversation. A flow that sends a campaign drip is paused and resumed with set_drip_status instead.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string"},"status":{"type":"string","enum":["on","off"]}},"required":["flow_id","status"]}},{"name":"propose_flow","title":"Propose flow","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Propose a NEW flow for a goal the owner stated ('follow up with everyone who books', 'thank new leads'). It is saved as a proposal and does nothing until the owner approves it (on Flows, or by asking you to switch it on). Read back the summary and steps it returns.","input_schema":{"type":"object","properties":{"goal":{"type":"string","description":"What the flow should achieve, in the owner's words"}},"required":["goal"]}},{"name":"edit_flow","title":"Edit flow","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Propose a change to an existing flow from the owner's words ('skip weekends', 'wait 3 days instead', 'also tag them VIP'). CHANGES NOTHING: it returns what the flow does now, what it would become, and the steps added and dropped. Show the owner that and wait for their yes; then call apply_flow_edit with base_version, proposed_rule and proposal_id exactly as returned.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string"},"change":{"type":"string","description":"The change, in the owner's words"}},"required":["flow_id","change"]}},{"name":"apply_flow_edit","title":"Apply flow edit","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Apply a change edit_flow proposed, after the owner said yes to it in this conversation. Pass base_version, proposed_rule and proposal_id exactly as edit_flow returned them. It is saved as a new version the owner can undo in Flow Studio.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string"},"base_version":{"type":"integer"},"proposed_rule":{"type":"object","description":"Exactly as edit_flow returned it"},"proposal_id":{"type":"string"},"summary":{"type":"string","description":"The change in a few words, for the flow's history"}},"required":["flow_id","base_version","proposed_rule","proposal_id"]}},{"name":"set_drip_status","title":"Set drip status","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Pause or resume a drip email campaign (one that sends a few people a day). Paused, nothing more goes out, follow-ups included; resumed, it carries on where it stopped, and nobody already emailed is emailed again. Only when the owner asked for this campaign in this conversation. get_actions lists running drips (programs, id campaign:<n>).","input_schema":{"type":"object","properties":{"campaign_id":{"type":"integer"},"status":{"type":"string","enum":["paused","running"]}},"required":["campaign_id","status"]}},{"name":"add_to_flow","title":"Add to flow","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Put one customer or lead into one flow now, as if they had just been given the tag that starts it, and only that flow. The flow must be on and start when a tag is added; it then does what it says, which can include emailing them straight away, so only when the owner asked for this person and this flow in this conversation. The tag itself is not added (set_customer_tag does that, and starts every flow on the tag). A flow's re-entry setting can keep out someone who has been through it. Drip campaigns choose their own people and cannot be added to.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string","description":"From list_flows"},"customer_id":{"type":"integer","description":"From search_customers"},"lead_id":{"type":"integer","description":"From list_leads"},"email":{"type":"string","description":"Or their email"}},"required":["flow_id"]}},{"name":"remove_from_flow","title":"Remove from flow","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Take one person out of one flow: whatever it had left to do for them (emails, waits, drafts awaiting approval) is dropped, and the flow carries on for everyone else. Works for drip campaigns too. They keep their tags; in a flow that lets people come back, adding the tag again would start them again.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string","description":"From list_flows"},"customer_id":{"type":"integer","description":"From search_customers"},"lead_id":{"type":"integer","description":"From list_leads"},"email":{"type":"string","description":"Or their email"}},"required":["flow_id"]}},{"name":"run_playbook","title":"Run playbook","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Run one of the owner's playbooks (a flow they marked, in Flow Studio, as one you may run; list_flows shows playbook: true) for up to 25 customers or leads you name, now, whatever normally starts it. Each person goes through it exactly as if it had started for them: its steps, its conditions, and its re-entry setting, which can keep out someone already in it. A playbook that emails or texts needs the send permission. Only when the owner asked for this playbook and these people in this conversation; say who it ran for and who it did not, and why.","input_schema":{"type":"object","properties":{"flow_id":{"type":"string","description":"From list_flows, a flow with playbook: true"},"people":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"customer_id":{"type":"integer","description":"From search_customers"},"lead_id":{"type":"integer","description":"From list_leads"},"email":{"type":"string","description":"Or their email"}}},"description":"Each by customer_id, lead_id or email"}},"required":["flow_id","people"]}},{"name":"get_agent_rules","title":"Get agent rules","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"The owner's standing rules for an agent's drafts (\"sign off as Maria\", \"never mention prices\"). agent: conversion = the Conversion agent (follow-ups and win-backs); workflow = emails a workflow drafts for your OK.","input_schema":{"type":"object","properties":{"agent":{"type":"string","enum":["workflow","conversion"]}},"required":["agent"]}},{"name":"draft_promo_campaign","title":"Draft promo campaign","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Draft a promotional email to the business's own tagged customers from the owner's special: what it is, the price, the discount, a short description, and a picture by link (an https image link or a Google Drive link shared as \"Anyone with the link\"). It saves the picture in Media and writes the email in the design of the business's last sent campaign, rewriting only its featured product for this special (design: \"plain\" for a simple layout instead; design_from: a campaign id to copy that one's design), using the owner's exact numbers. When the last email shows other products too, pass the owner's other products in products (name, price, picture link, page link): each takes one of those tiles, picture and Shop link included; tiles the owner gives nothing for stay as they were and are listed. It saves a DRAFT campaign for customers with the tag. Tell the owner which design was used and any lines the result lists as still from the last email (other products, old prices) so they check them. Nothing is sent or scheduled: give the owner the link to review, send a test and send it in Viva. audience_tag must be an existing tag (list_tags); if the owner names one that does not exist, show them the tags that do. Writing the email uses one AI credit, like Generate in the campaign composer.","input_schema":{"type":"object","properties":{"title":{"type":"string","description":"The special, e.g. \"Weller 12 Year\""},"description":{"type":"string","description":"What the owner said about it, in their words"},"price":{"type":"string","description":"As the owner wrote it, e.g. \"$54.99\""},"regular_price":{"type":"string","description":"Optional: the usual price, e.g. \"$64.99\""},"discount":{"type":"string","description":"As the owner wrote it, e.g. \"15% off\" or \"Save $10\""},"code":{"type":"string","description":"Optional: an offer code, e.g. \"LOYAL30\""},"ends":{"type":"string","description":"Optional: when it ends, e.g. \"Through Sunday, Oct 19\""},"image_url":{"type":"string","description":"Optional: https link to the picture"},"link":{"type":"string","description":"Optional: https link the button opens (shop page, booking)"},"audience_tag":{"type":"string","description":"The customer tag that gets it, e.g. \"Bourbon Club\""},"products":{"type":"array","maxItems":8,"description":"Optional: the other products for the email's other tiles, in order","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"},"regular_price":{"type":"string"},"description":{"type":"string","description":"The owner's words; left empty when not given"},"image_url":{"type":"string","description":"https or shared Google Drive link to its picture"},"link":{"type":"string","description":"https link its Shop button opens"}},"required":["name"]}},"design":{"type":"string","enum":["latest","plain"],"description":"Default latest: the last sent campaign's design"},"design_from":{"type":"integer","description":"Optional: a campaign id whose design to use"}},"required":["title","description","audience_tag"]}},{"name":"redesign_promo_draft","title":"Redesign promo draft","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Rebuild a promo draft made by draft_promo_campaign in another design, from the special saved on it: by default the business's last sent campaign's design (\"make it look like our last email\"), or design_from a campaign id, or design \"plain\". Only the subject, preview and body change; the audience and picture stay. Only drafts. Tell the owner which design was used and any lines still from the last email. Uses one AI credit.","input_schema":{"type":"object","properties":{"campaign_id":{"type":"integer","description":"The draft to rebuild"},"design":{"type":"string","enum":["latest","plain"]},"design_from":{"type":"integer","description":"Optional: a campaign id whose design to use"}},"required":["campaign_id"]}},{"name":"list_pages","title":"List pages","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List this business's landing pages: id, title, address, draft or published, and for campaign pages the audiences and {{blanks}} that let one page speak to each campaign's audience (a campaign link adds ?for=<audience>). Use get_page for a page's sections.","input_schema":{"type":"object","properties":{}}},{"name":"get_page","title":"Get page","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Read one landing page: its sections in order (id, type, and the text and settings in props), its audiences with the value each gives every {{blank}}, and its live and edit links. Read it before edit_page or set_page_audience.","input_schema":{"type":"object","properties":{"page_id":{"type":"integer"}},"required":["page_id"]}},{"name":"edit_page","title":"Edit page","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Edit a landing page's sections, as Page Studio does: each change is recorded and the owner can undo it in Page Studio. A PUBLISHED page changes live at once; publishing a draft stays in Viva. Changes, in order: {op:'update_section', id, props} merges props into that section (send only what changes); {op:'add_section', type, props, after_id} (after_id null = first); {op:'remove_section', id}; {op:'move_sections', ordered_ids}; {op:'set_title', title}; {op:'set_description', description}. Text may use {{blank}} placeholders, filled per audience (set_page_audience). Use only facts the owner gave: no invented testimonials, logos, statistics or prices. Call get_page first for section ids and current props.","input_schema":{"type":"object","properties":{"page_id":{"type":"integer"},"changes":{"type":"array","items":{"type":"object"},"description":"The changes, applied in order"},"summary":{"type":"string","description":"One line for the page's history, e.g. 'Shortened the hero'"}},"required":["page_id","changes"]}},{"name":"set_page_audience","title":"Set page audience","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add or change one audience on a campaign landing page: the text each {{blank}} shows for that audience (e.g. audience 'janitorial', values {type: 'commercial cleaning companies in Santa Clara County'}). 'default' is what visitors see with no audience in the link. A blank left out falls back to default; an empty string clears it. remove: true deletes the audience. Campaigns reach an audience with ?for=<audience> (set on the campaign's landing page in Viva). Recorded and undoable in Page Studio; a published page changes live.","input_schema":{"type":"object","properties":{"page_id":{"type":"integer"},"audience":{"type":"string","description":"Lowercase letters, numbers and dashes, e.g. 'janitorial' or 'default'"},"values":{"type":"object","description":"Blank name -> text, e.g. {\"type\": \"...\", \"ask\": \"...\"}"},"remove":{"type":"boolean"}},"required":["page_id","audience"]}},{"name":"draft_landing_page","title":"Draft landing page","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Build a campaign landing page from a brief: the audience, headline, offer, call to action and form fields, in the owner's words. Viva's page builder writes it in the campaign layout (the offer and the form side by side, who it's for, how it works, the call to action again), in the look of the business's latest campaign page, and saves it as a DRAFT standalone page; nothing is published. It uses only what the brief says: no testimonials, logos or statistics are added. Give the owner the edit link to review and publish it in Page Studio, where a form on the page starts capturing leads once published. slug: the page's address, e.g. more-business-accounts (it becomes /p/<business id>/<slug>).","input_schema":{"type":"object","properties":{"brief":{"type":"string","description":"The landing-page brief, as the owner gave it"},"title":{"type":"string","description":"Optional: the page title"},"slug":{"type":"string","description":"Optional: the page address, lowercase words and dashes"}},"required":["brief"]}},{"name":"save_email_template","title":"Save email template","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Save an email's copy as a template in Viva (Campaigns, Templates), so the owner can pick it when building a campaign and edit it in Template Studio. Give the subject and a plain-text body; a blank line starts a new paragraph. The body may use {first_name}, {business_name}, {city} and {state}, filled in for each recipient. Nothing is sent. Agree the copy with the person first, then give them the link.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"What the owner will look for it by, up to 120 characters"},"subject":{"type":"string","description":"Up to 300 characters"},"body":{"type":"string","description":"Plain text, up to 8000 characters"},"preview_text":{"type":"string","description":"Optional: the line inboxes show after the subject"},"description":{"type":"string","description":"Optional: what it is for, e.g. \"First touch, commercial brokers\""}},"required":["name","subject","body"]}},{"name":"draft_prospect_campaign","title":"Draft prospect campaign","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Draft an outreach email campaign to the businesses on a list from save_list (or one the owner saved in Find, Lists). Give the email as a subject and plain-text body, or as template_id from save_email_template; up to 4 follow-ups, each sent delay_days after the first email to anyone who has not replied. Bodies may use {first_name}, {business_name}, {city} and {state}. It runs until every business on the list has been reached, new matches joining as it sends, paced daily and paused if credits run out. Give budget only when the owner wants it to stop after a set number of businesses. recipients 'owners' writes only to each business's owner (their own email, where Viva has found it) and skips the rest; the default writes to the best address Viva holds, often info@. To find owners for a list first, use find_list_owners. It saves a DRAFT: nothing is sent, scheduled or spent. Give the owner the link: they check it, send a test and send it in Viva, which shows any credit cost before it sends. Agree the copy, and any budget, with the person first.","input_schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"The list, from save_list"},"name":{"type":"string","description":"The campaign, as the owner will find it, up to 120 characters"},"subject":{"type":"string","description":"Up to 300 characters; not needed with template_id"},"body":{"type":"string","description":"Plain text, up to 8000 characters; not needed with template_id"},"template_id":{"type":"integer","description":"Optional: a saved template to use instead of subject and body"},"follow_ups":{"type":"array","maxItems":4,"items":{"type":"object","properties":{"delay_days":{"type":"integer","description":"1 to 90"},"subject":{"type":"string"},"body":{"type":"string","description":"Plain text"}},"required":["delay_days","subject","body"]}},"budget":{"type":"integer","description":"Optional: stop after this many businesses, 1 to 5000. Leave it out to run until the list is exhausted."},"recipients":{"type":"string","enum":["best","owners"],"description":"Who at each business: 'owners' (only the owner's own email) or 'best' (default)"}},"required":["list_id","name"]}},{"name":"find_list_owners","title":"Find list owners","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Find the owners of the businesses on a list from save_list (or one the owner saved in Find): Viva looks up each business's owner and their own email, so a campaign can go to owners rather than info@. Each owner found unlocks that business for 1 credit (the unlock price), so it lands in the account's Prospects with its owner and email; that credit also covers opening it and emailing the owner (no second charge); a miss costs nothing, and so does a business this account already unlocked. budget caps the credits it may spend. Without confirm_spend: true this only says the list size, the price and the balance, and spends nothing: ask the person, then call again with confirm_spend: true. It runs in the background; call again with run_id to see how far it got and to get the owners found (name, title, business, email, phone), which are also in the account's Prospects. When owners are found, draft_prospect_campaign with recipients 'owners' writes to them.","input_schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"The list, from save_list"},"budget":{"type":"integer","description":"Most credits it may spend, 1 to 5000"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to the budget"},"run_id":{"type":"integer","description":"A run already started: returns its progress and starts nothing"}},"required":["list_id"]}},{"name":"book_appointment","title":"Book appointment","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Book an appointment for a customer, as the owner does in Viva: it goes on the calendar and any connected Google or Outlook calendar, reminders are set, the customer is added to Leads, and if the business sends booking confirmations and the customer has an email, they get one. date and time are the owner's own (the business's timezone), e.g. 2026-11-04 and 14:30. service is one of the business's services by name; its length is used. Without one, duration_minutes or the default length. A time that clashes with another appointment or blocked time is refused with open times to offer instead. No payment is taken, even for a service paid online, as when the owner books it in Viva. Without confirm: true this only says what would be booked and whether the customer is emailed, and books nothing: show the owner, then call again with confirm: true.","input_schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD, in the business timezone"},"time":{"type":"string","description":"HH:MM, 24-hour, in the business timezone"},"customer_name":{"type":"string"},"customer_email":{"type":"string","description":"Email or phone is needed"},"customer_phone":{"type":"string"},"service":{"type":"string","description":"One of the business's services, by name"},"duration_minutes":{"type":"integer","description":"Without a service: how long, 5 to 480"},"notes":{"type":"string"},"confirm":{"type":"boolean","description":"Only after the owner said yes to booking it"}},"required":["date","time","customer_name"]}},{"name":"move_appointment","title":"Move appointment","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Move one appointment (id from list_appointments) to a new date and time, keeping its length. date and time are the owner's own (the business timezone). The new time must be free, as for a new booking: one that clashes with another appointment or blocked time is refused with open times to offer instead. Its reminders are re-timed and any connected Google or Outlook calendar event is moved. Viva does not message the customer about the change: tell the owner to let them know. Without confirm: true this only says the old and new times, and changes nothing: show the owner, then call again with confirm: true.","input_schema":{"type":"object","properties":{"appointment_id":{"type":"integer","description":"From list_appointments"},"date":{"type":"string","description":"New date, YYYY-MM-DD, in the business timezone"},"time":{"type":"string","description":"New time, HH:MM, 24-hour, in the business timezone"},"confirm":{"type":"boolean","description":"Only after the owner said yes to the new time"}},"required":["appointment_id","date","time"]}},{"name":"cancel_appointment","title":"Cancel appointment","access":"send","risk":"high","idempotent":false,"scope":"mcp:send","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"description":"Cancel one appointment (id from list_appointments), as Cancel does on the calendar in Viva: it comes off the calendar and any connected Google or Outlook calendar, its reminders stop, and if the customer has a phone number they get a cancellation text. Only that one appointment, not the rest of a repeating series. A paid appointment cannot be cancelled here, because cancelling refunds it: the owner cancels it in Viva. Without confirm: true this only says which appointment and whether the customer will be texted, and changes nothing: show the owner, then call again with confirm: true.","input_schema":{"type":"object","properties":{"appointment_id":{"type":"integer","description":"From list_appointments"},"reason":{"type":"string","description":"Optional: why, in the owner's words; kept on the appointment"},"confirm":{"type":"boolean","description":"Only after the owner said yes to cancelling this appointment"}},"required":["appointment_id"]}},{"name":"find_events","title":"Find events","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":true,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Find events to sponsor, exhibit at, speak at or attend: conferences, summits, expos, galas, festivals, mixers. Searches the event catalogue and the web for an audience in a metro and date window, the same search as Viva → Find → Events. It can take a while: if it comes back still_searching, call again with its job_id. Free within the day's searches (shared with Find); past them a search costs credits, so this stops and says so unless confirm_spend is true: ask the person first. Dates are the event's own, with no clock time. get_event reads one; unlock_event (1 credit) opens its ways in and organizer contacts.","input_schema":{"type":"object","properties":{"audience":{"type":"string","description":"Who should be there, in plain words, e.g. 'HR leaders' or 'wine buyers'"},"metros":{"type":"array","items":{"type":"string","enum":["bayarea","sf","sv","eastbay","nyc","la","chicago","vegas","miami","austin","dallas","seattle","atlanta"]},"description":"Up to 3; default bayarea (sf, sv and eastbay)"},"types":{"type":"array","items":{"type":"string","enum":["conference","summit","expo","gala","festival","meetup","annual_meeting"]},"description":"Default conference, summit, expo"},"from":{"type":"string","description":"YYYY-MM or YYYY-MM-DD; default this month"},"to":{"type":"string","description":"YYYY-MM or YYYY-MM-DD; default the end of next year"},"job_id":{"type":"integer","description":"Carry on with a search this tool started (still_searching), or page through its results"},"page":{"type":"integer","description":"1-based page of 25, with job_id"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend credits on this search"}}}},{"name":"get_event","title":"Get event","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"One event from find_events in full: dates, venue, what it is about, how many attend where stated, and the organizer. Free. Its ways in (sponsor, exhibit, speak, supply, with prices and deadlines) and the organizer contacts show once this account unlocked it (unlock_event, 1 credit).","input_schema":{"type":"object","properties":{"event_id":{"type":"integer","description":"From find_events"}},"required":["event_id"]}},{"name":"unlock_event","title":"Unlock event","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Unlock one event from find_events for this account: its ways in (sponsor, exhibit, speak, supply, with prices and deadlines where stated) and the organizer contacts, read from the event's own website. Costs 1 credit, charged only when the read delivers; an event this account already unlocked costs nothing. Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true. Reading the site can take up to a minute.","input_schema":{"type":"object","properties":{"event_id":{"type":"integer","description":"From find_events"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend the credit"}},"required":["event_id"]}},{"name":"find_audiences","title":"Find audiences","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":true,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Find where an audience gathers. kind 'influencers': podcasts, YouTube channels and blogs to pitch or sponsor (Viva → Find → Influencers). kind 'communities': Facebook and LinkedIn groups, subreddits, Meetups, Discords, forums and associations to join or partner with (Viva → Find → Communities). The same search as those pages; it can take a while, so if it comes back still_searching, call again with its job_id. Free within the day's searches (shared with Find); past them a search costs credits, so this stops and says so unless confirm_spend is true: ask the person first. A null size means not measured, never none. get_audience reads one; an influencer's contact details open with unlock_influencer (1 credit), and a community's are free.","input_schema":{"type":"object","properties":{"kind":{"type":"string","enum":["influencers","communities"]},"audience":{"type":"string","description":"Who, in plain words, e.g. 'small business owners' or 'new parents'"},"place":{"type":"string","description":"national (default), or a metro: bayarea, sf, sv, eastbay, la, sandiego, sacramento, seattle, portland, denver, dallas, houston, austin, chicago, atlanta, miami, dc, philadelphia, nyc, boston and others"},"job_id":{"type":"integer","description":"Carry on with a search this tool started (still_searching), or page through its results"},"page":{"type":"integer","description":"1-based page of 25, with job_id"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend credits on this search"}},"required":["kind"]}},{"name":"get_audience","title":"Get audience","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"One influencer or community from find_audiences in full: what it is, how big and how active, why it fits, and its ways in (an email, a contact or guest page, the site). Free. An influencer's ways in show masked until this account unlocks it (unlock_influencer, 1 credit); a community's show in full.","input_schema":{"type":"object","properties":{"id":{"type":"integer","description":"From find_audiences"}},"required":["id"]}},{"name":"unlock_influencer","title":"Unlock influencer","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Unlock one influencer from find_audiences (a podcast, YouTube channel or blog) for this account: its contact details, an email or a contact or guest page, read from its own site where needed. Costs 1 credit, charged only if a way to reach the host is found; an influencer this account already unlocked costs nothing. Communities need no unlock: get_audience shows theirs. Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true.","input_schema":{"type":"object","properties":{"id":{"type":"integer","description":"From find_audiences"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend the credit"}},"required":["id"]}},{"name":"list_knowledge_sources","title":"List knowledge sources","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"List the websites and documents the business's chatbot answers from, with when each website was last synced (UTC), how many pages it holds, and any sync error. Use it before sync_knowledge_source to find the source_id, and to answer \"when did my site last sync?\" or \"why doesn't the chatbot know X?\" (search_knowledge then shows whether the content is there).","input_schema":{"type":"object","properties":{}}},{"name":"sync_knowledge_source","title":"Sync knowledge source","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Recrawl one of the business's websites (Sync Now) so the chatbot learns what changed on it. entire_site: true crawls up to 50 pages of the site and replaces the old pages; false re-reads just that one page; leave it out to sync the way the source was set up. Takes from a few seconds to about a minute. When it returns synced: true the chatbot can already answer from the new content. Get source_id from list_knowledge_sources. A failed sync keeps the pages the chatbot had.","input_schema":{"type":"object","properties":{"source_id":{"type":"integer","description":"The website source, from list_knowledge_sources"},"entire_site":{"type":"boolean","description":"Crawl the whole site (up to 50 pages) rather than one page"}},"required":["source_id"]}},{"name":"add_website_source","title":"Add website source","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Add a website to what the business's chatbot answers from, and crawl it now. entire_site (default true) crawls up to 50 pages of the site; false reads only that page. The pages go live in the chatbot's answers as soon as it returns. If the address is already a source, it says so and gives the source_id to sync instead.","input_schema":{"type":"object","properties":{"url":{"type":"string","description":"The http(s) address, e.g. https://example.org/"},"title":{"type":"string","description":"Optional name for the source; defaults to the site's host name"},"entire_site":{"type":"boolean","description":"Crawl the whole site (default true)"}},"required":["url"]}},{"name":"get_chatbot_settings","title":"Get chatbot settings","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Read the website chatbot's settings that update_chatbot_settings can change — greeting, tone, instructions, answer length, quick-reply buttons, offline message, name, header title and subtext, colours, chat-button label — plus whether the chatbot and the widget are on (read-only here; the owner switches those in Settings › Chat).","input_schema":{"type":"object","properties":{}}},{"name":"update_chatbot_settings","title":"Update chatbot settings","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Change the website chatbot's settings. Pass only the fields to change. A blank value clears chat_tone, chat_instructions, chat_agent_name, widget_header_subtext, header_color or launcher_label; the others can't be blank. Fields: welcome_message (First message a visitor sees); chat_tone (friendly, professional or casual — or a short description of the voice); chat_instructions (Extra instructions for how the chatbot answers); response_length (How long answers are); quick_replies (Buttons under the greeting: a list of labels, or {label, action}); offline_message (Shown outside business hours); chat_agent_name (The chatbot's name on its replies); widget_title (Title in the chat header); widget_header_subtext (Line under the header title); primary_color (Main colour, hex like #8b5cf6); header_color (Header colour, hex like #1f2937); launcher_label (Text on the chat button). It takes effect on the chatbot and the chat page straight away, and can be reversed with undo_change using the batch_id it returns. It cannot turn the chatbot or the widget on or off, or change custom CSS, limits or notification recipients — for those, send the owner to Settings › Chat. Call get_chatbot_settings first when changing quick replies, since the list replaces the old one.","input_schema":{"type":"object","properties":{"welcome_message":{"type":"string","description":"First message a visitor sees"},"chat_tone":{"type":"string","description":"friendly, professional or casual — or a short description of the voice"},"chat_instructions":{"type":"string","description":"Extra instructions for how the chatbot answers"},"response_length":{"type":"string","enum":["brief","standard","detailed"],"description":"How long answers are"},"quick_replies":{"type":"array","items":{},"description":"Buttons under the greeting: a list of labels, or {label, action}"},"offline_message":{"type":"string","description":"Shown outside business hours"},"chat_agent_name":{"type":"string","description":"The chatbot's name on its replies"},"widget_title":{"type":"string","description":"Title in the chat header"},"widget_header_subtext":{"type":"string","description":"Line under the header title"},"primary_color":{"type":"string","description":"Main colour, hex like #8b5cf6"},"header_color":{"type":"string","description":"Header colour, hex like #1f2937"},"launcher_label":{"type":"string","description":"Text on the chat button"}}}},{"name":"get_discovery_scores","title":"Get discovery scores","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Read the business's Discovery scores (0-100) and its tracked rivals' scores: the overall Discovery score and its three pillars — AI search (field `aeo`: how often ChatGPT, Claude, Perplexity and Gemini name the business), Google search (`seo`: rankings and site health) and Reviews (`reputation`) — with each pillar's share of the overall score (`shares`; an online business is 50/50 with reviews not scored). The same numbers as Discovery › Overview, AI search, Google search, Reviews and Market; it reads the last scan and never rescans. A null score means not measured yet, never zero. Rivals carry their Market category (`group`; 'Default' is General). Use it for \"what's our AI search / Google score?\", \"how do we compare?\", or numbers for a report or deck.","input_schema":{"type":"object","properties":{}}},{"name":"get_market","title":"Get market","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Read Discovery › Market: what the business sells (its description), where its customers are, and each category it competes in — General (the default comparison set Overview uses) plus up to five of its own. Per category: the kinds of customer, whether the owner confirmed its questions, how often ChatGPT named the business (from the last \"find competitors\" ask and/or the last review, with dates), who ChatGPT recommends there, the rivals tracked with their AI search / Google / Reviews scores, and until when a review is included with the last find. Reads stored results only; never asks ChatGPT or spends credits. Use it for \"what categories do we compete in?\", \"who are our competitors for X?\", \"are we being named?\".","input_schema":{"type":"object","properties":{}}},{"name":"get_discovery_fixes","title":"Get discovery fixes","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Read the fixes Discovery lists, ranked: for AI search (with the points each adds to the Discovery score and the page to do it on, plus the top reasons AI engines gave for leaving the business out) and for Google search (the site-audit fixes with their site-health points). The same lists as the AI search and Google search pages; reads stored results, never rescans. Use it for \"what should we fix first?\" or a to-do list for a report.","input_schema":{"type":"object","properties":{}}},{"name":"find_competitors","title":"Find competitors","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Discovery › Market step 3 for one category: ask ChatGPT that category's own questions once each and record who it recommends and whether it names the business. Costs 10 credits (charged only if answers come back) and includes reviews of that category for 7 days. Without confirm_spend: true this only says the price and the balance and spends nothing: ask the person, then call again with confirm_spend: true. Takes about a minute. Use get_market first for the category names.","input_schema":{"type":"object","properties":{"category":{"type":"string","description":"A category name from get_market (not General)"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend 10 credits"}},"required":["category"]}},{"name":"run_market_review","title":"Run market review","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Discovery › Market step 5: score every rival tracked in one category (General included) on AI search, Google and Reviews. Included (free) within 7 days of find_competitors for that category; otherwise 5 credits, charged only if someone was measured. When it would cost credits, without confirm_spend: true it only says the price and spends nothing: ask the person, then call again with confirm_spend: true. Takes about a minute.","input_schema":{"type":"object","properties":{"category":{"type":"string","description":"A category name from get_market, or 'General'"},"confirm_spend":{"type":"boolean","description":"Only after the person agreed to spend 5 credits (not needed when included)"}},"required":["category"]}},{"name":"track_rival","title":"Track rival","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Discovery › Market step 4: track a rival in one category (General or one of the owner's), up to five per category; the same rival may be tracked in several categories. Give their website if known; without one we look it up and only accept a site whose domain carries their name. Free. Scores appear after run_market_review.","input_schema":{"type":"object","properties":{"category":{"type":"string","description":"A category name from get_market, or 'General'"},"name":{"type":"string","description":"The business name"},"website":{"type":"string","description":"Their website, if known"}},"required":["category","name"]}},{"name":"untrack_rival","title":"Untrack rival","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Stop tracking a rival in one category (by its exact name from get_market). Their past scores are kept; nothing is deleted. Free.","input_schema":{"type":"object","properties":{"category":{"type":"string","description":"A category name from get_market, or 'General'"},"name":{"type":"string","description":"The rival name exactly as get_market lists it"}},"required":["category","name"]}},{"name":"confirm_questions","title":"Confirm questions","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Discovery › Market step 2: mark a category's questions as looking right (or take that back with confirmed: false). Free.","input_schema":{"type":"object","properties":{"category":{"type":"string"},"confirmed":{"type":"boolean","description":"Default true"}},"required":["category"]}},{"name":"set_market_description","title":"Set market description","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Replace the business's What you sell description (up to 600 characters), in the owner's words. Categories are suggested from it. Free; never asks ChatGPT.","input_schema":{"type":"object","properties":{"description":{"type":"string"}},"required":["description"]}},{"name":"edit_categories","title":"Edit categories","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"description":"Change one Market category at a time — action 'add' (with its kinds of customer; its buyer questions are written for it, free), 'rename' (its questions, rivals and results move with it), or 'remove' (its questions stop being asked and its rivals stop being tracked; nothing is deleted — needs confirm_remove: true after asking the person). Five categories at most. Never asks ChatGPT.","input_schema":{"type":"object","properties":{"action":{"type":"string","enum":["add","rename","remove"]},"name":{"type":"string","description":"The category to add, rename or remove"},"new_name":{"type":"string","description":"rename: the new name"},"customers":{"type":"array","items":{"type":"string"},"description":"add: up to three kinds of customer, e.g. [\"restaurants\", \"dentists\"]"},"confirm_remove":{"type":"boolean","description":"remove: only after the person agreed"}},"required":["action","name"]}},{"name":"get_setup_questions","title":"Get setup questions","access":"read","risk":"low","idempotent":false,"scope":"mcp:read","spends_credits":false,"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"The setup questions for this business's kind (its experience pack, e.g. restaurants) and the answers saved so far. A pack's jobs need the required ones answered before they can start (propose_job says which job needs them). Ask the owner the unanswered ones in your own words, one or two at a time.","input_schema":{"type":"object","properties":{}}},{"name":"add_tag","title":"Add tag","access":"write","risk":"low","idempotent":true,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Add tag","input_schema":{"type":"object","properties":{"tag":{"type":"string"}},"required":["tag"]}},{"name":"remove_tag","title":"Remove tag","access":"write","risk":"low","idempotent":true,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"description":"Remove tag","input_schema":{"type":"object","properties":{"tag":{"type":"string"}},"required":["tag"]}},{"name":"update_field","title":"Update field","access":"write","risk":"low","idempotent":true,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Set one field on the Pipeline lead with this email. field is status, notes, next_action or value. status is one of new, contacted, qualified, proposal, won, closed, and only ever moves a lead forward (never back, never off lost); setting it adds the person to the Pipeline if they are not there yet. notes, next_action and value change an existing lead only: if no lead has this email, nothing changes. The reply does not say whether a lead changed, so check with get_lead when it matters.","input_schema":{"type":"object","properties":{"contact_email":{"type":"string","description":"Email of the lead to change"},"field":{"type":"string","enum":["status","notes","next_action","value"]},"value":{"type":"string","description":"For status: new, contacted, qualified, proposal, won or closed"}},"required":["contact_email","field","value"]}},{"name":"notify_owner","title":"Notify owner","access":"write","risk":"medium","idempotent":false,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"description":"Notify owner","input_schema":{"type":"object","properties":{"message":{"type":"string"}},"required":[]}},{"name":"tag_contact","title":"Tag contact","access":"write","risk":"low","idempotent":true,"scope":"mcp:write","spends_credits":false,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"description":"Add an existing CRM tag to a person by email, creating them as a lead if new; starts or ends tag-driven flows","input_schema":{"type":"object","properties":{"contact_email":{"type":"string","description":"Email of the person"},"tag":{"type":"string","description":"Name of a tag that already exists in this account"},"name":{"type":"string","description":"Their name, used only if they are new"}},"required":["contact_email","tag"]}}],"notes":"Sending email or SMS directly is never exposed. Approving an agent run or a follow-up draft, which emails people, needs the separate mcp:send permission. Nothing spends credits without confirm_spend: true."}