---
canonical_url: "https://docs.composio.dev/toolkits/needle_mcp"
markdown_url: "https://docs.composio.dev/toolkits/needle_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Needle MCP

Manage leads, outreach campaigns, drafts and connected LinkedIn and Instagram accounts through Needle's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 116
- **Triggers:** 0
- **Slug:** `NEEDLE_MCP`
- **Version:** 00000000_00

## Tools

### Needle archive campaign

**Slug:** `NEEDLE_MCP_NEEDLE_ARCHIVE_CAMPAIGN`

Archive a campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `campaignId` | string | Yes | Campaign id |

### Needle check suppressions

**Slug:** `NEEDLE_MCP_NEEDLE_CHECK_SUPPRESSIONS`

Check whether identities are contactable or suppressed. IdenToolAnnotationWrite,tity accepts the same forms as leads: LinkedIn public identifier, /in/ path, profile URL, or user id; Instagram username, @handle, or profile URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identities` | array | Yes |  |

### Needle comment on instagram post

**Slug:** `NEEDLE_MCP_NEEDLE_COMMENT_ON_INSTAGRAM_POST`

Comment on an Instagram post, or reply to a comment on it. Write @username to mention someone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | The comment. Write @username to mention someone. |
| `postId` | string | Yes | postId from a posts listing, or the short code from the post URL. |
| `commentId` | string | No | Reply to this comment instead of commenting on the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle comment on linkedin post

**Slug:** `NEEDLE_MCP_NEEDLE_COMMENT_ON_LINKEDIN_POST`

Comment on a LinkedIn post, or reply to a comment when commentId is given.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `postId` | string | Yes | Post id as returned by a post listing or search. An id copied from a post URL often does not resolve. |
| `commentId` | string | No | Reply to this comment instead of commenting on the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle compose preview

**Slug:** `NEEDLE_MCP_NEEDLE_COMPOSE_PREVIEW`

Preview an AI-composed outreach message without sending it, from any prompt, account, and profile. To see what a saved campaign step sends, use needleGetMessagePreviewForStep instead. identity accepts the same forms as leads: LinkedIn public identifier, /in/ path, profile URL, or user id; Instagram username, @handle, or profile URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `prompt` | string | Yes |  |
| `channel` | string ("linkedin" | "instagram") | Yes |  |
| `context` | array | No |  |
| `identity` | string | Yes | LinkedIn public identifier, /in/ path, profile URL, or user id (ACoAAA…); or Instagram username, @handle, or profile URL. Stored as the identifier. |
| `maxChars` | integer | No |  |
| `leadProperties` | object | No |  |
| `connectedAccountId` | string | Yes |  |

### Needle create campaign

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_CAMPAIGN`

Create a campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `graph` | object | Yes |  |
| `limits` | object | No |  |
| `schedule` | object | No |  |
| `suppressionPolicy` | object | No |  |

### Needle create draft

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_DRAFT`

Draft a message, InMail or connection request (text is its note) to a lead from a connected account. Nothing sends until the user approves it in the Needle inbox, where they can also edit or discard it, so use this instead of sending when the user wants to review first. A conversation (account and lead) has one draft waiting at a time: a new one replaces a waiting one created with this tool, but fails while a draft from a campaign step waits. Write the final words: {{variables}} are not filled in.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | Sent exactly as written, so {{variables}} are not allowed. Up to 300 characters for a connection note and 1900 for an InMail. |
| `action` | string ("linkedin_message" | "linkedin_inmail" | "linkedin_invitation" | "instagram_message") | Yes | `linkedin_invitation` sends a connection request with `text` as its note. |
| `leadId` | string | Yes | The lead it goes to. |
| `subject` | string | No | Required for `linkedin_inmail`, not allowed otherwise. |
| `messagingChannel` | string ("linkedin" | "instagram" | "linkedin_sales_navigator") | No | Inbox it is sent from. Omit it for the default: linkedin_message sends from LinkedIn, linkedin_inmail from Sales Navigator. Set "linkedin_sales_navigator" on linkedin_message to send it from Sales Navigator, in its own chat apart from the LinkedIn one; the lead must be a connection, and the account needs Sales Navigator. |
| `connectedAccountId` | string | Yes | The account that sends it. Its channel must match `action`. |

### Needle create file access url

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_FILE_ACCESS_URL`

Mint a preview URL for a stored file. It redirects to a short-lived signed GET. Do not send it to LinkedIn.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes |  |

### Needle create file upload

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_FILE_UPLOAD`

Mint a short-lived signed PUT URL, or copy a public file with sourceUrl. Omit scope for a workspace file. Pass scope "user" to keep the file visible only to you. PUT bytes to uploadUrl when it is returned, then pass the returned url on needleSendLinkedinMessage or needleSendLinkedinInMail. Campaign steps can attach workspace files only. downloadUrl is a preview link. Do not store uploadUrl.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `scope` | string ("workspace" | "user") | No | workspace shares the file with the organization. user keeps it visible only to you. Omit for a workspace file. Campaign steps can attach workspace files only. |
| `filename` | string | No |  |
| `sourceUrl` | string | No | Public https URL. Needle copies the file into a private object and returns the url to attach. |
| `contentType` | string | No |  |

### Needle create instagram post

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_INSTAGRAM_POST`

Publish an Instagram feed post or story. At least one image or video URL is required.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | Caption for the post. Write @username to mention someone. |
| `media` | array | Yes | Images or videos to publish. |
| `location` | string | No | Name of a place to tag. |
| `postType` | string ("feed" | "story") | No | Defaults to feed. A story is visible for 24 hours. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle create lead

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_LEAD`

Create a lead. Fails when an identity already belongs to a lead (the error data has that leadId); use needleUpsertLead to create-or-update. LinkedIn identity accepts john-doe, /in/john-doe, https://www.linkedin.com/in/john-doe, or a user id (ACoAAA…). Instagram accepts john-doe, @john-doe, or https://www.instagram.com/john-doe.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | No |  |
| `imageUrl` | string | No |  |
| `jobTitle` | string | No |  |
| `lastName` | string | No |  |
| `timezone` | string | Yes |  |
| `firstName` | string | No |  |
| `identities` | object | Yes |  |
| `properties` | object | No |  |
| `companyName` | string | No |  |
| `companyDomain` | string | No |  |

### Needle create leads

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_LEADS`

Create up to 500 leads at once, matching on identity so re-sending a list does not duplicate anyone. Returns created, matched, or skipped per row, in request order, with the lead id to enroll. Same identity formats as needleCreateLead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leads` | array | Yes |  |

### Needle create suppressions

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_SUPPRESSIONS`

Create suppression entries for people or companies.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entries` | array | Yes |  |

### Needle create webhook

**Slug:** `NEEDLE_MCP_NEEDLE_CREATE_WEBHOOK`

Add an https URL that receives events, signed with a new secret. eventTypes picks the event types: "all" (the default, also types added later) or a list. The whsec_ secret is returned only here; show it to the user so they can store it. Up to 5 per workspace. Optional headers, such as an API key the URL requires, are sent with every request. Header values you send pass through your AI app.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | An https URL that accepts POST requests. |
| `headers` | object | No | Extra headers sent with every request, for example an API key your endpoint checks: {"Authorization": "Bearer ..."}. Up to 5. Names are stored in lower case. |
| `eventTypes` | string | No | The event types this webhook gets: "all" (every type, also types added later) or a list. Left out, it is "all". |

### Needle delete connected account

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_CONNECTED_ACCOUNT`

Delete a connected account. Its owner or a workspace admin can delete it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `connectedAccountId` | string | Yes | Connected account id |

### Needle delete file

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_FILE`

Delete a private file stored in Needle. Pass the url from needleListFiles or from creating a file. Messages and campaign steps that still reference it will fail when sending.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes |  |

### Needle delete lead

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_LEAD`

Delete a lead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadId` | string | Yes | Lead id |

### Needle delete leads

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_LEADS`

Delete up to 500 leads by id, stopping their live campaign enrollments. Returns deleted or skipped (lead_not_found) per id in request order; retrying is safe.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadIds` | array | Yes | The leads to delete. |

### Needle delete suppression

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_SUPPRESSION`

Delete a suppression entry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `suppressionId` | string | Yes | Suppression id |

### Needle delete webhook

**Slug:** `NEEDLE_MCP_NEEDLE_DELETE_WEBHOOK`

Delete a webhook. Only the member who created it or a workspace admin can. Needle stops sending events to it, and its pending deliveries are dropped.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `webhookId` | string | Yes | Webhook id |

### Needle enroll campaign leads

**Slug:** `NEEDLE_MCP_NEEDLE_ENROLL_CAMPAIGN_LEADS`

Enroll existing leads in a campaign, by lead id. Create the leads first with needleCreateLead or needleCreateLeads. A lead without a handle for every channel the campaign sends on is skipped as missing_identity. Contactability skips are suppressed (do-not-contact list), recently_contacted, or unresponsive — not every skip means the lead is on the list. Returns accepted or skipped per lead id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadIds` | array | Yes | Leads to enroll, by id. Create them first with POST /api/v1/leads or POST /api/v1/leads/bulk. |
| `campaignId` | string | Yes | Campaign id |

### Needle follow instagram user

**Slug:** `NEEDLE_MCP_NEEDLE_FOLLOW_INSTAGRAM_USER`

Follow an Instagram user as a connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identity` | string | Yes | Username without @. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get assistant chat

**Slug:** `NEEDLE_MCP_NEEDLE_GET_ASSISTANT_CHAT`

Read a chat the user had with the assistant inside the Needle web app, to continue it here. When `handoff` is set, the assistant passed the task on: its `brief` holds the goal, the ids involved, what was already found, and what is left. Start from the brief and carry the task out with your Needle tools. Messages hold each turn's text and the tools it called. Calls since the last user message keep their results; earlier ones do not.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes |  |

### Needle get campaign

**Slug:** `NEEDLE_MCP_NEEDLE_GET_CAMPAIGN`

Get a campaign by id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `campaignId` | string | Yes | Campaign id |

### Needle get campaign stats

**Slug:** `NEEDLE_MCP_NEEDLE_GET_CAMPAIGN_STATS`

Campaign progress, funnel (distinct leads per stage), enrollments, and steps (including current and completed leads per step) for a campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `campaignId` | string | Yes | Campaign id |

### Needle get connected account

**Slug:** `NEEDLE_MCP_NEEDLE_GET_CONNECTED_ACCOUNT`

Get a connected account and its usage.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `connectedAccountId` | string | Yes | Connected account id |

### Needle get draft

**Slug:** `NEEDLE_MCP_NEEDLE_GET_DRAFT`

Get one draft and where it is in review: awaiting_review, sent, failed or discarded.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Draft id |

### Needle get instagram account profile

**Slug:** `NEEDLE_MCP_NEEDLE_GET_INSTAGRAM_ACCOUNT_PROFILE`

Get the Instagram profile of the connected account, with its follower, following and post counts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get instagram post

**Slug:** `NEEDLE_MCP_NEEDLE_GET_INSTAGRAM_POST`

Get one Instagram post by post id, or by the short code from its URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `postId` | string | Yes | postId from a posts listing, or the short code from the post URL. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get instagram profile

**Slug:** `NEEDLE_MCP_NEEDLE_GET_INSTAGRAM_PROFILE`

Get an Instagram profile by username without @.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identity` | string | Yes | Username without @. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get lead

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LEAD`

Get a lead, its identities, and enrollments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadId` | string | Yes | Lead id |

### Needle get linkedin company

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LINKEDIN_COMPANY`

Get a LinkedIn company by public identifier, numeric id, or company URL such as https://www.linkedin.com/company/heravideo.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identifier` | string | Yes | Company public identifier (heravideo), numeric company id, or a LinkedIn company URL such as https://www.linkedin.com/company/heravideo. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get linkedin in mail balance

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LINKEDIN_IN_MAIL_BALANCE`

Read the InMail credits left on a connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get linkedin job

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LINKEDIN_JOB`

Get one LinkedIn job with its full description, applicant count, apply link and hiring team. jobId accepts the id from a job listing or search, or a job URL such as https://www.linkedin.com/jobs/view/4447604185. Salary, seniority, skills and screening questions are not returned for jobs posted by other companies; use service recruiter for jobs posted through LinkedIn Recruiter.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `jobId` | string | Yes | Numeric job id from a job listing or search, or a job URL such as https://www.linkedin.com/jobs/view/4447604185 (URL-encoded when sent in the path). |
| `service` | string ("classic" | "recruiter") | No | recruiter for a job posted through LinkedIn Recruiter, which needs a Recruiter seat on the connected account. Defaults to classic. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get linkedin post

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LINKEDIN_POST`

Get one LinkedIn post by the postId returned from a post listing or search.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `postId` | string | Yes | Post id as returned by a post listing or search. An id copied from a post URL often does not resolve. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get linkedin profile

**Slug:** `NEEDLE_MCP_NEEDLE_GET_LINKEDIN_PROFILE`

Get a LinkedIn profile by user id or public identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identity` | string | Yes | User id (ACoAAA…) or public identifier. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle get me

**Slug:** `NEEDLE_MCP_NEEDLE_GET_ME`

Returns the user and the workspace (`organization`) this caller is bound to.

### Needle get message preview for step

**Slug:** `NEEDLE_MCP_NEEDLE_GET_MESSAGE_PREVIEW_FOR_STEP`

What a campaign step would send to the lead of one of the campaign's enrollments, from the step's account, with subject, sender and attachments. Nothing is sent or saved. AI steps write the message fresh on every call, so check a few enrollments before going live. status unavailable gives the reason, such as a missing lead field. Step ids are the node ids from needleGetCampaign; enrollmentId comes from needleListCampaignLeads.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `nodeId` | string | Yes | Step id, the node id in the campaign graph |
| `campaignId` | string | Yes | Campaign id |
| `enrollmentId` | string | Yes | An enrollment in this campaign; its lead is the one written to. List them with GET /campaigns/{campaignId}/leads. |

### Needle get message preview for task

**Slug:** `NEEDLE_MCP_NEEDLE_GET_MESSAGE_PREVIEW_FOR_TASK`

What a queued task would send to its lead, from the step's current content and account. Nothing is sent or saved. AI steps write the message fresh on every call. status unavailable gives the reason. Task ids come from needleListCampaignTasks or needleListLeadTasks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `taskId` | string | Yes | Task id |

### Needle get onboarding info

**Slug:** `NEEDLE_MCP_NEEDLE_GET_ONBOARDING_INFO`

Get what the user told Needle during onboarding and what it produced: the use case, website, notes, attached documents, the ideal customer profile, the ids of the leads found, the onboarding campaign id, and when onboarding was completed. Fields the user has not reached yet are null or empty.

### Needle get place

**Slug:** `NEEDLE_MCP_NEEDLE_GET_PLACE`

Get place details by Google Place id. The response includes remainingUsage for this workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `placeId` | string | Yes | Google Place id |

### Needle get webhook

**Slug:** `NEEDLE_MCP_NEEDLE_GET_WEBHOOK`

Get one webhook with its delivery status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `webhookId` | string | Yes | Webhook id |

### Needle like instagram post

**Slug:** `NEEDLE_MCP_NEEDLE_LIKE_INSTAGRAM_POST`

Like an Instagram post, or one of its comments. A like is the only reaction a post takes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `postId` | string | Yes | postId from a posts listing, or the short code from the post URL. |
| `commentId` | string | No | Like this comment instead of the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list campaigns

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CAMPAIGNS`

List a page of campaigns. Filter by status. Use nextCursor as cursor for the next page. Results leave out the step graph; use needleGetCampaign for it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `status` | string ("draft" | "active" | "paused" | "archived") | No |  |

### Needle list campaign events

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CAMPAIGN_EVENTS`

List a page of campaign events. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `campaignId` | string | Yes | Campaign id |

### Needle list campaign leads

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CAMPAIGN_LEADS`

List a page of leads enrolled in a campaign. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `campaignId` | string | Yes | Campaign id |

### Needle list campaign tasks

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CAMPAIGN_TASKS`

List a page of the actions this campaign owes its leads, earliest scheduled first. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `status` | string ("pending" | "pending_approval") | No |  |
| `campaignId` | string | Yes | Campaign id |

### Needle list connected accounts

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CONNECTED_ACCOUNTS`

List a page of connected LinkedIn and Instagram accounts. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |

### Needle list connected account events

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CONNECTED_ACCOUNT_EVENTS`

List a page of events for a connected account. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account id |

### Needle list connected account limits

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CONNECTED_ACCOUNT_LIMITS`

Every metered action on a connected account with its channel defaults, the caps currently enforced, the override behind them (if any), and usage so far. Use this to explain a 429 or before changing a cap.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `connectedAccountId` | string | Yes | Connected account id |

### Needle list connected account tasks

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_CONNECTED_ACCOUNT_TASKS`

List a page of the queue for one connected account, earliest scheduled first. Limits and pacing are per account, so this is the order and rate its work will go out at. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `status` | string ("pending" | "pending_approval") | No |  |
| `connectedAccountId` | string | Yes | Connected account id |

### Needle list drafts

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_DRAFTS`

List a page of drafted messages, newest first. By default only the ones waiting for a person to review them in the Needle inbox; pass status for sent, failed or discarded ones. Filter by campaignId, leadId or connectedAccountId. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `leadId` | string | No | Only drafts to this lead |
| `status` | string ("awaiting_review" | "sent" | "failed" | "discarded") | No | Defaults to the drafts waiting for review. |
| `campaignId` | string | No | Only drafts from this campaign |
| `connectedAccountId` | string | No | Only drafts sent from this account |

### Needle list files

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_FILES`

List a page of files you can use: every workspace file, then your private files. Each item includes scope. Pass a workspace url on a campaign step or a LinkedIn send. Pass your own user url on needleSendLinkedinMessage or needleSendLinkedinInMail. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |

### Needle list instagram conversations

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_CONVERSATIONS`

List the Instagram inbox of a connected account, most recent first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 100. Defaults to 20. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram conversation messages

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_CONVERSATION_MESSAGES`

List messages in an Instagram conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size. Defaults to 20. |
| `conversationId` | string | Yes | conversationId from the conversations listing |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram conversation participants

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_CONVERSATION_PARTICIPANTS`

List the accounts in an Instagram conversation, with their usernames.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `conversationId` | string | Yes | conversationId from the conversations listing |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram followers

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_FOLLOWERS`

List the followers of an Instagram account. Omit identity for the connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 25. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `identity` | string | No | Whose followers to read. Omit for the connected account. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram following

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_FOLLOWING`

List the accounts an Instagram account follows. Omit identity for the connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 25. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `identity` | string | No | Whose followed accounts to read. Omit for the connected account. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram posts

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_POSTS`

List the posts of an Instagram account, most recent first. A username that does not exist comes back with no posts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 100. Defaults to 20. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `identity` | string | Yes | Whose posts to read, as a username without @. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram post comments

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_POST_COMMENTS`

List the comments on an Instagram post, or the replies to one comment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 100. Defaults to 20. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `postId` | string | Yes | postId from a posts listing, or the short code from the post URL. |
| `commentId` | string | No | Read the replies to this comment instead of the top-level comments. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list instagram post reactions

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_INSTAGRAM_POST_REACTIONS`

List the accounts that liked an Instagram post, or one of its comments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, up to 100. Defaults to 20. A page can hold fewer, so follow cursor until it comes back null. |
| `cursor` | string | No |  |
| `postId` | string | Yes | postId from a posts listing, or the short code from the post URL. |
| `commentId` | string | No | Read the likes on this comment instead of the ones on the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list leads

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LEADS`

List a page of leads in this workspace. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |

### Needle list lead events

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LEAD_EVENTS`

List a page of events for a lead. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `leadId` | string | Yes | Lead id |

### Needle list lead properties

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LEAD_PROPERTIES`

List every custom property key leads in this workspace use, with its type, lead count and most common values. Use them as properties.<key> in needleSearchLeads filters.

### Needle list lead tasks

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LEAD_TASKS`

List a page of the actions campaigns owe a lead, earliest scheduled first. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `leadId` | string | Yes | Lead id |
| `status` | string ("pending" | "pending_approval") | No |  |

### Needle list linkedin company jobs

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_COMPANY_JOBS`

List jobs on a LinkedIn company page. Identifier accepts a public identifier, numeric id, or company URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `identifier` | string | Yes | Company public identifier (heravideo), numeric company id, or a LinkedIn company URL such as https://www.linkedin.com/company/heravideo. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin company posts

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_COMPANY_POSTS`

List posts on a LinkedIn company page. Identifier accepts a public identifier, numeric id, or company URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `identifier` | string | Yes | Company public identifier (heravideo), numeric company id, or a LinkedIn company URL such as https://www.linkedin.com/company/heravideo. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin conversations

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_CONVERSATIONS`

List LinkedIn conversations. Use a conversationId from here to read its messages.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin conversation messages

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_CONVERSATION_MESSAGES`

List messages in a LinkedIn conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size. Defaults to 20. |
| `conversationId` | string | Yes | conversationId from the conversations listing |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin followers

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_FOLLOWERS`

List followers of the connected account, or of a person or company when identity is given.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `identity` | string | No | Whose followers to read: a person (user id or public identifier) or a company (public identifier, numeric id, or company URL). Omit for the connected account; a company page is readable only by its admins. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin following

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_FOLLOWING`

List the people and companies this account follows.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin invitations

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_INVITATIONS`

List a page of pending LinkedIn connection invitations from this account. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin posts

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_POSTS`

List posts from a person (user id or public identifier) or a company page (numeric id or company URL). remainingUsage is the post-view budget; looking up a handle also spends a profile-view or company-view unit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `identity` | string | Yes | Author to read, as a user id or public identifier. For a company page, prefer GET /api/v1/linkedin/companies/{identifier}/posts. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin post comments

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_POST_COMMENTS`

List comments on a post, or replies to one comment when commentId is given.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `postId` | string | Yes | Post id as returned by a post listing or search. An id copied from a post URL often does not resolve. |
| `sortBy` | string ("MOST_RECENT" | "MOST_RELEVANT") | No |  |
| `commentId` | string | No | Read replies to this comment instead of top-level comments. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin post reactions

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_POST_REACTIONS`

List the people who reacted to a LinkedIn post, or to a comment when commentId is given.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `postId` | string | Yes | Post id as returned by a post listing or search. An id copied from a post URL often does not resolve. |
| `commentId` | string | No | Read reactions on this comment instead of the ones on the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin received invitations

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_RECEIVED_INVITATIONS`

List connection invitations other people sent to this account. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin relations

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_RELATIONS`

List first-degree LinkedIn connections. Use the returned cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list linkedin search parameters

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_LINKEDIN_SEARCH_PARAMETERS`

Resolve LinkedIn filter values from keywords. Each service has its own types: standard LinkedIn resolves LOCATION and INDUSTRY, while Sales Navigator resolves REGION and SALES_INDUSTRY along with DEPARTMENT, GROUPS, PERSONA, ACCOUNT_LISTS and LEAD_LISTS. LANGUAGE lists official ISO 639-1 codes for either and can be filtered by code or name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string ("LOCATION" | "INDUSTRY" | "COMPANY" | "SCHOOL" | "SERVICE" | "JOB_TITLE" | "JOB_FUNCTION" | "CONNECTIONS" | "PEOPLE" | "LANGUAGE" | "REGION" | "SALES_INDUSTRY" | "DEPARTMENT" | "GROUPS" | "PERSONA" | "ACCOUNT_LISTS" | "LEAD_LISTS") | Yes | Kind of filter value to resolve, and it has to be one the chosen service has. Standard LinkedIn takes LOCATION, INDUSTRY, COMPANY, SCHOOL, SERVICE, JOB_TITLE, JOB_FUNCTION, CONNECTIONS, PEOPLE, LANGUAGE. Sales Navigator takes REGION, SALES_INDUSTRY, COMPANY, SCHOOL, JOB_TITLE, DEPARTMENT, GROUPS, PERSONA, ACCOUNT_LISTS, LEAD_LISTS, CONNECTIONS, LANGUAGE. LANGUAGE returns ISO 639-1 codes rather than LinkedIn ids. |
| `limit` | integer | No |  |
| `service` | string ("classic" | "sales_navigator") | No | Which search to resolve against. Defaults to classic. |
| `keywords` | string | No | Text to match, such as Berlin for LOCATION or REGION, engineer for JOB_TITLE, or Russian or ru for LANGUAGE. Saved groups, personas and lists are listed whole when this is left out. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle list suppressions

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_SUPPRESSIONS`

List a page of suppression entries. Optionally filter by reason. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `reason` | string ("manual" | "unsubscribed" | "not_interested" | "existing_customer" | "open_opportunity" | "competitor" | "employee" | "invalid_recipient" | "complained" | "recently_contacted" | "unresponsive") | No |  |

### Needle list webhooks

**Slug:** `NEEDLE_MCP_NEEDLE_LIST_WEBHOOKS`

List the workspace's webhooks, oldest first, with their delivery status. lastError is null when the last delivery succeeded.

### Needle react to instagram message

**Slug:** `NEEDLE_MCP_NEEDLE_REACT_TO_INSTAGRAM_MESSAGE`

Add an emoji reaction to an Instagram direct message.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `reaction` | string | Yes | A single emoji, such as 👍. |
| `messageId` | string | Yes | messageId from the messages of a conversation. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle react to linkedin post

**Slug:** `NEEDLE_MCP_NEEDLE_REACT_TO_LINKEDIN_POST`

React to a LinkedIn post, or to a comment when commentId is given. Defaults to like.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `postId` | string | Yes | Post id as returned by a post listing or search. An id copied from a post URL often does not resolve. |
| `reaction` | string ("like" | "celebrate" | "support" | "love" | "insightful" | "funny") | No | Defaults to like. |
| `commentId` | string | No | React to this comment instead of the post. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle read docs

**Slug:** `NEEDLE_MCP_NEEDLE_READ_DOCS`

Read one page of the Needle documentation as markdown. Use it to answer how Needle works: its features, integrations, setup, and limits.
Not sure which page? Search first with needleSearchDocs.
Pages:
- introduction: What Needle is and the ways to use it: the dashboard, the REST API, and MCP.
- authentication: Two ways in: API keys for the REST API, sign-in for MCP.
- agent-onboarding: Where an agent starts: MCP, the REST API, credentials, and common outbound workflows.
- api-reference/introduction: Every REST API endpoint. Each endpoint has its own page, for example api-reference/create-lead.
- mcp/introduction: Every MCP tool. Each tool has its own page, for example mcp/needle-create-lead.
- changelog: Notable changes to the Needle Agents REST API and MCP server.
- workspaces: Where leads, campaigns, and connected accounts live.
- leads: People you can enroll in a campaign.
- campaigns: Sequences this workspace is running.
- enrollments: A lead moving through a campaign sequence.
- drafts: Messages that wait for a person to approve them.
- connected-accounts: LinkedIn and Instagram senders this workspace reaches out from.
- suppressions: People and companies on the do-not-contact list.
- events: Activity across campaigns, leads, and connected accounts.
- webhooks: Receive events at your own URL as they happen.
- attio: Sync your team's LinkedIn activity to your Attio People.
- hubspot: Sync your team's LinkedIn activity to your HubSpot contacts.
- places: Companies and locations you can turn into lead lists.
- compose: Preview an AI-written message before you send it.
- agents: Personal agents that work in Slack and Teams.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `pageId` | string | Yes | The page's path after /docs/, for example `attio` or `mcp/needle-create-lead`. A full docs URL works too. |

### Needle remove campaign lead

**Slug:** `NEEDLE_MCP_NEEDLE_REMOVE_CAMPAIGN_LEAD`

Stop a live lead enrollment in a campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadId` | string | Yes | Lead id |
| `campaignId` | string | Yes | Campaign id |

### Needle reset connected account limit

**Slug:** `NEEDLE_MCP_NEEDLE_RESET_CONNECTED_ACCOUNT_LIMIT`

Remove the override for one action so the connected account runs on the channel defaults again.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("linkedin_invitation" | "linkedin_cancel_invitation" | "linkedin_message" | "linkedin_sales_navigator_message" | "linkedin_inmail" | "linkedin_profile_view" | "linkedin_search" | "linkedin_sales_navigator_search" | "linkedin_comment" | "linkedin_reaction" | "linkedin_post_view" | "linkedin_company_view" | "linkedin_job_view" | "linkedin_conversation_view" | "linkedin_network_view" | "linkedin_invitation_list" | "linkedin_invitation_response" | "linkedin_search_parameter" | "linkedin_inmail_balance" | "linkedin_own_profile" | "instagram_message" | "instagram_profile_view" | "instagram_follow" | "instagram_unfollow" | "instagram_comment" | "instagram_reaction" | "instagram_post" | "instagram_post_view" | "instagram_conversation_view" | "instagram_network_view" | "instagram_own_profile") | Yes | Metered action, e.g. linkedin_profile_view. |
| `connectedAccountId` | string | Yes | Connected account id |

### Needle respond to linkedin invitation

**Slug:** `NEEDLE_MCP_NEEDLE_RESPOND_TO_LINKEDIN_INVITATION`

Accept or decline an invitation from the received invitations listing.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("accept" | "decline") | Yes |  |
| `invitationId` | string | Yes | invitationId from the received invitations listing |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle search campaigns

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_CAMPAIGNS`

Find campaigns in this workspace by name. Every word in query must match; names starting with it come first. Pass nextCursor as cursor, with the same query, for more. Results leave out the step graph; use the returned id with needleGetCampaign for it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes | Text to match. Every word must appear in the record. |
| `cursor` | string | No |  |

### Needle search connected accounts

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_CONNECTED_ACCOUNTS`

Find connected accounts by display name, handle, or username. Every word in query must match; names or handles starting with it come first. Pass nextCursor as cursor, with the same query, for more. Use the returned id with needleGetConnectedAccount.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes | Text to match. Every word must appear in the record. |
| `cursor` | string | No |  |

### Needle search docs

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_DOCS`

Find Needle documentation pages: guides, concepts, every REST API endpoint, and every MCP tool. Pages that match more of the words come first. Read a result with needleReadDocs and its pageId.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Most pages to return. Default 10. |
| `query` | string | Yes | Words to look for. Pages that match more of them come first. |

### Needle search enrollments

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_ENROLLMENTS`

Find enrollments by the lead or the campaign name. Every word in query must match; lead names starting with it come first. Pass campaignId to search inside one campaign. Pass nextCursor as cursor, with the same query and campaignId, for more. Each enrollment includes campaignId and campaignName.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes | Text to match. Every word must appear in the record. |
| `cursor` | string | No |  |
| `campaignId` | string | No | Only enrollments in this campaign. |

### Needle search events

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_EVENTS`

Search a page of events. Filter by campaign, lead, enrollment, account, type, channel, or date. Use nextCursor as cursor for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to` | string | No |  |
| `from` | string | No |  |
| `limit` | integer | No |  |
| `types` | array | No |  |
| `cursor` | string | No |  |
| `leadId` | string | No |  |
| `channel` | string ("linkedin" | "instagram") | No |  |
| `accountId` | string | No |  |
| `campaignId` | string | No |  |
| `actorUserId` | string | No | Only events caused by this member: what they sent, approved or stopped, and what campaigns they started sent. |
| `enrollmentId` | string | No | Only events recorded for this campaign enrollment. |

### Needle search leads

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LEADS`

Find leads already in this workspace. With a query, best matches come first (name, then email starting with it); without one, newest first. Every word in query must appear in the name, email, company, title, or a handle. Filter built-in fields (jobTitle, companyDomain, createdAt…) or custom properties as properties.<key>; call needleListLeadProperties first for the keys, types and common values. Pass nextCursor as cursor, with the same query and filters, for the next page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | No | Free text. Every word must appear in the name, email, company, company domain, job title, or a profile handle. Combined with filters. |
| `cursor` | string | No |  |
| `filters` | array | No | Every filter must match. |

### Needle search linkedin companies classic

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_COMPANIES_CLASSIC`

Search LinkedIn companies. Provide either keywords or a LinkedIn company searchUrl, not both.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, capped at 10 for a company keyword search. Use cursor for the next page. |
| `cursor` | string | No |  |
| `keywords` | string | No |  |
| `searchUrl` | string | No | A search URL copied from LinkedIn, searching for the same kind of entity this endpoint returns. Filters carried in the URL take precedence. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle search linkedin jobs

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_JOBS`

Search LinkedIn jobs with keywords, a company, or a LinkedIn jobs searchUrl. Do not combine a searchUrl with keywords or company.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, capped at 50 for a classic job search. Use cursor for the next page. |
| `cursor` | string | No |  |
| `sortBy` | string ("relevance" | "date") | No | Defaults to relevance. |
| `jobType` | array | No |  |
| `keywords` | string | No |  |
| `location` | string | No | A single location id from GET /api/v1/linkedin/search/parameters?type=LOCATION. One location per search. |
| `companies` | array | No | Companies to search within. Each non-numeric identifier costs one extra lookup call. |
| `jobTitles` | array | No | Job title ids from GET /api/v1/linkedin/search/parameters?type=JOB_TITLE. |
| `searchUrl` | string | No | A LinkedIn jobs search URL, which cannot be combined with the filter fields above. Use it for filters this endpoint does not expose, such as salary. |
| `seniority` | array | No |  |
| `workplace` | array | No |  |
| `industries` | array | No | Industry ids from GET /api/v1/linkedin/search/parameters?type=INDUSTRY. |
| `jobFunctions` | array | No | Job function ids from GET /api/v1/linkedin/search/parameters?type=JOB_FUNCTION. |
| `postedWithinDays` | integer | No |  |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle search linkedin people

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_PEOPLE`

Deprecated. Use needleSearchLinkedinPeopleClassic for standard LinkedIn or needleSearchLinkedinPeopleSalesNavigator for Sales Navigator.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `api` | string | No |  |
| `limit` | number | No |  |
| `cursor` | string | No |  |
| `keywords` | string | No |  |
| `searchUrl` | string | No |  |
| `connectedAccountId` | string | No |  |

### Needle search linkedin people classic

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_PEOPLE_CLASSIC`

Search standard LinkedIn people with keywords or filters. Resolve location, industry, company, school, service-category, connections-of, and followers-of ids with needleListLinkedinSearchParameters using service classic. Job titles are keyword-matched here via advancedKeywords.title, not ids.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Requested page size, capped at 10 by LinkedIn Classic. |
| `cursor` | string | No |  |
| `openTo` | array | No | LinkedIn only filters on these two, not on open to work or hiring. |
| `schools` | array | No | School ids from the search parameters endpoint with type=SCHOOL. |
| `keywords` | string | No |  |
| `companies` | array | No | Current-company ids from the search parameters endpoint with type=COMPANY. |
| `locations` | array | No | Location ids from the search parameters endpoint with type=LOCATION. |
| `searchUrl` | string | No | Use a people search URL copied from standard LinkedIn, such as https://www.linkedin.com/search/results/people/?keywords=engineer. The filters it carries replace the filter fields, which must then be left out. Sales Navigator URLs go to POST /api/v1/linkedin/sales-navigator/people/search. |
| `industries` | array | No | Industry ids from the search parameters endpoint with type=INDUSTRY. |
| `followersOf` | array | No | Member ids from the search parameters endpoint with type=PEOPLE. Returns people who follow them. |
| `connectionsOf` | array | No | Member ids from the search parameters endpoint with type=CONNECTIONS. Returns people connected to them. |
| `pastCompanies` | array | No | Past-company ids from the search parameters endpoint with type=COMPANY. |
| `advancedKeywords` | object | No | LinkedIn's Keywords panel: each field matches text against that profile field only. |
| `networkDistances` | array | No | LinkedIn connection degrees: first, second, or third-plus. |
| `profileLanguages` | array | No | ISO 639-1 profile-language codes from the search parameters endpoint with type=LANGUAGE. |
| `serviceCategories` | array | No | Service-category ids from the search parameters endpoint with type=SERVICE. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle search linkedin people sales navigator

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_PEOPLE_SALES_NAVIGATOR`

Search Sales Navigator leads with keywords or filters, including current and past company, company headcount and type, function, seniority, years of experience, groups, saved lists and personas, and Spotlights such as changed_jobs. Most filters also take an excluded form. Resolve filter ids with needleListLinkedinSearchParameters using service sales_navigator. Requires a Sales Navigator seat.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `cursor` | string | No |  |
| `groups` | array | No | LinkedIn groups the person belongs to. Group ids with type=GROUPS and service=sales_navigator. |
| `schools` | array | No | School ids from the search parameters endpoint with type=SCHOOL and service=sales_navigator. |
| `keywords` | string | No |  |
| `lastName` | string | No | Matches the last name on the profile. |
| `personas` | array | No | Personas saved on the Sales Navigator seat. Ids with type=PERSONA and service=sales_navigator. |
| `companies` | array | No | Current-company ids from the search parameters endpoint with type=COMPANY and service=sales_navigator. |
| `firstName` | string | No | Matches the first name on the profile. |
| `functions` | array | No | The department someone works in. Function ids from the search parameters endpoint with type=DEPARTMENT and service=sales_navigator. |
| `jobTitles` | array | No | Current job-title ids from the search parameters endpoint with type=JOB_TITLE and service=sales_navigator. |
| `leadLists` | array | No | Only people on these saved lead lists. Ids with type=LEAD_LISTS and service=sales_navigator. |
| `locations` | array | No | Geography ids from the search parameters endpoint with type=REGION and service=sales_navigator. |
| `searchUrl` | string | No | Use a lead search URL copied from Sales Navigator, such as https://www.linkedin.com/sales/search/people?query=.... The filters it carries replace the filter fields, which must then be left out. Standard LinkedIn URLs go to POST /api/v1/linkedin/people/search. |
| `industries` | array | No | Industry ids from the search parameters endpoint with type=SALES_INDUSTRY and service=sales_navigator. |
| `spotlights` | array | No | Sales Navigator's Spotlights: recent signals about the person rather than facts about their profile. |
| `seniorities` | array | No | Seniority levels to search, from owner_partner down to in_training. |
| `accountLists` | array | No | Only people at companies on these saved account lists. Ids with type=ACCOUNT_LISTS and service=sales_navigator. |
| `companyTypes` | array | No | How the current company is held. |
| `includeSaved` | array | No | Also return people already saved as leads, or at saved accounts. |
| `connectionsOf` | array | No | Member ids from the search parameters endpoint with type=CONNECTIONS. Returns people connected to them. |
| `pastCompanies` | array | No | Past-company ids from the search parameters endpoint with type=COMPANY and service=sales_navigator. |
| `pastJobTitles` | array | No | Job titles someone used to hold. Ids with type=JOB_TITLE and service=sales_navigator. |
| `interactedWith` | array | No | Only people this seat has messaged, or whose profile it opened. |
| `yearsAtCompany` | array | No | Years spent at the current company. |
| `excludedSchools` | array | No | Schools to leave out of the results. |
| `yearsInPosition` | array | No | Years spent in the current position. |
| `companyLocations` | array | No | Where the company sits, rather than where the person does. Geography ids with type=REGION and service=sales_navigator. |
| `networkDistances` | array | No | LinkedIn connection degrees: first, second, or third-plus. |
| `profileLanguages` | array | No | ISO 639-1 profile-language codes from the search parameters endpoint with type=LANGUAGE. |
| `companyHeadcounts` | array | No | Employee-count bands of the current company. |
| `excludedCompanies` | array | No | Current companies to leave out of the results. |
| `excludedFunctions` | array | No | Functions to leave out of the results. |
| `excludedJobTitles` | array | No | Current job titles to leave out of the results. |
| `excludedLeadLists` | array | No | Saved lead lists to leave out of the results. |
| `excludedLocations` | array | No | Geographies to leave out of the results. |
| `yearsOfExperience` | array | No | Years of experience across someone's whole career. |
| `connectedAccountId` | string | Yes | Connected account to act as |
| `excludedIndustries` | array | No | Industries to leave out of the results. |
| `excludedSeniorities` | array | No | Seniority levels to leave out of the results. |
| `excludedAccountLists` | array | No | Saved account lists to leave out of the results. |
| `excludedPastCompanies` | array | No | Past companies to leave out of the results. |
| `excludedPastJobTitles` | array | No | Past job titles to leave out of the results. |
| `excludedCompanyLocations` | array | No | Company geographies to leave out of the results. |

### Needle search linkedin posts

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_LINKEDIN_POSTS`

Search LinkedIn posts. Provide either keywords or a LinkedIn post searchUrl, not both.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, capped at 49 for a post keyword search. Use cursor for the next page. |
| `cursor` | string | No |  |
| `keywords` | string | No |  |
| `searchUrl` | string | No | A search URL copied from LinkedIn, searching for the same kind of entity this endpoint returns. Filters carried in the URL take precedence. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle search places

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_PLACES`

Build a list of businesses and locations. Pass a query for text search, or a location (and optional type) for nearby search. Page text-search results with the returned cursor. The response includes remainingUsage for this workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string | No | A Google Places type such as `restaurant` or `dentist`. |
| `limit` | integer | No |  |
| `query` | string | No | Free-text query, e.g. "dentists in Munich". Required unless `location` is set. |
| `cursor` | string | No | Text-search pagination cursor. Nearby search does not page. |
| `region` | string | No | CLDR region code that biases results, e.g. `DE`. |
| `language` | string | No | BCP-47 language code for names and addresses. |
| `location` | object | No | Center point. Required unless `query` is set. Without a query this is a nearby search inside the radius. |
| `radiusMeters` | integer | No | Radius when `location` is set. Defaults to 50 km. Nearby search stays inside this circle; text search is biased toward it. |

### Needle search suppressions

**Slug:** `NEEDLE_MCP_NEEDLE_SEARCH_SUPPRESSIONS`

Find suppression entries by person, company domain, note, or reason. Every word in query must match; people or domains starting with it come first. Pass nextCursor as cursor, with the same query, for more. Use the returned id with needleDeleteSuppression.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No |  |
| `query` | string | Yes | Text to match. Every word must appear in the record. |
| `cursor` | string | No |  |

### Needle send instagram message

**Slug:** `NEEDLE_MCP_NEEDLE_SEND_INSTAGRAM_MESSAGE`

Send an Instagram direct message as a connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `identity` | string | Yes | Username without @. |
| `attachments` | array | No | Files to send alongside the text. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle send linkedin invitation

**Slug:** `NEEDLE_MCP_NEEDLE_SEND_LINKEDIN_INVITATION`

Send a LinkedIn connection invitation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `note` | string | No |  |
| `identity` | string | Yes | User id (ACoAAA…) or public identifier. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle send linkedin in mail

**Slug:** `NEEDLE_MCP_NEEDLE_SEND_LINKEDIN_IN_MAIL`

Send a LinkedIn InMail. Needs a Sales Navigator seat. Reaches people in your network and out-of-network Open Profiles. Usually costs one credit. Attach files by passing a url from needleListFiles or from creating a file first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `subject` | string | Yes | InMail subject line shown to the recipient. |
| `identity` | string | Yes | User id (ACoAAA…) or public identifier. |
| `attachments` | array | No | Files from POST /api/v1/files. Pass the returned url, not a signed URL. Needle reads the private object and sends the bytes to LinkedIn. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle send linkedin message

**Slug:** `NEEDLE_MCP_NEEDLE_SEND_LINKEDIN_MESSAGE`

Send a LinkedIn message as a connected account. Attach files by passing a url from needleListFiles or from creating a file first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes |  |
| `identity` | string | Yes | User id (ACoAAA…) or public identifier. |
| `attachments` | array | No | Files from POST /api/v1/files. Pass the returned url, not a signed URL. Needle reads the private object and sends the bytes to LinkedIn. |
| `messagingChannel` | string ("linkedin" | "linkedin_sales_navigator") | No | Inbox it is sent from. Defaults to "linkedin". Set "linkedin_sales_navigator" to send from Sales Navigator, in the lead's chat there, apart from the LinkedIn one; the lead must be a connection, and the account needs Sales Navigator. It counts against the linkedin_sales_navigator_message limits, and remainingUsage reports those. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle stop campaign leads

**Slug:** `NEEDLE_MCP_NEEDLE_STOP_CAMPAIGN_LEADS`

Stop the live enrollments of up to 500 leads in a campaign, by lead id. Returns stopped or skipped (not_live: nothing live for that lead in this campaign) per lead id in request order; retrying is safe.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leadIds` | array | Yes | Leads to stop, by id. |
| `campaignId` | string | Yes | Campaign id |

### Needle unfollow instagram user

**Slug:** `NEEDLE_MCP_NEEDLE_UNFOLLOW_INSTAGRAM_USER`

Unfollow an Instagram user as a connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identity` | string | Yes | Username without @. |
| `connectedAccountId` | string | Yes | Connected account to act as |

### Needle update campaign

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_CAMPAIGN`

Update a campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `graph` | object | No |  |
| `limits` | object | No |  |
| `status` | string ("active" | "paused") | No |  |
| `schedule` | object | No |  |
| `campaignId` | string | Yes | Campaign id |
| `suppressionPolicy` | object | No |  |

### Needle update connected account

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_CONNECTED_ACCOUNT`

Update a connected account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `paused` | boolean | No |  |
| `limitOverrides` | string | No | Per-action caps for this account. Keys merge with existing overrides: set a key to null to restore the channel default for that action, or set the whole field to null to clear every override. |
| `connectedAccountId` | string | Yes | Connected account id |

### Needle update connected account limit

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_CONNECTED_ACCOUNT_LIMIT`

Set hourly, daily, or weekly caps for one action on a connected account. Fields left out keep the channel default. Caps can be tightened or loosened but not removed. Going above the default is applied but returns a warning, since it raises the risk of the channel restricting the account; relay it to the user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `day` | integer | No | Daily cap. |
| `hour` | integer | No | Hourly cap. |
| `week` | integer | No | Weekly cap. |
| `action` | string ("linkedin_invitation" | "linkedin_cancel_invitation" | "linkedin_message" | "linkedin_sales_navigator_message" | "linkedin_inmail" | "linkedin_profile_view" | "linkedin_search" | "linkedin_sales_navigator_search" | "linkedin_comment" | "linkedin_reaction" | "linkedin_post_view" | "linkedin_company_view" | "linkedin_job_view" | "linkedin_conversation_view" | "linkedin_network_view" | "linkedin_invitation_list" | "linkedin_invitation_response" | "linkedin_search_parameter" | "linkedin_inmail_balance" | "linkedin_own_profile" | "instagram_message" | "instagram_profile_view" | "instagram_follow" | "instagram_unfollow" | "instagram_comment" | "instagram_reaction" | "instagram_post" | "instagram_post_view" | "instagram_conversation_view" | "instagram_network_view" | "instagram_own_profile") | Yes | Metered action, e.g. linkedin_profile_view. |
| `connectedAccountId` | string | Yes | Connected account id |

### Needle update lead

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_LEAD`

Update a lead profile or identities.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | No |  |
| `leadId` | string | Yes | Lead id |
| `imageUrl` | string | No |  |
| `jobTitle` | string | No |  |
| `lastName` | string | No |  |
| `timezone` | string | No |  |
| `firstName` | string | No |  |
| `identities` | object | No |  |
| `properties` | object | No |  |
| `companyName` | string | No |  |
| `companyDomain` | string | No |  |

### Needle update leads

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_LEADS`

Update up to 500 existing leads by id; never creates leads. Each row takes leadId plus the fields to change, same as needleUpdateLead. Returns updated or skipped per row in request order; skipped rows say why (lead_not_found, invalid_identity, or identity_taken with the conflictingLeadId).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `leads` | array | Yes |  |

### Needle update lead property

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_LEAD_PROPERTY`

Change how a custom property is compared when filtering (type: string, number, boolean, date), or whether it shows as a column in the leads table. Stored values are not changed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key` | string | Yes | Property key |
| `type` | string ("string" | "number" | "boolean" | "date") | No | How values are compared when filtering. Values are always stored as text; the type is guessed from the first value seen and can be changed. |
| `showAsColumn` | boolean | No | Show this property as a column in the leads table. |

### Needle update webhook

**Slug:** `NEEDLE_MCP_NEEDLE_UPDATE_WEBHOOK`

Change the URL, the headers, the event types, or several at once, or turn on a webhook that was turned off after 3 days without a 2xx (enabled: true). Only the member who created the webhook can change it. Pending deliveries of event types no longer picked are dropped. Only the headers named change: a value sets or replaces one, null removes it. A new URL removes all saved headers first. The secret stays the same, and pending deliveries go out with the new URL and headers. Header values you send pass through your AI app.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | The new URL. A different URL removes all saved headers first. |
| `enabled` | boolean | No | Turns on a webhook that was turned off. Events from while it was off are not sent. Any other change turns it on too. |
| `headers` | object | No | Changes only the headers named here: a value sets or replaces that header, null removes it. Headers not named stay, except when url changes: then only the headers sent here are kept. |
| `webhookId` | string | Yes | Webhook id |
| `eventTypes` | string | No | The new event types: "all" or a list. Pending deliveries of types no longer in the list are dropped; added types only get events from now on. |

### Needle upsert lead

**Slug:** `NEEDLE_MCP_NEEDLE_UPSERT_LEAD`

Create a lead, or when a LinkedIn or Instagram identity already belongs to one, patch the fields sent onto it. Returns created or matched with the lead. Same identity formats as needleCreateLead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | No |  |
| `imageUrl` | string | No |  |
| `jobTitle` | string | No |  |
| `lastName` | string | No |  |
| `timezone` | string | Yes |  |
| `firstName` | string | No |  |
| `identities` | object | Yes |  |
| `properties` | object | No |  |
| `companyName` | string | No |  |
| `companyDomain` | string | No |  |

### Needle withdraw draft

**Slug:** `NEEDLE_MCP_NEEDLE_WITHDRAW_DRAFT`

Take back a draft before anyone reviewed it, so it never sends. Only for drafts created with needleCreateDraft; a draft a campaign step holds goes away when the lead is removed from the campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Draft id |

### Needle withdraw linkedin invitation

**Slug:** `NEEDLE_MCP_NEEDLE_WITHDRAW_LINKEDIN_INVITATION`

Withdraw a pending LinkedIn invitation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `invitationId` | string | Yes | invitationId from the sent invitations listing |
| `connectedAccountId` | string | Yes | Connected account to act as |
