Details
# Carta CRM Plugin
Manage the Carta CRM conversationally — search, add, update, and enrich investors, companies, contacts, deals, notes, and fundraisings via the Carta CRM MCP Server.
## Setup
This plugin talks to the Carta CRM through the **Carta CRM MCP Server**. You sign in with your
normal Carta CRM account.
On first use, Claude will prompt you to authenticate:
1. Claude will display an authorization URL — open it in your browser
2. Log in with your Carta CRM credentials
3. After authorizing, the browser redirects to a `localhost` URL (the page may fail to load — that's expected)
4. Copy the full URL from the browser address bar and paste it back into Claude
5. Done — your session is authenticated and you can start using the plugin
Authentication persists across sessions so you only need to do this once.
## Usage
Just describe what you want in plain English:
> "Add Sequoia Capital to the CRM — their website is sequoiacap.com and they focus on early-stage tech."
> "Find all deals in the Due Diligence stage."
> "Move the Apex Analytics deal to Tracking."
> "Add a note to the Stripe deal — met with Sarah Chen, ARR is $4.2M growing 15% QoQ."
Claude will collect any missing required information, call the right MCP tools, and confirm the result.
## Skills
### Add records
| Skill | Trigger phrases |
|-------|----------------|
| `add-investor` | "add investor", "add investor to Carta CRM", "create investor record", "add VC fund to CRM" |
| `add-company` | "add a company", "create company record", "add company to CRM" |
| `add-contact` | "add a contact", "create contact record", "add contact to CRM", "save a contact" |
| `add-deal` | "add a deal", "create a deal", "log a deal", "add deal to CRM" |
| `add-note` | "add a note", "log a note", "add note to a deal" |
| `add-fundraising` | "add a fundraising", "create a fundraising", "log a fundraising round" |
### Search & retrieve
| Skill | Trigger phrases |
|-------|----------------|
| `search-investors` | "find an investor", "search investors", "look up an investor" |
| `search-companies` | "find a company", "search companies", "look up a company" |
| `search-contacts` | "find a contact", "search contacts", "look up a person" |
| `search-deals` | "find a deal", "search deals", "show me deals for [company]" |
| `search-notes` | "find a note", "search notes", "look up a note" |
| `search-fundraisings` | "find a fundraising", "search fundraisings", "show fundraising pipeline" |
| `search-reports` | "run my report", "run the [name] report", "what reports do we have" |
### Update records
| Skill | Trigger phrases |
|-------|----------------|
| `update-investor` | "update an investor", "edit investor", "update investor details" |
| `update-company` | "update a company", "edit company", "update company details" |
| `update-contact` | "update a contact", "edit contact", "update contact details" |
| `update-deal` | "update a deal", "move deal to [stage]", "change deal stage" |
| `update-note` | "update a note", "edit note", "update note content" |
| `update-fundraising` | "update a fundraising", "edit fundraising", "update fundraising details" |
### Research & enrichment
| Skill | Trigger phrases |
|-------|----------------|
| `enrich-company` | "enrich this company", "look up company info", "research this company" |
### Analytics & reporting
| Skill | Trigger phrases |
|-------|----------------|
| `deal-flow-analytics` | "deal flow analytics", "analyze our deal flow", "who introduced most of our deals", "breakdown of deals by sector", "deal flow by geography" |
### Meeting prep
| Skill | Trigger phrases |
|-------|----------------|
| `prepare-for-meeting` | "prepare me for my meeting", "meeting brief", "brief me for this meeting", "prep for upcoming meeting", "what do I need to know before my call with [company]" |
Builds a one-page tear sheet for **the next upcoming meeting** with a counterparty, from CRM
data only:
> "Prepare me for my meeting with Meridian Growth Partners."
It resolves the meeting from whichever handle you give it — a deal, investor, fundraising,
company, person, or just an email domain — reading that entity's `futureInteractions` for the
next event. It then compiles the invitees and their history, the organization's notes and
relationship status, related CRM objects, warm paths, and suggested questions into a rendered
brief.
**Where the brief appears.** In Cowork it renders inline as an artifact. Everywhere else you
get a PDF link, and in Claude Code an HTML file on disk. Re-running it for the same meeting
updates the existing artifact rather than creating a second one.
**Scope.** One meeting — the next one. This is not an agenda view and there is no date-range
mode. Fields the CRM does not hold (RSVP status, meeting duration) are omitted rather than
guessed at.
### Warm introductions
| Skill | Trigger phrases |
|-------|----------------|
| `get-angles` | "how can I get introduced to [company]", "who do I know at [company]", "find intro angles into [company]", "warm intro to [company]", "any connections at [domain]" |
Finds your best way into a company you have no relationship with, and then sets it up:
> "How can I get introduced to Tunic Pay?"
It resolves the company's domain, reads your network overlap alongside your own firm's history
with that domain, and ranks the routes by whether they can actually be walked — a contact you
know who overlapped in tenure with a Director beats a stranger who shared an employer with the
CEO but never at the same time. You get an interactive route map, a drafted introduction
request to the connector, and the option to have Claude create the email draft, log the request
on the deal, and add the target to the CRM.
**Two things it deliberately does.** It tells you when a colleague is already in conversation
with the company, so you don't ask a near-stranger for an intro into an account your own firm
is working. And it stops rather than padding the list when no genuinely warm route exists.
**Where the map appears.** As an interactive artifact wherever your host renders one; in Claude
Code, as an HTML file you can open in a browser. The follow-through actions run as buttons in
the panel where the host supports it, and in the conversation everywhere else.
## Data & Privacy
This plugin collects telemetry to improve reliability and performance. Data collected includes session context, model configuration, and plugin activity. See [Carta's Privacy Policy](https://carta.com/legal/privacy/privacy-policy/) for details.
## skills/add-company/SKILL.md
---
name: add-company
description: >
Adds one or more company records to the Carta CRM via the Carta CRM MCP Server.
Use this skill when the user says things like "add a company", "create company record",
"add company to CRM", "add company to Carta CRM", or "/add-company".
Collects company information conversationally, then creates it via the MCP server.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Help the user create one or more company records in the Carta CRM using the
`create_company` MCP tool. Collect company details conversationally, validate
required fields, then call the tool.
## Step 1 — Discover available custom fields (optional but recommended)
Call the custom fields tool to see what fields the tenant has configured:
```
crm_call_tool({ "name": "crm:get_company_custom_fields", "arguments": {} })
```
Use the returned field IDs and labels as hints when collecting company data.
If the call fails, proceed without it — custom fields are optional.
## Step 2 — Collect company information
Ask the user for:
- **Name** (required) — the company name (e.g. "Stripe", "Acme Corp")
- **Image URL** (optional) — company logo URL
- **Custom fields** (optional) — any fields returned in Step 1 (e.g. website, industry, location, about, tags)
If the user has already provided details in their message, extract them directly
without re-asking.
## Step 3 — Create the company
Call:
```
crm_call_tool({
"name": "crm:create_company",
"arguments": {
name: "<company name>",
image: "<logo url>",
fields: {
"<field_id>": "<value>"
}
}
})
```
Omit `image` and `fields` if not provided.
## Step 4 — Report result
On success, respond with:
> "Company **{name}** created successfully (ID: `{id}`)."
On error, show the error message and suggest:
- Check that `name` is provided and non-empty
- Verify custom field IDs match the keys returned by `get_company_custom_fields`
## Adding multiple companies
If the user wants to add multiple companies at once, repeat Steps 2–4 for each one.
After all are done, summarize:
> "Created N companies: [list of names with IDs]"
## skills/add-contact/SKILL.md
---
name: add-contact
description: >
Adds one or more contact records to the Carta CRM via the Carta CRM MCP Server.
Use this skill when the user says things like "add a contact", "create a contact
record", "add contact to CRM", "save a contact", "upload contact to Carta CRM",
or "/add-contact". Collects contact information conversationally, then creates it
via the MCP server. Only name is required — all other fields are optional.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Help the user create one or more contact records in the Carta CRM using the
`create_contact` MCP tool. Only `name` is required — collect that and any other
details the user has already provided, then call the tool. Do not block on optional fields.
## Step 1 — Collect contact information
Only `name` is required. Extract everything the user has already provided in their
message without re-asking. If `name` is missing, ask for it once.
Fields you can collect:
- **name** (required) — full name, or derived from firstName + lastName
- **firstName**, **lastName**, **middleName** (optional)
- **emailDetail** — primary email; emailDetailSecond/Third/Fourth for additional emails
- **phone** — primary phone; businessPhone/thirdPhone/fourthPhone for additional numbers
- **title** — job title
- **headline** — short bio or tagline
- **location** — work location: city, state, country
- **socialLinks** — linkedinUrl, twitterUrl, githubUrl, facebookUrl
- **jobs** — work experience: array of {companyName, title, startedOn, endedOn}
- **tags** — array of string tags
- **notes** — free-text notes
- **listId** — if provided, adds the contact to that list
If the user wants to populate custom fields, fetch the schema first:
```
crm_call_tool({ "name": "crm:get_contact_custom_fields", "arguments": {} })
```
Never ask for `listId` unless the user brings it up.
## Step 2 — Create the contact
Call:
```
crm_call_tool({
"name": "crm:create_contact",
"arguments": {
name: "<contact name>",
firstName: "<first>",
lastName: "<last>",
emailDetail: "<email>",
phone: "<phone>",
title: "<title>",
tags: ["<tag1>"],
fields: { "<field_id>": "<value>" }
}
})
```
Include only the fields the user provided. Omit everything else.
## Step 3 — Report result
On success, respond with:
> "Contact **{name}** saved successfully (ID: `{id}`)."
On error, show the error message and suggest:
- Check that `name` is provided and non-empty
- Verify the `listId` exists if one was provided
## Adding multiple contacts
If the user wants to add multiple contacts, repeat Steps 1–3 for each one, then
summarize:
> "Created N contacts: [list of names with IDs]"
## skills/add-deal/SKILL.md
---
name: add-deal
description: >
Creates one or more deal records in the Carta CRM via the Carta CRM MCP Server.
Use this skill when the user says things like "add a deal", "create a deal",
"log a deal", "add deal to CRM", "add deal to Carta CRM", or "/add-deal".
Collects deal information conversationally, then creates it via the MCP server.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Help the user create one or more deal records in the Carta CRM. First fetch available
pipelines and custom fields, then collect deal details conversationally, then call
`create_deal`.
## Step 1 — Fetch available pipelines and stages
Call the pipelines tool so the user can pick a pipeline and stage by name:
```
crm_call_tool({ "name": "crm:get_deal_pipelines_with_stages", "arguments": {} })
```
Present the pipeline and stage names to the user. If the call fails, proceed without
it — pipeline and stage default to the organization's defaults if omitted.
## Step 2 — Discover available custom fields (optional)
```
crm_call_tool({ "name": "crm:get_deal_custom_fields", "arguments": {} })
```
Use returned field IDs and labels as hints when collecting deal data.
If the call fails, proceed without it.
## Step 3 — Collect deal information
Ask the user for:
- **Pipeline** (optional) — which pipeline this deal belongs to (from Step 1)
- **Stage** (optional) — which stage within the pipeline (from Step 1)
- **Company name** (optional) — the company associated with the deal
- **Company URL** (optional) — company website (used for auto-enrichment)
- **Comment** (optional) — notes or comments about the deal
- **Tags** (optional) — array of tag strings
- **Deal lead** (optional) — user ID to assign as deal lead
- **Added at** (optional) — ISO 8601 date the deal was added
- **People** (optional) — contact IDs for advisers, introducers, management
- **Custom fields** (optional) — any fields returned in Step 2
If the user has already provided details in their message, extract them directly
without re-asking.
## Step 4 — Create the deal
Call:
```
crm_call_tool({
"name": "crm:create_deal",
"arguments": {
pipelineId: "<pipeline id>",
stageId: "<stage id>",
company: {
name: "<company name>",
url: "<company url>"
},
comment: "<comment>",
tags: ["<tag1>", "<tag2>"],
dealLead: "<user id>",
addedAt: "<ISO 8601 date>",
people: {
advisers: ["<contact id>"],
introducer: ["<contact id>"],
management: ["<contact id>"]
},
fields: {
"<field_id>": "<value>"
}
}
})
```
Omit any key the user did not provide. Omit `company` if neither name nor URL was given.
## Step 5 — Report result
On success, respond with:
> "Deal for **{company name}** created successfully (ID: `{id}`)."
On error, show the error message and suggest:
- Verify pipeline and stage IDs — run `get_deal_pipelines_with_stages` to list valid options
- Check that custom field IDs are valid
## Adding multiple deals
If the user wants to add multiple deals at once, repeat Steps 3–5 for each one.
After all are done, summarize:
> "Created N deals: [list of company names with IDs]"
## skills/add-fundraising/SKILL.md
---
name: add-fundraising
description: >
Adds one or more fundraising records to the Carta CRM via the Carta CRM MCP Server.
Use this skill when the user says things like "add a fundraising", "create a fundraising",
"log a fundraising round", "add fundraising to CRM", "create fundraising record",
or "/add-fundraising". Collects fundraising information conversationally, then creates
it via the MCP server.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Help the user create one or more fundraising records in the Carta CRM using the
`create_fundraising` MCP tool. Collect details conversationally, then call the tool.
## Step 1 — Fetch available stages (optional but recommended)
Call the stages tool so the user can pick a stage by name:
```
crm_call_tool({ "name": "crm:get_fundraising_stages", "arguments": {} })
```
Present the stage names to the user. If the call fails, proceed without it —
stage defaults to the first stage if omitted.
## Step 2 — Discover available custom fields (optional)
```
crm_call_tool({ "name": "crm:get_fundraising_custom_fields", "arguments": {} })
```
Use returned field IDs and labels as hints when collecting fundraising data.
If the call fails, proceed without it.
## Step 3 — Collect fundraising information
Ask the user for:
- **Name** (required) — the fundraising round name (e.g. "Acme Corp Series B", "Project Atlas Seed Round")
- **Stage** (optional) — which stage this fundraising is in (from Step 1)
- **Custom fields** (optional) — any fields returned in Step 2
If the user has already provided details in their message, extract them directly
without re-asking.
## Step 4 — Create the fundraising
Call:
```
crm_call_tool({
"name": "crm:create_fundraising",
"arguments": {
name: "<fundraising name>",
stageId: "<stage id>",
fields: {
"<field_id>": "<value>"
}
}
})
```
Omit `stageId` and `fields` if not provided.
## Step 5 — Report result
On success, respond with:
> "Fundraising **{name}** created successfully (ID: `{id}`)."
On error, show the error message and suggest:
- Check that `name` is provided and non-empty
- Verify stage IDs are valid — run `get_fundraising_stages` to list options
- Verify custom field IDs match the keys returned by `get_fundraising_custom_fields`
## Adding multiple fundraisings
If the user wants to add multiple fundraisings at once, repeat Steps 3–5 for each one.
After all are done, summarize:
> "Created N fundraisings: [list of names with IDs]"
## skills/add-investor/SKILL.md
---
name: add-investor
description: >
Adds one or more investor records to the Carta CRM via the Carta CRM MCP Server.
Use this skill when the user says things like "add an investor", "/add-investor",
"add investor to Carta CRM", "create investor record", "add this VC fund to the CRM", or
"save investor data". Collects investor information conversationally, then creates
it via the MCP server.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Help the user create one or more investor records in the Carta CRM using the
`create_investor` MCP tool. Collect investor details conversationally, validate
required fields, then call the tool.
## Step 1 — Discover available custom fields (optional but recommended)
Call the custom fields tool to see what fields the tenant has configured:
```
crm_call_tool({ "name": "crm:get_investor_custom_fields", "arguments": {} })
```
Use the returned field IDs and labels as hints when collecting investor data.
If the call fails, proceed without it — custom fields are optional.
## Step 2 — Collect investor information
Ask the user for:
- **Name** (required) — the investor firm name (e.g. "Sequoia Capital", "a16z")
- **Custom fields** (optional) — any fields returned in Step 1 (e.g. website, location, industry, about, tags)
If the user has already provided details in their message, extract them directly
without re-asking.
## Step 3 — Create the investor
Call:
```
crm_call_tool({
"name": "crm:create_investor",
"arguments": {
name: "<investor name>",
fields: {
"<field_id>": "<value>"
}
}
})
```
Omit `fields` entirely if no custom field data was provided.
## Step 4 — Report result
On success, respond with:
> "Investor **{name}** created successfully (ID: `{id}`)."
On error, show the error message and suggest:
- Check that `name` is provided and non-empty
- Verify custom field IDs match the keys returned by `get_investor_custom_fields`
## Adding multiple investors
If the user wants to add multiple investors at once, repeat Steps 2–4 for each one.
After all are done, summarize:
> "Created N investors: [list of names with IDs]"
## skills/add-note/SKILL.md
---
name: add-note
description: >
Adds a note to a deal in the Carta CRM via the Carta CRM MCP Server; notes are
stored as comments on the deal record. Use this skill when the user says things
like "add a note", "log a note", "add note to a deal", "add note to Carta CRM",
"add a comment", "comment on a deal", or "/add-note".
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
version: 1.0.0
model: haiku
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
In the Carta CRM MCP Server, notes are added as comments on deal records using the
`comment` field via `update_deal`. Help the user identify which deal to attach
the note to, collect the note content, then update the deal.
## Step 1 — Identify the deal
Ask the user which deal the note is for. If they named a company or deal, search for it:
```
crm_call_tool({ "name": "crm:get_deal_fields", "arguments": {} })
crm_call_tool({ "name": "crm:search_deals", "arguments": { query: "<company name>", limit: 10 } })
```
If multiple deals match, present the list and ask which one to attach the note to.
If the user provided a deal ID directly, skip the search.
## Step 2 — Collect the note content
Ask the user for:
- **Note text** (required) — the content of the note
If the user has already provided the note content in their message, extract it directly
without re-asking.
Optionally show the existing comment on the deal (from `fetch_deal_by_deal_id`) so the
user knows whether they're replacing or appending:
```
crm_call_tool({ "name": "crm:fetch_deal_by_deal_id", "arguments": { id: "<deal id>" } })
```
## Step 3 — Add the note to the deal
Call:
```
crm_call_tool({
"name": "crm:update_deal",
"arguments": {
id: "<deal id>",
comment: "<note content>"
}
})
```
Note: `comment` replaces the existing deal comment. If the deal already has a comment
and the user wants to append, combine the existing text with the new content and confirm
before saving.
## Step 4 — Report result
On success, respond with:
> "Note added to deal **{company name}** (ID: `{id}`)."
On error, show the error message and suggest:
- Verify the deal ID is correct — run `/search-deals` to find it
## skills/carta-crm-home-build/SKILL.md
---
# An organization whose MCP_UI_HOME_ENABLED is off gets no resource from crm-api, so Step 1
# finds nothing to publish and the skill stops there rather than publishing an empty page.
name: carta-crm-home-build
description: >
Publishes the Carta CRM Home as a live artifact — a standalone page, at a stable URL,
showing pipeline by stage, recent deals and contacts, object counts, latest notes and
this week's meetings. The page reads the CRM itself through a read-only grant, so it
refreshes whenever a viewer opens it. Use this skill when the user asks to "build crm
home", "rebuild crm home", "publish my crm home", "pin my crm home", "deploy crm home",
or asks for a CRM Home page they can bookmark. For a fund firm's Carta Home (SOI, fund
performance, LP reporting) use carta-investors' carta-home-build; for a company's cap
table use carta-cap-table's carta-captable-home-build. To see the Home inside this
conversation rather than publish it, use the `home` skill.
model: inherit
allowed-tools:
# The only source for a connector's name
- list_connectors
# Entitlement, and the organization the published title names.
- mcp__carta__welcome
- mcp__claude_ai_Carta__welcome
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__welcome
- mcp__carta__get_current_user
- mcp__claude_ai_Carta__get_current_user
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__get_current_user
# The page itself.
- mcp__carta__list_resources
- mcp__claude_ai_Carta__list_resources
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__list_resources
- ListMcpResourcesTool
- ReadMcpResourceTool
# The manifest, for the viewBuildId the page is stamped with. Read-only by construction.
- mcp__carta__crm_read_tool
- mcp__claude_ai_Carta__crm_read_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_read_tool
- Bash(uv run *build_artifact.py *)
- Bash(find ~ -name "build_artifact.py"*)
- Bash(find /sessions -name "build_artifact.py"*)
- Bash(dirname *)
- Artifact
version: 1.0.0
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
# Carta CRM Home — publish
Publishes the CRM Home as **`Carta CRM Home - <Organization>`**, favicon **📇**.
**You never assemble or read the page.** crm-api builds it and serves it as an MCP resource,
so this skill fetches that resource and stamps two things into it. That is deliberate: the
page's JavaScript calls the card tools of the server it will read from, so fetching it from
that same server is what keeps the two in step. A copy vendored into this repository would
drift the moment the Home view changed, and would call tools whose payloads had moved on.
## What the page does
One manifest call, then one call per card, all through `crm_read_tool`:
| Card | Tool |
|---|---|
| Your CRM at a glance | `get_crm_home_counts` |
| Pipeline by stage | `get_crm_home_pipeline` |
| Deals added recently | `get_crm_home_deals` |
| Contacts added recently | `get_crm_home_contacts` |
| Latest notes | `get_crm_home_notes` |
| Meetings today | `get_crm_home_meetings` |
| What you can ask | rendered in the page, no tool |
The manifest decides which of those the organization may see, so the page never chooses for
itself what to show.
## The grant, and why it is this narrow
The page declares `crm_read_tool` and nothing else. **Every viewer of the URL inherits that
grant**, and a non-empty `capabilities` object replaces the stored one on every republish, so
it cannot be trimmed afterwards.
`crm_read_tool` cannot write. It refuses, rather than executing:
```
CRM tool 'update_deal' writes, so it is not available through crm_read_tool.
```
Do **not** add `crm_call_tool`. It reaches the whole catalogue, including every write, and
handing that to everyone who opens a URL is a different thing entirely from showing them a
dashboard.
## Step 0: Gates
**Resolve the connector name.** Call `list_connectors` and take the Carta connector's display
name. This is the one thing the page cannot work out for itself, and a wrong name fails every
card with `server_not_connected`. A firm-specific deployment carries its own name, so never
assume `Carta`.
**Resolve the organization.** Call `get_current_user`. Its organization names the published
artifact. One artifact per organization, so two never write over each other.
**Confirm the user holds CRM.** If `get_current_user` reports no CRM access, say so and stop.
## Step 1: Fetch the page and its build id
**List the resources first, and read the URI off the row rather than assuming it.**
```
ListMcpResourcesTool(server: "<connector display name>")
```
Take the row whose URI ends `crm-home.html` — today the proxy serves it at
`ui://carta/crm-home.html`. The URI carries **no build hash**: it is a constant, and the proxy
owns it, so it does not move when crm-api rebuilds the page. Read it from the list anyway, so a
later rename in the proxy does not need a change here.
crm-api registers the same bundle under `ui://carta-crm/home.html`. That URI is internal to the
proxy and no host can resolve it, so never pass it here.
```
ReadMcpResourceTool(server: "<connector display name>", uri: "<the URI from the list>")
```
**Then read the build id off the manifest**, which is the only place it exists:
```
crm_read_tool({ "name": "get_crm_home", "arguments": {} })
```
Keep its `viewBuildId`. Step 2 stamps it, and the page compares it against a fresh manifest call
to tell a reader their copy is behind. It comes from the manifest and not from the URI because
the URI has no hash to take.
**If the resource is not listed**, the organization is outside the Home rollout. crm-api
withholds it exactly when it withholds the card tools, so there is nothing to publish and a
page built anyway would be a column of errors. Tell the user the Home is not switched on for
their organization, and stop. Do not fall back to the views bundle at
`ui://carta/crm-views.html`: it is a different build that expects a host to hand it a result,
and it carries demo fixtures.
The read is large, so the result is saved to a file and you are given the path rather than
the content. **Keep the path and pass it to Step 2. Do not open it** — Step 2 reads it, and
nothing in this skill needs the page in your context.
## Step 2: Stamp the page
The script lives in **this skill's own `scripts/` directory**.
> **Path — do NOT rely on `${CLAUDE_PLUGIN_ROOT}` in bash.** In the Cowork sandbox that env
> var is empty, so `uv run "${CLAUDE_PLUGIN_ROOT}/…"` resolves to a broken path. Use the base
> directory reported for this skill when it loaded (it ends in `/skills/carta-crm-home-build`)
> as `<SKILL_DIR>`. If you do not have it, resolve it once with a scoped `find` (NOT `find /`):
> ```
> SKILL_DIR="$(dirname "$(dirname "$(find /sessions "$HOME" -type f -path '*/carta-crm-home-build/scripts/build_artifact.py' 2>/dev/null | head -1)")")"
> ```
```
uv run "<SKILL_DIR>/scripts/build_artifact.py" \
--resource "<path from Step 1>" \
--connector "<connector display name>" \
--organization "<organization from Step 0>" \
--build-id "<viewBuildId from Step 1>" \
--out <outputs-directory>/crm-home-<slug>.html
```
`<slug>` is the organization lowercased with non-alphanumerics collapsed to `-`, so two
organizations never write over each other's file.
The script writes three things and validates the rest:
- `<meta name="carta-connector">`, where the page reads which connector to call.
- `<meta name="carta-home-build">`, the `viewBuildId` from Step 1. The page compares it against
`viewBuildId` on a fresh manifest call and shows a rebuild notice when the two disagree. Pass
it every time: without `--build-id` the page carries no stamp, and a page with no stamp never
reports being behind. This is also why the page must be fetched fresh rather than reused from
a previous run.
- the `<title>` that names the artifact.
It refuses a page that never calls `get_crm_home`, or one carrying the other views, so a wrong
resource stops here rather than reaching a URL.
## Step 3: Find an already-published CRM Home
```
Artifact({action: "list", scope: "mine"})
```
Look for one titled exactly **`Carta CRM Home - <Organization>`**. If it is there, keep its
`url` so Step 4 redeploys in place and the bookmark keeps working. If there is none, omit
`url` and this organization gets its own artifact.
An artifact for a **different organization is not a match** — reusing its `url` would replace
that organization's page with this one.
Two neighbours to leave alone. **`Carta Home - <firm>`** (favicon 🏠) belongs to
carta-investors' `carta-home-build`. **`Carta Home - <company>`** (favicon 📊) belongs to
carta-cap-table's `carta-captable-home-build`. Neither is a CRM Home, and publishing over one
would replace a colleague's dashboard.
## Step 4: Publish
`action` defaults to `"publish"`, so it is omitted. `url` is the only difference between a
first publish and a redeploy.
```
Artifact({
file_path: "<outputs-directory>/crm-home-<slug>.html",
url: "<url from Step 3 — omit entirely on a first publish>",
description: "Your Carta CRM at a glance — pipeline by stage, recent deals and contacts, latest notes, and today's meetings.",
favicon: "📇",
label: "Rebuilt from the Carta CRM Home resource",
capabilities: {
mcp: {
servers: [
{
server: "<connector display name>",
tools: ["crm_read_tool"]
}
]
}
}
})
```
> **No `title` here, and do not add one.** The tool takes the title from the file's own
> `<title>` tag, which Step 2 set. Passing one as well would only apply if the tag were
> missing, and it would drift from the page.
> **Omit `favicon` on a redeploy.** A viewer finds their tab by its icon, so it stays 📇 for
> the life of the artifact.
## Step 5: Confirm it works
Give the user the URL and tell them what it will and will not do:
- It reads **live**, so it is current whenever they open it, not a snapshot.
- It **cannot write** to their CRM.
- Anyone they share it with reads their CRM data through it. Say this plainly.
If they report every card failing, the connector name is the first thing to check: a page
stamped with a name their session does not carry gets `server_not_connected` on every call.
Rebuild with the right name and republish to the same `url`.
## What this skill does not do
**It does not render the Home in the conversation.** That is the `home` skill, and it is the
one that works everywhere the CRM MCP is reachable. This skill only publishes.
**It does not choose between the two.** The `home` skill selects a target and calls this one
when the user wants a page.
**It does not build the page.** If the Home looks wrong, the fix is in crm-api's
`src/components/mcp/ui`, not here. Rebuilding through this skill republishes whatever that
server currently serves.
## skills/deal-flow-analytics/SKILL.md
---
name: deal-flow-analytics
description: >
Aggregates recent deal flow in the Carta CRM into a dealmaker-facing report,
auto-discovering which fields matter for this tenant's schema. Use this
skill when the user says things like "deal flow analytics", "analyze our
deal flow", "review deals added in the last 12 months", "who introduced
most of our deals", "breakdown of deals by sector", "where is our deal flow
coming from", or "/deal-flow-analytics". Defaults to a trailing-12-month
window but accepts any date range or dimension the user specifies. Returns
counts and concentration callouts per dimension, not a list of individual
deals — use search-deals for that.
allowed-tools:
- mcp__carta__crm_call_tool
- mcp__claude_ai_Carta__crm_call_tool
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__crm_call_tool
- Read
- Write
version: 1.0.0
model: inherit
---
<!-- carta:plugin-version -->
<carta-plugin>carta-crm:1.15.0</carta-plugin>
## Overview
Every tenant configures its own custom deal fields, so the dimensions worth
reporting on differ per org. Discover them at runtime instead of assuming a
fixed list, then aggregate with `crm:aggregate_deals` — never tally deals by
hand from `crm:search_deals`.
`aggregate_deals` groups by **one field at a time**. Cover multiple
dimensions with multiple calls, not one call with multiple `group_by` values.
## Step 1 — Discover and classify fields
```
crm_call_tool({ "name": "crm:get_deal_fields", "arguments": {} })
```
Classify every field using its `type` alone — no probing needed:
- **Groupable** (`dropdown`, `multiselect`, `boolean`, or a standard `set`
field like `stage`, `tags`, `people.*`, `dealLead`) — the value space is
bounded by the field's `options` list, so it's always safe to
`aggregate_deals` on directly.
- **Continuous** (`number`, `input`, `textarea`, `datepicker`, or a
relational reference like `company`/`contacts-list`) — unbounded values.
**Never `group_by` these** — on this plugin's test tenant, fields like
`EBITDA`, `ARR`, and `Team_size` returned 100+ distinct groups each and
nearly hit the response size limit that broke a city-level location query.
- **Free-text standard fields** (`company.company_location`,
`company.company_industry`, or any other standard field of type `text`) —
same unbounded risk as Continuous, but always relevant, so they don't get
excluded by fill rate. Group by them, then roll the raw values up
client-side (e.g. city → country) before presenting — never show the raw
breakdown. Do **not** put these in an unconditional "always include" list;
classify them by type like everything else.
Always keep `stage` and `added_date` as the fixed core — both are bounded,
standard fields safe to group on directly regardless of tenant.
## Step 2 — Fill-rate check
**Groupable fields:** the `aggregate_deals` call from Step 3 already returns
fill rate for free — `totalCount` minus the null/no-`_id` group. No extra
call needed.
**Continuous fields:** don't call `aggregate_deals` per field. Pull one
shared sample instead:
```
crm_call_tool({ "name": "crm:search_deals", "arguments": { "limit": 30 } })
```
For each continuous field, compute fill rate as the share of sampled deals
whose `fields.<fieldId>` is present and non-null. One call covers every
continuous field — bounded payload regardless of cardinality.
**Exclude any field below 15% fill rate.** For fields landing between 15–25%
(the ambiguous band — above the cutoff but not reliably estimated by sample),
don't trust the sample — `search_deals` defaults to
recently-active deals first, which can massively overstate a rarely-used
field's true fill rate. Confirmed on this test tenant: a 20-deal sample
estimated one field at 25% filled when the true org-wide rate was 3%. For any
field in that band, re-check with a single `aggregate_deals` call on just
that field and use its exact `totalCount` instead of the sample estimate.
List excluded fields in a short "excluded — low coverage" line rather than
dropping them silently.
## Step 3 — Aggregate
For `stage`, every groupable custom field that passed Step 2, and every
free-text standard field (with rollup), filtered to the date window:
```
crm_call_tool({
"name": "crm:aggregate_deals",
"arguments": {
group_by: ["<field_id>"],
filters: [
{ field_id: "added_date", operator: "between", value: ["<start> 00:00:00", "<end> 23:59:59"] }
]
}
})
```
Ignore the `dealInfo` key in each group — it's a static org-default sample,
not part of the aggregation. For continuous fields that passed the fill-rate
check, report fill rate only (e.g. "Revenue: 95% filled") — don't attempt a
full distribution unless the user explicitly asks to drill into one.
For free-text standard fields, roll the raw grouped values up to a coarser
level client-side before presenting (e.g. `company.company_location` city
values → country) — show the top 5–8 rolled-up values and collapse the rest
into "Other".
Two different `_id`s can resolve to the same name (duplicate contacts) — combine
their counts and flag the duplicate rather than under-reporting the person's total.
For unresolved contact/user IDs, call `crm:fetch_contact_by_id` on the top few only.
If the user asks for one specific dimension, only aggregate that one — skip
the full discovery pass.
## Step 4 — Present
Render the report as an HTML dashboard using
`${CLAUDE_PLUGIN_ROOT}/skills/deal-flow-analytics/assets/dashboard-template.html`
— don't hand-build markdown tables, and don't reference the template by a bare
relative path (it resolves from the user's cwd, not the plugin directory).
Copy the template to a new file, then edit only the `DATA` object at the
bottom of its `<script>`:
- `dateRange` — the date range label, e.g. "Jul 2025 – Jul 2026 · 167 deals".
- `headline` — the single most notable finding, one sentence (a
concentration, a low fill rate, or a pipeline health issue like a stage
distribution skewed toward Dead).
- `excluded` — field labels dropped in Step 2, each with its fill rate.
CRM field values are untrusted — a tenant's dropdown option, tag, or company
name could contain arbitrary text. When writing any string into the `DATA`
object, if it contains the literal substring `</script`, insert a `\` before
t