Close MCP by usefulapi
Search leads, read activity; create leads, notes and tasks; update leads, tasks and deals in Close.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 close_list_opportunity_statuses 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"close": {
"url": "https://close.usefulapi.io/mcp"
}
}
}遠端端點
https://close.usefulapi.io/mcpstreamable-http它能做什麼
工具清單
工具(20)
🟢close_whoami
Show the Close user and organization this API key belongs to. Good first call to confirm the connection. Close API: GET /me/.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_users(_limit, _skip)
List the users (sales reps and admins) in the organization. Use their ids as assigned_to. Close API: GET /user/.
輸入結構描述
{
"type": "object",
"properties": {
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_lead_statuses
List the lead statuses of the organization, in order. Use their ids as status_id. Close API: GET /status/lead/.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_opportunity_statuses
List the opportunity statuses (pipeline stages) of the organization. Close API: GET /status/opportunity/.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_pipelines
List the opportunity pipelines and the statuses in each. Close API: GET /pipeline/.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_leads(_limit, _skip, _fields)
List leads (companies or accounts) in the organization, one page at a time. Use close_search_leads to find a lead by name. Close API: GET /lead/.
輸入結構描述
{
"type": "object",
"properties": {
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
},
"_fields": {
"description": "Comma-separated list of fields to return.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_get_lead(lead_id, _fields)
Fetch one lead with its name, status, addresses and custom fields. Close API: GET /lead/{id}/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"_fields": {
"description": "Comma-separated list of fields to return.",
"type": "string"
}
},
"required": [
"lead_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_search_leads(text, _limit)
Find leads whose name contains every word in the text (full words). Uses Close's Advanced Filtering. Close API: POST /data/search/.
輸入結構描述
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"description": "Words to find in the lead name, for example Acme Corp."
},
"_limit": {
"description": "Results to return (1-100, default 25).",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"text"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_contacts(lead_id, _limit, _skip, _fields)
List contacts (people), optionally only those on one lead. Close API: GET /contact/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id to filter by (for example lead_… or user_…)."
},
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
},
"_fields": {
"description": "Comma-separated list of fields to return.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_opportunities(lead_id, status_id, _limit, _skip)
List opportunities (deals), optionally filtered by lead or status. Close API: GET /opportunity/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id to filter by (for example lead_… or user_…)."
},
"status_id": {
"description": "Opportunity status id to filter by.",
"type": "string"
},
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_activities(lead_id, _limit, _skip)
List the activity timeline of one lead: notes, calls, emails, status changes. Close API: GET /activity/ with lead_id.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
}
},
"required": [
"lead_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢close_list_tasks(lead_id, assigned_to, is_complete, _limit, _skip)
List lead tasks (action items with a due date), optionally filtered by lead, assignee or completion. Close API: GET /task/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id to filter by (for example lead_… or user_…)."
},
"assigned_to": {
"description": "User id of the assignee to filter by.",
"type": "string"
},
"is_complete": {
"description": "true for completed tasks only, false for open tasks only.",
"type": "boolean"
},
"_limit": {
"description": "Results per page (1-100, default 100).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"_skip": {
"description": "Results to skip, for pagination.",
"type": "integer",
"minimum": 0,
"maximum": 35000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴close_create_lead(name, url, description, status_id)
Create a lead (a company or account). Close API: POST /lead/. Creates a record; no delete tool exists.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"description": "Lead name, usually a company name.",
"type": "string"
},
"url": {
"description": "Website of the lead, for example https://example.com.",
"type": "string"
},
"description": {
"description": "Free-text description.",
"type": "string"
},
"status_id": {
"description": "Lead status id. Defaults to the organization's first status.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡close_update_lead(lead_id, name, url, description, status_id)
Change the name, website, description or status of a lead. Only the fields you pass change. Close API: PUT /lead/{id}/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"name": {
"description": "New lead name.",
"type": "string"
},
"url": {
"description": "New website.",
"type": "string"
},
"description": {
"description": "New description.",
"type": "string"
},
"status_id": {
"description": "New lead status id.",
"type": "string"
}
},
"required": [
"lead_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴close_create_contact(lead_id, name, title, emails, phones)
Add a contact (a person) to a lead. Close API: POST /contact/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id to add the contact to; omit to create a new lead for the contact (for example lead_… or user_…)."
},
"name": {
"description": "Full name of the contact.",
"type": "string"
},
"title": {
"description": "Job title.",
"type": "string"
},
"emails": {
"description": "Email addresses, each with an optional type such as office or direct.",
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string",
"minLength": 3
},
"type": {
"type": "string"
}
},
"required": [
"email"
]
}
},
"phones": {
"description": "Phone numbers in international format, each with an optional type.",
"type": "array",
"items": {
"type": "object",
"properties": {
"phone": {
"type": "string",
"minLength": 3
},
"type": {
"type": "string"
}
},
"required": [
"phone"
]
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴close_create_note(lead_id, note, contact_id)
Add a plain-text note to a lead's activity timeline. Close API: POST /activity/note/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"note": {
"type": "string",
"minLength": 1,
"description": "Plain-text content of the note."
},
"contact_id": {
"description": "Contact id the note is about. The contact must be on the lead.",
"type": "string"
}
},
"required": [
"lead_id",
"note"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴close_create_task(lead_id, text, date, assigned_to, is_complete, ...)
Create a follow-up task on a lead with an optional due date and assignee. Close may email the assignee. Close API: POST /task/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"text": {
"type": "string",
"minLength": 1,
"description": "What to do."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Due date, yyyy-mm-dd."
},
"assigned_to": {
"description": "User id of the assignee. Defaults to the API key's user.",
"type": "string"
},
"is_complete": {
"description": "true to create the task already completed.",
"type": "boolean"
},
"disable_notification": {
"description": "true to skip the email to the assignee.",
"type": "boolean"
}
},
"required": [
"lead_id",
"text"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡close_update_task(task_id, is_complete, assigned_to)
Mark a task complete or open again, or change its assignee. Close API: PUT /task/{id}/.
輸入結構描述
{
"type": "object",
"properties": {
"task_id": {
"type": "string",
"minLength": 1,
"description": "Task id (for example lead_… or user_…)."
},
"is_complete": {
"description": "true to complete the task, false to reopen it.",
"type": "boolean"
},
"assigned_to": {
"description": "User id of the new assignee.",
"type": "string"
}
},
"required": [
"task_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴close_create_opportunity(lead_id, status_id, value, value_period, confidence, ...)
Create a deal (opportunity) on a lead, with an optional value in cents, status and win likelihood. Close API: POST /opportunity/.
輸入結構描述
{
"type": "object",
"properties": {
"lead_id": {
"type": "string",
"minLength": 1,
"description": "Lead id (for example lead_… or user_…)."
},
"status_id": {
"description": "Opportunity status id or label, for example Active.",
"type": "string"
},
"value": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Amount in cents, for example 340000 for $3,400.00."
},
"value_period": {
"description": "How often the value is paid.",
"type": "string",
"enum": [
"one_time",
"monthly",
"annual"
]
},
"confidence": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Likelihood of winning, 0-100 percent."
},
"note": {
"description": "Plain-text note on the deal.",
"type": "string"
},
"contact_id": {
"description": "Contact id on the lead to link.",
"type": "string"
}
},
"required": [
"lead_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡close_update_opportunity(opportunity_id, status_id, value, value_period, confidence, ...)
Move an opportunity to another status, or change its value, likelihood or note. Only the fields you pass change. Close API: PUT /opportunity/{id}/.
輸入結構描述
{
"type": "object",
"properties": {
"opportunity_id": {
"type": "string",
"minLength": 1,
"description": "Opportunity id (for example lead_… or user_…)."
},
"status_id": {
"description": "New status id or label, for example Won.",
"type": "string"
},
"value": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Amount in cents, for example 340000 for $3,400.00."
},
"value_period": {
"type": "string",
"enum": [
"one_time",
"monthly",
"annual"
]
},
"confidence": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Likelihood of winning, 0-100 percent."
},
"note": {
"description": "Plain-text note on the deal.",
"type": "string"
}
},
"required": [
"opportunity_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據