Freshsales MCP by usefulapi is an MCP server published by io.usefulapi, hosted at freshsales.usefulapi.io. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 36 tools, including freshsales_list_contact_views, freshsales_list_contacts, freshsales_get_contact, freshsales_search, freshsales_lookup.
Manage Freshsales contacts, accounts, deals, tasks and appointments; add notes.
4,413 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
List the saved contact views (filters) of the account, e.g. 'My Contacts', 'New Contacts', 'All Contacts'. A view id is needed by freshsales_list_contacts; ids differ per account. GET /contacts/filters.
No parameters.
{
"name": "freshsales_list_contact_views",
"title": "List contact views",
"description": "List the saved contact views (filters) of the account, e.g. 'My Contacts', 'New Contacts', 'All Contacts'. A view id is needed by freshsales_list_contacts; ids differ per account. GET /contacts/filters.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List contact views",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the contacts in a view (get view_id from freshsales_list_contact_views), 25 per page with name, email, phone numbers, job title, lead score, open deals amount and last contacted. Pages: use next_page. GET /contacts/view/{view_id}.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| sort | string | Sort field. |
| view_id * | integer | Contact view id (freshsales_list_contact_views). |
| sort_type | string | Sort direction (default: the view's own order). |
{
"name": "freshsales_list_contacts",
"title": "List contacts",
"description": "List the contacts in a view (get view_id from freshsales_list_contact_views), 25 per page with name, email, phone numbers, job title, lead score, open deals amount and last contacted. Pages: use next_page. GET /contacts/view/{view_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"view_id"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"sort": {
"enum": [
"lead_score",
"created_at",
"updated_at",
"open_deals_amount",
"last_contacted"
],
"type": "string",
"description": "Sort field."
},
"view_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact view id (freshsales_list_contact_views).",
"exclusiveMinimum": 0
},
"sort_type": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction (default: the view's own order)."
}
}
},
"annotations": {
"title": "List contacts",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One contact by id with all its fields, optionally with related records embedded via include (notes, tasks, appointments, deals, sales_accounts, owner, sales_activities...). GET /contacts/{id}.
| Parameter | Type | Description |
|---|---|---|
| include | array | Related records to embed. |
| contact_id * | integer | Contact id. |
{
"name": "freshsales_get_contact",
"title": "Get contact",
"description": "One contact by id with all its fields, optionally with related records embedded via include (notes, tasks, appointments, deals, sales_accounts, owner, sales_activities...). GET /contacts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contact_id"
],
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"sales_activities",
"owner",
"creater",
"updater",
"source",
"campaign",
"tasks",
"appointments",
"notes",
"deals",
"sales_accounts",
"territory"
],
"type": "string"
},
"maxItems": 12,
"description": "Related records to embed."
},
"contact_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get contact",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Search by name/email text across one record type: contact, lead (accounts with the Leads module), sales_account (company), deal or user. Returns id, type, name and email for the matches (up to per_page, default 10). Phone numbers are not a documented search field. Use the id with the get tools. GET /search.
| Parameter | Type | Description |
|---|---|---|
| query * | string | Text to search for (name, email, ...). |
| entity | string | Record type to search (singular). |
| per_page | integer | Results to return (1-100, default 10). |
{
"name": "freshsales_search",
"title": "Search records",
"description": "Search by name/email text across one record type: contact, lead (accounts with the Leads module), sales_account (company), deal or user. Returns id, type, name and email for the matches (up to per_page, default 10). Phone numbers are not a documented search field. Use the id with the get tools. GET /search.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Text to search for (name, email, ...)."
},
"entity": {
"enum": [
"contact",
"lead",
"sales_account",
"deal",
"user"
],
"type": "string",
"default": "contact",
"description": "Record type to search (singular)."
},
"per_page": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Results to return (1-100, default 10)."
}
}
},
"annotations": {
"title": "Search records",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Exact-match lookup of contacts, leads, companies or deals by one field, e.g. a contact by email address. field is 'email' (contacts, leads), 'name', 'company_name' (leads), or a custom field name (cf_...). Returns the full records. GET /lookup.
| Parameter | Type | Description |
|---|---|---|
| field * | string | Field to match: email, name, company_name (leads), or a custom field name (cf_...). |
| value * | string | The exact value to find, e.g. jane@example.com. |
| entity | string | Record type. |
{
"name": "freshsales_lookup",
"title": "Look up by exact field",
"description": "Exact-match lookup of contacts, leads, companies or deals by one field, e.g. a contact by email address. field is 'email' (contacts, leads), 'name', 'company_name' (leads), or a custom field name (cf_...). Returns the full records. GET /lookup.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"value",
"field"
],
"properties": {
"field": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Field to match: email, name, company_name (leads), or a custom field name (cf_...)."
},
"value": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "The exact value to find, e.g. jane@example.com."
},
"entity": {
"enum": [
"contact",
"lead",
"sales_account",
"deal"
],
"type": "string",
"default": "contact",
"description": "Record type."
}
}
},
"annotations": {
"title": "Look up by field",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Read every contact of a view in ascending id order, up to 100 per call (fewer when the records are large), for a backup or a full export. Use the 'All Contacts' view id from freshsales_list_contact_views. Pass the reply's last_fetched_id to get the next part until has_next_page is false. Each call uses one request of the account's 1000 per hour. GET /contacts/scroll/{view_id}.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Contacts per call (1-100, default 50). Large records may be returned in fewer, whole records. |
| view_id * | integer | Contact view id (freshsales_list_contact_views), e.g. the 'All Contacts' view. |
| last_fetched_id | integer | The last_fetched_id of the previous reply; omit for the first part. |
{
"name": "freshsales_export_contacts",
"title": "Export contacts",
"description": "Read every contact of a view in ascending id order, up to 100 per call (fewer when the records are large), for a backup or a full export. Use the 'All Contacts' view id from freshsales_list_contact_views. Pass the reply's last_fetched_id to get the next part until has_next_page is false. Each call uses one request of the account's 1000 per hour. GET /contacts/scroll/{view_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"view_id"
],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Contacts per call (1-100, default 50). Large records may be returned in fewer, whole records."
},
"view_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact view id (freshsales_list_contact_views), e.g. the 'All Contacts' view.",
"exclusiveMinimum": 0
},
"last_fetched_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The last_fetched_id of the previous reply; omit for the first part.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Export contacts",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}DESTRUCTIVE: delete ONE contact by id, only when its field match_field has exactly the value match_value (e.g. a cf_ custom field or email). The tool first reads the contact with its deals, tasks, appointments and notes. A contact with linked deals is refused unless allow_linked_deals is true. Without confirm=true nothing is deleted: the reply is a preview of the match and the linked records. With confirm=true the contact is deleted (DELETE /contacts/{id}) and read again to verify. Export or back up first (freshsales_export_contacts).
| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | true deletes; false (default) only returns the preview. |
| contact_id * | integer | Contact id. |
| match_field * | string | Field that must match: a standard field (email, first_name, ...) or a custom field (cf_...). |
| match_value * | string | The exact value the field must have (compared as text, case-sensitive). |
| allow_linked_deals | boolean | Also delete when the contact is linked to deals (default false: refused). |
{
"name": "freshsales_delete_contact",
"title": "Delete contact",
"description": "DESTRUCTIVE: delete ONE contact by id, only when its field match_field has exactly the value match_value (e.g. a cf_ custom field or email). The tool first reads the contact with its deals, tasks, appointments and notes. A contact with linked deals is refused unless allow_linked_deals is true. Without confirm=true nothing is deleted: the reply is a preview of the match and the linked records. With confirm=true the contact is deleted (DELETE /contacts/{id}) and read again to verify. Export or back up first (freshsales_export_contacts).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contact_id",
"match_field",
"match_value"
],
"properties": {
"confirm": {
"type": "boolean",
"default": false,
"description": "true deletes; false (default) only returns the preview."
},
"contact_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact id.",
"exclusiveMinimum": 0
},
"match_field": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,99}$",
"description": "Field that must match: a standard field (email, first_name, ...) or a custom field (cf_...)."
},
"match_value": {
"type": "string",
"maxLength": 500,
"description": "The exact value the field must have (compared as text, case-sensitive)."
},
"allow_linked_deals": {
"type": "boolean",
"default": false,
"description": "Also delete when the contact is linked to deals (default false: refused)."
}
}
},
"annotations": {
"title": "Delete contact",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}List the saved lead views of an account that has the Leads module, e.g. 'My Leads', 'New Leads', 'Unassigned Leads'. A view id is needed by freshsales_list_leads. GET /leads/filters.
No parameters.
{
"name": "freshsales_list_lead_views",
"title": "List lead views",
"description": "List the saved lead views of an account that has the Leads module, e.g. 'My Leads', 'New Leads', 'Unassigned Leads'. A view id is needed by freshsales_list_leads. GET /leads/filters.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List lead views",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the leads in a view (get view_id from freshsales_list_lead_views), 25 per page. Pages: use next_page. GET /leads/view/{view_id}.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| sort | string | Sort field. |
| view_id * | integer | Lead view id (freshsales_list_lead_views). |
| sort_type | string | Sort direction (default: the view's own order). |
{
"name": "freshsales_list_leads",
"title": "List leads",
"description": "List the leads in a view (get view_id from freshsales_list_lead_views), 25 per page. Pages: use next_page. GET /leads/view/{view_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"view_id"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"sort": {
"enum": [
"lead_score",
"created_at",
"updated_at",
"lead_stage",
"last_contacted"
],
"type": "string",
"description": "Sort field."
},
"view_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead view id (freshsales_list_lead_views).",
"exclusiveMinimum": 0
},
"sort_type": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction (default: the view's own order)."
}
}
},
"annotations": {
"title": "List leads",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One lead by id with all its fields (name, email, phone numbers, company, lead stage, custom fields), optionally with related records via include (owner, source, lead_stage, notes, tasks, appointments...). GET /leads/{id}.
| Parameter | Type | Description |
|---|---|---|
| include | array | Related records to embed. |
| lead_id * | integer | Lead id. |
{
"name": "freshsales_get_lead",
"title": "Get lead",
"description": "One lead by id with all its fields (name, email, phone numbers, company, lead stage, custom fields), optionally with related records via include (owner, source, lead_stage, notes, tasks, appointments...). GET /leads/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"lead_id"
],
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"owner",
"creater",
"updater",
"source",
"lead_stage",
"lead_reason",
"territory",
"campaign",
"tasks",
"appointments",
"notes"
],
"type": "string"
},
"maxItems": 11,
"description": "Related records to embed."
},
"lead_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get lead",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the saved account (company) views of the account, e.g. 'My Accounts'. A view id is needed by freshsales_list_accounts. GET /sales_accounts/filters.
No parameters.
{
"name": "freshsales_list_account_views",
"title": "List account views",
"description": "List the saved account (company) views of the account, e.g. 'My Accounts'. A view id is needed by freshsales_list_accounts. GET /sales_accounts/filters.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List account views",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the accounts (companies) in a view (view_id from freshsales_list_account_views), 25 per page, with name, location, open deals amount and last contacted. GET /sales_accounts/view/{view_id}.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| sort | string | Sort field. |
| view_id * | integer | Account view id (freshsales_list_account_views). |
| sort_type | string | Sort direction (default: the view's own order). |
{
"name": "freshsales_list_accounts",
"title": "List accounts",
"description": "List the accounts (companies) in a view (view_id from freshsales_list_account_views), 25 per page, with name, location, open deals amount and last contacted. GET /sales_accounts/view/{view_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"view_id"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"sort": {
"enum": [
"open_deals_amount",
"created_at",
"updated_at",
"last_contacted"
],
"type": "string",
"description": "Sort field."
},
"view_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Account view id (freshsales_list_account_views).",
"exclusiveMinimum": 0
},
"sort_type": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction (default: the view's own order)."
}
}
},
"annotations": {
"title": "List accounts",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One account (company) by id with its fields, optionally with related records embedded (contacts, deals, tasks, appointments, owner...). GET /sales_accounts/{id}.
| Parameter | Type | Description |
|---|---|---|
| include | array | Related records to embed. |
| account_id * | integer | Account (sales account) id. |
{
"name": "freshsales_get_account",
"title": "Get account",
"description": "One account (company) by id with its fields, optionally with related records embedded (contacts, deals, tasks, appointments, owner...). GET /sales_accounts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"account_id"
],
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"owner",
"creater",
"updater",
"territory",
"business_type",
"tasks",
"appointments",
"contacts",
"deals",
"industry_type",
"child_sales_accounts"
],
"type": "string"
},
"maxItems": 11,
"description": "Related records to embed."
},
"account_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Account (sales account) id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get account",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the saved deal views of the account, e.g. 'Open Deals'. A view id is needed by freshsales_list_deals. GET /deals/filters.
No parameters.
{
"name": "freshsales_list_deal_views",
"title": "List deal views",
"description": "List the saved deal views of the account, e.g. 'Open Deals'. A view id is needed by freshsales_list_deals. GET /deals/filters.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List deal views",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the deals in a view (view_id from freshsales_list_deal_views), 25 per page, with name, amount, expected close, probability and age. GET /deals/view/{view_id}.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| sort | string | Sort field. |
| view_id * | integer | Deal view id (freshsales_list_deal_views). |
| sort_type | string | Sort direction (default: the view's own order). |
{
"name": "freshsales_list_deals",
"title": "List deals",
"description": "List the deals in a view (view_id from freshsales_list_deal_views), 25 per page, with name, amount, expected close, probability and age. GET /deals/view/{view_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"view_id"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"sort": {
"enum": [
"amount",
"expected_close",
"created_at",
"updated_at",
"last_contacted"
],
"type": "string",
"description": "Sort field."
},
"view_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Deal view id (freshsales_list_deal_views).",
"exclusiveMinimum": 0
},
"sort_type": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Sort direction (default: the view's own order)."
}
}
},
"annotations": {
"title": "List deals",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One deal by id with amount, expected close, probability and ids of its stage, pipeline and owner, optionally with related records embedded (contacts, sales_account, deal_stage, owner, notes via sales_activities...). GET /deals/{id}.
| Parameter | Type | Description |
|---|---|---|
| deal_id * | integer | Deal id. |
| include | array | Related records to embed. |
{
"name": "freshsales_get_deal",
"title": "Get deal",
"description": "One deal by id with amount, expected close, probability and ids of its stage, pipeline and owner, optionally with related records embedded (contacts, sales_account, deal_stage, owner, notes via sales_activities...). GET /deals/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"deal_id"
],
"properties": {
"deal_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Deal id.",
"exclusiveMinimum": 0
},
"include": {
"type": "array",
"items": {
"enum": [
"sales_activities",
"owner",
"creater",
"updater",
"source",
"contacts",
"sales_account",
"deal_stage",
"deal_type",
"deal_reason",
"campaign",
"deal_payment_status",
"deal_product",
"currency"
],
"type": "string"
},
"maxItems": 14,
"description": "Related records to embed."
}
}
},
"annotations": {
"title": "Get deal",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List tasks by status filter: open, due_today, due_tomorrow, overdue or completed (one filter per call). Returns title, due date, owner and status. GET /tasks.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| filter | string | Which tasks to list. |
{
"name": "freshsales_list_tasks",
"title": "List tasks",
"description": "List tasks by status filter: open, due_today, due_tomorrow, overdue or completed (one filter per call). Returns title, due date, owner and status. GET /tasks.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"filter": {
"enum": [
"open",
"due_today",
"due_tomorrow",
"overdue",
"completed"
],
"type": "string",
"default": "open",
"description": "Which tasks to list."
}
}
},
"annotations": {
"title": "List tasks",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One task by id. GET /tasks/{id}.
| Parameter | Type | Description |
|---|---|---|
| task_id * | integer | Task id. |
{
"name": "freshsales_get_task",
"title": "Get task",
"description": "One task by id. GET /tasks/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Task id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get task",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List appointments that are open (upcoming) or complete (one filter per call), with title, time, location and creator. GET /appointments.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| filter | string | Which appointments to list. |
{
"name": "freshsales_list_appointments",
"title": "List appointments",
"description": "List appointments that are open (upcoming) or complete (one filter per call), with title, time, location and creator. GET /appointments.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"filter": {
"enum": [
"open",
"complete"
],
"type": "string",
"default": "open",
"description": "Which appointments to list."
}
}
},
"annotations": {
"title": "List appointments",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One appointment by id with its attendees. GET /appointments/{id}.
| Parameter | Type | Description |
|---|---|---|
| appointment_id * | integer | Appointment id. |
{
"name": "freshsales_get_appointment",
"title": "Get appointment",
"description": "One appointment by id with its attendees. GET /appointments/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"appointment_id"
],
"properties": {
"appointment_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Appointment id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get appointment",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List logged sales activities (calls, meetings, emails...) of the account. Requires the user's sales-activity permissions and the corresponding account feature. If HTTP 403 is returned, check those permissions before retrying. For one known contact or deal, its get tool also supports include=["sales_activities"], subject to the user's access rights. GET /sales_activities.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, 1-based (25 records per page). |
| per_page | integer | Records per page (1-100). |
{
"name": "freshsales_list_sales_activities",
"title": "List sales activities",
"description": "List logged sales activities (calls, meetings, emails...) of the account. Requires the user's sales-activity permissions and the corresponding account feature. If HTTP 403 is returned, check those permissions before retrying. For one known contact or deal, its get tool also supports include=[\"sales_activities\"], subject to the user's access rights. GET /sales_activities.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 10000,
"minimum": 1,
"description": "Page number, 1-based (25 records per page)."
},
"per_page": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Records per page (1-100)."
}
}
},
"annotations": {
"title": "List sales activities",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the users of the account (id and name). Use the id as owner_id when creating or updating records. GET /selector/owners.
No parameters.
{
"name": "freshsales_list_owners",
"title": "List owners (users)",
"description": "List the users of the account (id and name). Use the id as owner_id when creating or updating records. GET /selector/owners.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List owners",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the deal pipelines (id, name). GET /selector/deal_pipelines.
No parameters.
{
"name": "freshsales_list_deal_pipelines",
"title": "List deal pipelines",
"description": "List the deal pipelines (id, name). GET /selector/deal_pipelines.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List deal pipelines",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List deal stages (id, name, deal_pipeline_id): those of the default pipeline, or of the pipeline given by pipeline_id. Use the id as deal_stage_id. GET /selector/deal_stages or /selector/deal_pipelines/{id}/deal_stages.
| Parameter | Type | Description |
|---|---|---|
| pipeline_id | integer | Pipeline id (freshsales_list_deal_pipelines); default pipeline when omitted. |
{
"name": "freshsales_list_deal_stages",
"title": "List deal stages",
"description": "List deal stages (id, name, deal_pipeline_id): those of the default pipeline, or of the pipeline given by pipeline_id. Use the id as deal_stage_id. GET /selector/deal_stages or /selector/deal_pipelines/{id}/deal_stages.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"pipeline_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pipeline id (freshsales_list_deal_pipelines); default pipeline when omitted.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List deal stages",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the configured choices (id and name) for a field: lead_sources, contact_statuses, lifecycle_stages, deal_types, deal_reasons, deal_products, deal_payment_statuses, territories, currencies, industry_types, business_types, campaigns, sales_activity_types, sales_activity_outcomes. Use the ids in the *_id fields of the write tools. GET /selector/{kind}.
| Parameter | Type | Description |
|---|---|---|
| kind * | string | Which list of choices. |
{
"name": "freshsales_list_options",
"title": "List option values",
"description": "List the configured choices (id and name) for a field: lead_sources, contact_statuses, lifecycle_stages, deal_types, deal_reasons, deal_products, deal_payment_statuses, territories, currencies, industry_types, business_types, campaigns, sales_activity_types, sales_activity_outcomes. Use the ids in the *_id fields of the write tools. GET /selector/{kind}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"deal_types",
"lead_sources",
"contact_statuses",
"lifecycle_stages",
"territories",
"currencies",
"deal_reasons",
"industry_types",
"business_types",
"campaigns",
"deal_payment_statuses",
"deal_products",
"sales_activity_types",
"sales_activity_outcomes"
],
"type": "string",
"description": "Which list of choices."
}
}
},
"annotations": {
"title": "List option values",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}WRITE: create a contact. Freshsales requires an email or a mobile number. It may create a duplicate of an existing contact: search first (freshsales_lookup by email). POST /contacts.
| Parameter | Type | Description |
|---|---|---|
| city | string | City. |
| string | Primary email address. | |
| state | string | State or region. |
| address | string | Street address. |
| country | string | Country. |
| zipcode | string | Postal code. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| job_title | string | Job title. |
| last_name | string | Last name. |
| first_name | string | First name. |
| work_number | string | Work phone number. |
| custom_field | object |
WRITE: change fields of an existing contact; only the fields you pass are changed (passing sales_accounts replaces the associated companies). PUT /contacts/{id}.
| Parameter | Type | Description |
|---|---|---|
| city | string | City. |
| string | Primary email address. | |
| state | string | State or region. |
| address | string | Street address. |
| country | string | Country. |
| zipcode | string | Postal code. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| job_title | string | Job title. |
| last_name | string | Last name. |
| contact_id * | integer | Contact id. |
| first_name | string | First name. |
WRITE: create an account (company). name is required. It may duplicate an existing company: search first (freshsales_search). POST /sales_accounts.
| Parameter | Type | Description |
|---|---|---|
| city | string | City. |
| name * | string | Company name. |
| phone | string | Phone number. |
| state | string | State or region. |
| address | string | Street address. |
| country | string | Country. |
| website | string | Website. |
| zipcode | string | Postal code. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| custom_field | object | Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
| annual_revenue | number | Annual revenue. |
| business_type_id |
WRITE: change fields of an existing account (company); only the fields you pass are changed. PUT /sales_accounts/{id}.
| Parameter | Type | Description |
|---|---|---|
| city | string | City. |
| name | string | Company name. |
| phone | string | Phone number. |
| state | string | State or region. |
| address | string | Street address. |
| country | string | Country. |
| website | string | Website. |
| zipcode | string | Postal code. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| account_id * | integer | Account (sales account) id. |
| custom_field | object | Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
WRITE: create a deal. name, amount and sales_account_id are required; contact_ids attach existing contacts. Stage and pipeline default to the first of the default pipeline. POST /deals.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Deal name. |
| amount * | number | Deal value in the account's default currency. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| contact_ids | array | Existing contact ids to attach to the deal. |
| probability | integer | Win probability, 0-100. |
| custom_field | object | Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
| deal_type_id | integer | Deal type id (freshsales_list_options deal_types). |
| deal_stage_id | integer | Stage id (freshsales_list_deal_stages). |
| expected_close | string | Expected close date, YYYY-MM-DD. |
| lead_source_id | integer |
WRITE: change fields of an existing deal, e.g. move it to another stage (deal_stage_id), change amount or expected close; only the fields you pass are changed. PUT /deals/{id}.
| Parameter | Type | Description |
|---|---|---|
| name | string | Deal name. |
| amount | number | Deal value in the deal's own currency (a multi-currency account: freshsales_get_deal shows the deal's currency first when updating). |
| deal_id * | integer | Deal id. |
| owner_id | integer | Owner user id (freshsales_list_owners). |
| probability | integer | Win probability, 0-100. |
| custom_field | object | Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
| deal_type_id | integer | Deal type id (freshsales_list_options deal_types). |
| deal_stage_id | integer | Stage id (freshsales_list_deal_stages). |
| expected_close | string | Expected close date, YYYY-MM-DD. |
| lead_source_id |
WRITE: add a note to a contact, account or deal. Visible to your team on the record. POST /notes.
| Parameter | Type | Description |
|---|---|---|
| target_id * | integer | Id of the contact, account or deal. |
| description * | string | The note text. |
| target_type * | string | What the record is attached to: Contact, SalesAccount (company) or Deal. |
{
"name": "freshsales_create_note",
"title": "Add note",
"description": "WRITE: add a note to a contact, account or deal. Visible to your team on the record. POST /notes.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"target_type",
"target_id",
"description"
],
"properties": {
"target_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Id of the contact, account or deal.",
"exclusiveMinimum": 0
},
"description": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"description": "The note text."
},
"target_type": {
"enum": [
"Contact",
"SalesAccount",
"Deal"
],
"type": "string",
"description": "What the record is attached to: Contact, SalesAccount (company) or Deal."
}
}
},
"annotations": {
"title": "Add note",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}WRITE: replace the text of an existing note. PUT /notes/{id}.
| Parameter | Type | Description |
|---|---|---|
| note_id * | integer | Note id. |
| description * | string | The new note text. |
{
"name": "freshsales_update_note",
"title": "Update note",
"description": "WRITE: replace the text of an existing note. PUT /notes/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"note_id",
"description"
],
"properties": {
"note_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Note id.",
"exclusiveMinimum": 0
},
"description": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"description": "The new note text."
}
}
},
"annotations": {
"title": "Update note",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}WRITE: create a task (to-do) attached to a contact, account or deal. title, due_date, owner_id and the target are required. POST /tasks.
| Parameter | Type | Description |
|---|---|---|
| title * | string | Task title. |
| due_date * | string | Due date and time, ISO 8601 with a timezone, e.g. 2026-11-02T09:00:00Z. |
| owner_id * | integer | User who owns the task (freshsales_list_owners). |
| target_id * | integer | Id of the contact, account or deal. |
| description | string | Details. |
| target_type * | string | What the record is attached to: Contact, SalesAccount (company) or Deal. |
{
"name": "freshsales_create_task",
"title": "Create task",
"description": "WRITE: create a task (to-do) attached to a contact, account or deal. title, due_date, owner_id and the target are required. POST /tasks.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"title",
"due_date",
"owner_id",
"target_type",
"target_id"
],
"properties": {
"title": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Task title."
},
"due_date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Due date and time, ISO 8601 with a timezone, e.g. 2026-11-02T09:00:00Z."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "User who owns the task (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"target_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Id of the contact, account or deal.",
"exclusiveMinimum": 0
},
"description": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "Details."
},
"target_type": {
"enum": [
"Contact",
"SalesAccount",
"Deal"
],
"type": "string",
"description": "What the record is attached to: Contact, SalesAccount (company) or Deal."
}
}
},
"annotations": {
"title": "Create task",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}WRITE: change a task: title, details, due date, owner, or mark it completed (status 1) or open (status 0). PUT /tasks/{id}.
| Parameter | Type | Description |
|---|---|---|
| title | string | New title. |
| status | any | 0 = open, 1 = completed. |
| task_id * | integer | Task id. |
| due_date | string | New due date and time, ISO 8601 with a timezone. |
| owner_id | integer | New owner user id. |
| description | string | New details. |
{
"name": "freshsales_update_task",
"title": "Update task",
"description": "WRITE: change a task: title, details, due date, owner, or mark it completed (status 1) or open (status 0). PUT /tasks/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"task_id"
],
"properties": {
"title": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "New title."
},
"status": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "0 = open, 1 = completed."
},
"task_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Task id.",
"exclusiveMinimum": 0
},
"due_date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "New due date and time, ISO 8601 with a timezone."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "New owner user id.",
"exclusiveMinimum": 0
},
"description": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "New details."
}
}
},
"annotations": {
"title": "Update task",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}WRITE: create an appointment (meeting) with a start and end, optionally attached to a contact, account or deal and with attendees. Attendees may be notified by Freshsales. POST /appointments.
| Parameter | Type | Description |
|---|---|---|
| title * | string | Appointment title. |
| end_date * | string | End, ISO 8601 with a timezone; after from_date. |
| location | string | Location. |
| from_date * | string | Start, ISO 8601 with a timezone, e.g. 2026-11-02T09:00:00Z. |
| target_id | integer | Id of the contact, account or deal (with target_type). |
| time_zone | string | Time zone name, e.g. Europe/Prague. |
| description | string | Details. |
| target_type | string | What the record is attached to: Contact, SalesAccount (company) or Deal. |
| attendee_user_ids | array | User ids (freshsales_list_owners) attending. |
| attendee_contact_ids | array |
Tools for Freshsales, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Which deals are in my open-deals view, and which close this month?"; "Find the contact with the email jane@example.com and show her notes and open tasks."; "Add a note to the Acme account: renewal call went well, send the quote Friday.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Freshsales data. Free plan: 50 tool calls per month. Run freshsales_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run freshsales_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run freshsales_upgrade without a plan: it returns both plans, each with a payment link for the user to open. freshsales_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
| mobile_number | string | Mobile number. |
| lead_source_id | integer | Lead source id (freshsales_list_options lead_sources). |
| sales_accounts | array | Companies the contact belongs to: [{id, is_primary}], at most 10, exactly one primary. |
| contact_status_id | integer | Contact status id (freshsales_list_options contact_statuses). |
| lifecycle_stage_id | integer | Lifecycle stage id (freshsales_list_options lifecycle_stages). |
{
"name": "freshsales_create_contact",
"title": "Create contact",
"description": "WRITE: create a contact. Freshsales requires an email or a mobile number. It may create a duplicate of an existing contact: search first (freshsales_lookup by email). POST /contacts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"city": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "City."
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"maxLength": 254,
"description": "Primary email address."
},
"state": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "State or region."
},
"address": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Street address."
},
"country": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Country."
},
"zipcode": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Postal code."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"job_title": {
"type": "string",
"maxLength": 150,
"minLength": 1,
"description": "Job title."
},
"last_name": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Last name."
},
"first_name": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "First name."
},
"work_number": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Work phone number."
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"mobile_number": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Mobile number."
},
"lead_source_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead source id (freshsales_list_options lead_sources).",
"exclusiveMinimum": 0
},
"sales_accounts": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"is_primary"
],
"properties": {
"id": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"is_primary": {
"type": "boolean"
}
}
},
"maxItems": 10,
"minItems": 1,
"description": "Companies the contact belongs to: [{id, is_primary}], at most 10, exactly one primary."
},
"contact_status_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact status id (freshsales_list_options contact_statuses).",
"exclusiveMinimum": 0
},
"lifecycle_stage_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lifecycle stage id (freshsales_list_options lifecycle_stages).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Create contact",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}| work_number | string | Work phone number. |
| custom_field | object | Custom field values keyed by field name, e.g. {"cf_is_active": true}. Field names start with cf_. |
| mobile_number | string | Mobile number. |
| lead_source_id | integer | Lead source id (freshsales_list_options lead_sources). |
| sales_accounts | array | Companies the contact belongs to: [{id, is_primary}], at most 10, exactly one primary. |
| contact_status_id | integer | Contact status id (freshsales_list_options contact_statuses). |
| lifecycle_stage_id | integer | Lifecycle stage id (freshsales_list_options lifecycle_stages). |
{
"name": "freshsales_update_contact",
"title": "Update contact",
"description": "WRITE: change fields of an existing contact; only the fields you pass are changed (passing sales_accounts replaces the associated companies). PUT /contacts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"contact_id"
],
"properties": {
"city": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "City."
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"maxLength": 254,
"description": "Primary email address."
},
"state": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "State or region."
},
"address": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Street address."
},
"country": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Country."
},
"zipcode": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Postal code."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"job_title": {
"type": "string",
"maxLength": 150,
"minLength": 1,
"description": "Job title."
},
"last_name": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Last name."
},
"contact_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact id.",
"exclusiveMinimum": 0
},
"first_name": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "First name."
},
"work_number": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Work phone number."
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"mobile_number": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Mobile number."
},
"lead_source_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead source id (freshsales_list_options lead_sources).",
"exclusiveMinimum": 0
},
"sales_accounts": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"is_primary"
],
"properties": {
"id": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"is_primary": {
"type": "boolean"
}
}
},
"maxItems": 10,
"minItems": 1,
"description": "Companies the contact belongs to: [{id, is_primary}], at most 10, exactly one primary."
},
"contact_status_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Contact status id (freshsales_list_options contact_statuses).",
"exclusiveMinimum": 0
},
"lifecycle_stage_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lifecycle stage id (freshsales_list_options lifecycle_stages).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Update contact",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}| integer |
| Business type id (freshsales_list_options business_types). |
| industry_type_id | integer | Industry id (freshsales_list_options industry_types). |
| number_of_employees | any | Company size bucket code (not a headcount): 1 = 1-10, 11 = 11-50, 51 = 51-200, 201 = 201-500, 501 = 501-1000, 1001 = 1001-5000, 5001 = 5001-10000, 10001 = 10000+. |
{
"name": "freshsales_create_account",
"title": "Create account",
"description": "WRITE: create an account (company). name is required. It may duplicate an existing company: search first (freshsales_search). POST /sales_accounts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name"
],
"properties": {
"city": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "City."
},
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Company name."
},
"phone": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Phone number."
},
"state": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "State or region."
},
"address": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Street address."
},
"country": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Country."
},
"website": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Website."
},
"zipcode": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Postal code."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"annual_revenue": {
"type": "number",
"minimum": 0,
"description": "Annual revenue."
},
"business_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Business type id (freshsales_list_options business_types).",
"exclusiveMinimum": 0
},
"industry_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Industry id (freshsales_list_options industry_types).",
"exclusiveMinimum": 0
},
"number_of_employees": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 11
},
{
"type": "number",
"const": 51
},
{
"type": "number",
"const": 201
},
{
"type": "number",
"const": 501
},
{
"type": "number",
"const": 1001
},
{
"type": "number",
"const": 5001
},
{
"type": "number",
"const": 10001
}
],
"description": "Company size bucket code (not a headcount): 1 = 1-10, 11 = 11-50, 51 = 51-200, 201 = 201-500, 501 = 501-1000, 1001 = 1001-5000, 5001 = 5001-10000, 10001 = 10000+."
}
}
},
"annotations": {
"title": "Create account",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}| annual_revenue | number | Annual revenue. |
| business_type_id | integer | Business type id (freshsales_list_options business_types). |
| industry_type_id | integer | Industry id (freshsales_list_options industry_types). |
| number_of_employees | any | Company size bucket code (not a headcount): 1 = 1-10, 11 = 11-50, 51 = 51-200, 201 = 201-500, 501 = 501-1000, 1001 = 1001-5000, 5001 = 5001-10000, 10001 = 10000+. |
{
"name": "freshsales_update_account",
"title": "Update account",
"description": "WRITE: change fields of an existing account (company); only the fields you pass are changed. PUT /sales_accounts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"account_id"
],
"properties": {
"city": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "City."
},
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Company name."
},
"phone": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Phone number."
},
"state": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "State or region."
},
"address": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Street address."
},
"country": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Country."
},
"website": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Website."
},
"zipcode": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Postal code."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"account_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Account (sales account) id.",
"exclusiveMinimum": 0
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"annual_revenue": {
"type": "number",
"minimum": 0,
"description": "Annual revenue."
},
"business_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Business type id (freshsales_list_options business_types).",
"exclusiveMinimum": 0
},
"industry_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Industry id (freshsales_list_options industry_types).",
"exclusiveMinimum": 0
},
"number_of_employees": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 11
},
{
"type": "number",
"const": 51
},
{
"type": "number",
"const": 201
},
{
"type": "number",
"const": 501
},
{
"type": "number",
"const": 1001
},
{
"type": "number",
"const": 5001
},
{
"type": "number",
"const": 10001
}
],
"description": "Company size bucket code (not a headcount): 1 = 1-10, 11 = 11-50, 51 = 51-200, 201 = 201-500, 501 = 501-1000, 1001 = 1001-5000, 5001 = 5001-10000, 10001 = 10000+."
}
}
},
"annotations": {
"title": "Update account",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}| Lead source id (freshsales_list_options lead_sources). |
| deal_pipeline_id | integer | Pipeline id (freshsales_list_deal_pipelines). |
| sales_account_id * | integer | Company the deal belongs to. |
{
"name": "freshsales_create_deal",
"title": "Create deal",
"description": "WRITE: create a deal. name, amount and sales_account_id are required; contact_ids attach existing contacts. Stage and pipeline default to the first of the default pipeline. POST /deals.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name",
"amount",
"sales_account_id"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Deal name."
},
"amount": {
"type": "number",
"maximum": 10000000000000,
"minimum": 0,
"description": "Deal value in the account's default currency."
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"contact_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Existing contact ids to attach to the deal."
},
"probability": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Win probability, 0-100."
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"deal_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Deal type id (freshsales_list_options deal_types).",
"exclusiveMinimum": 0
},
"deal_stage_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Stage id (freshsales_list_deal_stages).",
"exclusiveMinimum": 0
},
"expected_close": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Expected close date, YYYY-MM-DD."
},
"lead_source_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead source id (freshsales_list_options lead_sources).",
"exclusiveMinimum": 0
},
"deal_pipeline_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pipeline id (freshsales_list_deal_pipelines).",
"exclusiveMinimum": 0
},
"sales_account_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Company the deal belongs to.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Create deal",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| Lead source id (freshsales_list_options lead_sources). |
| add_contact_ids | array | Existing contact ids to attach. |
| deal_pipeline_id | integer | Pipeline id (freshsales_list_deal_pipelines). |
| sales_account_id | integer | Company the deal belongs to (freshsales_search sales_account). |
| remove_contact_ids | array | Contact ids to detach from the deal. |
{
"name": "freshsales_update_deal",
"title": "Update deal",
"description": "WRITE: change fields of an existing deal, e.g. move it to another stage (deal_stage_id), change amount or expected close; only the fields you pass are changed. PUT /deals/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"deal_id"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Deal name."
},
"amount": {
"type": "number",
"maximum": 10000000000000,
"minimum": 0,
"description": "Deal value in the deal's own currency (a multi-currency account: freshsales_get_deal shows the deal's currency first when updating)."
},
"deal_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Deal id.",
"exclusiveMinimum": 0
},
"owner_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Owner user id (freshsales_list_owners).",
"exclusiveMinimum": 0
},
"probability": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Win probability, 0-100."
},
"custom_field": {
"type": "object",
"description": "Custom field values keyed by field name, e.g. {\"cf_is_active\": true}. Field names start with cf_.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"deal_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Deal type id (freshsales_list_options deal_types).",
"exclusiveMinimum": 0
},
"deal_stage_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Stage id (freshsales_list_deal_stages).",
"exclusiveMinimum": 0
},
"expected_close": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Expected close date, YYYY-MM-DD."
},
"lead_source_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Lead source id (freshsales_list_options lead_sources).",
"exclusiveMinimum": 0
},
"add_contact_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Existing contact ids to attach."
},
"deal_pipeline_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pipeline id (freshsales_list_deal_pipelines).",
"exclusiveMinimum": 0
},
"sales_account_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Company the deal belongs to (freshsales_search sales_account).",
"exclusiveMinimum": 0
},
"remove_contact_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Contact ids to detach from the deal."
}
}
},
"annotations": {
"title": "Update deal",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}| Contact ids attending. |
{
"name": "freshsales_create_appointment",
"title": "Create appointment",
"description": "WRITE: create an appointment (meeting) with a start and end, optionally attached to a contact, account or deal and with attendees. Attendees may be notified by Freshsales. POST /appointments.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"title",
"from_date",
"end_date"
],
"properties": {
"title": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Appointment title."
},
"end_date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "End, ISO 8601 with a timezone; after from_date."
},
"location": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "Location."
},
"from_date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Start, ISO 8601 with a timezone, e.g. 2026-11-02T09:00:00Z."
},
"target_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Id of the contact, account or deal (with target_type).",
"exclusiveMinimum": 0
},
"time_zone": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Time zone name, e.g. Europe/Prague."
},
"description": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "Details."
},
"target_type": {
"enum": [
"Contact",
"SalesAccount",
"Deal"
],
"type": "string",
"description": "What the record is attached to: Contact, SalesAccount (company) or Deal."
},
"attendee_user_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "User ids (freshsales_list_owners) attending."
},
"attendee_contact_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Contact ids attending."
}
}
},
"annotations": {
"title": "Create appointment",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}