# MCP tools

> Every tool the Naruska CRM MCP server offers your AI tool, what it is for, what it takes and an example request.

Your AI tool chooses these tools by itself: you talk, it calls them. This page is for when you want to know what it can do, or why it did something. Your MCP URL is `https://staging-mcp.naruskacrm.com/mcp`.

Every tool works under your own access: it sees and changes only what you can in the web app. Every change is logged with your name and the AI tool it came through, and returns an operation id that `undo` takes. Results are short on purpose and name each record with its id in brackets, so the AI acts on the right one; it never reads ids aloud.

The example sentences use made-up names.

## Find and read

### search

Finds contacts, accounts and deals by name, email, phone or company name; accents and word order don't matter. It can also find quotes (by name or number, like Q-1042), products, cases (by title or number, like C-1042) and campaigns. Returns at most 10, best match first.

Example: "Who is Maria Lind?"

### get_record

One record's overview with its last five timeline items and the latest note. Works for contacts, accounts, deals, notes, activities, quotes, products, cases (with status, age and resolution time) and campaigns (with members, responses and deals won). Takes an id, a name, a case number, or the subject of one of your open activities.

Example: "What's going on with Birchwood?"

### list_records

Lists records with filters: deals open, won or lost; contacts by status; activities by kind; cases open, waiting or closed; quotes by status; plus owner, dates, city, tags and custom fields. The answer starts by saying which filters it used. At most 50 at a time; it can fetch more.

Example: "List my open deals that should close this month and their total."

### get_timeline

A record's history, newest first: notes, activities, stage and status changes, cases, campaign member changes, and edits with who made them.

Example: "What has happened with Lakeside Tools since August?"

### describe_data_model

Your company's fields and custom fields (with picklist options), pipelines and stages, statuses and activity types. The AI calls it when it isn't sure of a name.

Example: "Which stages does our sales pipeline have?"

### get_usage

This month's usage and the limits of your plan. Admins only.

Example: "How much of our monthly limit have we used?"

## Create and change

### create_contact

Adds a person, with email, phone, organisation and job title. If the email already belongs to a contact, that contact is returned and nothing new is made.

Example: "Add Jussi Mäkelä from Birchwood, purchasing manager, jussi.makela@example.com."

### create_account

Adds an organisation, with website, industry and city.

Example: "Add Lakeside Tools, a hardware wholesaler in Tampere."

### create_opportunity

Adds a deal in a pipeline and stage (the default pipeline's first stage unless you say otherwise), with an amount, a close date, its contacts and the campaign it came from. Without an organisation, it uses the first contact's. If a required custom field is missing, the AI asks you once; if you don't know, it saves your words as a note and creates nothing.

Example: "Create a new deal for Birchwood, we agreed on 8,000 euros, closing in March."

### update_record

Changes fields and custom fields of a contact, organisation, deal, note, case or campaign. Only what changes is sent. Picklist values can be given by their label.

Example: "Set Maria Lind's job title to head of purchasing."

### move_opportunity

Moves a deal to another stage. Won or lost needs a reason: without one, the AI asks for it and changes nothing.

Example: "Move the Birchwood deal to negotiation."

### log_activity

Logs a call, meeting or task on contacts, an organisation, a deal or a case: done ("I called Maria") or planned (with a due date or start time). If the same call was logged by you in the last 15 minutes, the answer says so.

Example: "Log a call with Maria: they'll decide next week, remind me on Friday."

### complete_activity

Marks a task, meeting or call done, by its subject or id.

Example: "Mark the Birchwood follow-up done."

### add_note

Adds a note to contacts, organisations, deals or cases.

Example: "Note on Lakeside Tools that they want delivery before Easter."

### tag_records

Adds tags to contacts, organisations, deals or cases; a new tag is created on the way.

Example: "Tag Birchwood and Lakeside Tools as key accounts."

### untag_records

Removes tags from contacts, organisations, deals or cases.

Example: "Remove the key account tag from Lakeside Tools."

### link_contact_to_account

Records that a contact works at an organisation, with job title, start and end date, and whether it is their main employer.

Example: "Jussi Mäkelä now also works at Lakeside Tools as a consultant."

### add_contact_to_opportunity

Adds a contact to a deal with their role, optionally as the main contact.

Example: "Add Maria Lind to the Birchwood deal as the decision maker."

### delete_record

Moves a record to the recycle bin; admins can restore it for 30 days. Only admins delete contacts, organisations, deals, cases and campaigns. The AI confirms the exact record first.

Example: "Delete the duplicate note on Birchwood."

### restore_record

Brings a deleted record back. Admins only.

Example: "Restore the Lakeside Tools account."

### merge_records

Merges two duplicate contacts or organisations: links and notes move to the one you keep. Admins only. A merge can't be undone, so the AI confirms both records first.

Example: "Merge the two Maria Linds."

## Cases and campaigns

### create_case

Opens a case (a customer's question or problem) on a contact, optionally with their organisation and a deal, with priority and channel. You own it.

Example: "Open a case for Maria Lind: the delivery was missing a part."

### close_case

Closes a case by number, id or the title of one of your open cases, with the resolution and root cause in your words. Says how long it was open.

Example: "Close the case, we sent the missing part."

### create_campaign

Creates a campaign with a name and type (email, event, webinar, advertising, social, partner, other), and optionally dates, budget and status.

Example: "Create a webinar campaign called Spring launch for April."

### add_campaign_members

Adds contacts to a campaign by name or id, or by a filter (status, owner, tag, city; at most 500). It can also set the members' status, so "mark these as attended" is one step.

Example: "Add all our customers in Tampere to Spring launch and mark Maria as attended."

### remove_campaign_members

Removes contacts from a campaign. Their history stays.

Example: "Take Jussi off the Spring launch campaign."

## Quotes and documents

### create_quote

Makes a draft quote on a deal, with lines from your products or free text, VAT per line, validity, recipient, language (English or Finnish), cover text and terms.

Example: "Make a quote for the Birchwood deal: 10 licences of Pro, valid for 30 days."

### update_quote_lines

Replaces all lines of a draft quote. A sent quote gets a new version first.

Example: "Change the Birchwood quote to 12 licences."

### send_quote

Locks the quote's latest version, creates its PDF and marks it sent. Nothing is emailed: the answer has a download link that works for 15 minutes. The AI checks the lines and totals with you first.

Example: "Lock the Birchwood quote and create the PDF."

### get_quote

A quote's lines, totals and status, and a 15-minute PDF link once it is sent.

Example: "What's in quote Q-1042?"

### set_quote_status

Marks a sent quote accepted (its deal moves to won), rejected or expired. Undo reverses both.

Example: "Birchwood accepted the quote."

### attach_document

Attaches a file to a quote, deal, organisation, contact or case, from a public https link (at most 25 MB) or from the file itself (at most 5 MB). Uploads are part of the paid plans.

Example: "Attach the signed contract to the Birchwood deal."

## Webhooks and undo

### manage_webhooks

Lists, creates or removes webhook endpoints. Admins only. A new endpoint's signing secret is shown once. See [Webhooks](/webhooks.md).

Example: "Send our billing system an event when a deal is won."

### undo

Undoes your own last change; say it again to go one more step back. No id is needed. With an operation id, it undoes that change. Your own changes can be undone for 7 days; admins can undo anyone's for 30 days. Merges can't be undone, and a later change by someone else blocks the undo.

Example: "Undo that."
