PipeRun MCP by usefulapi
Read deals, people, companies and activities; create records and update deals in PipeRun.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"piperun": {
"url": "https://piperun.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://piperun.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(20)
🟢piperun_list_deals(show, cursor, title, pipeline_id, stage_id, ...)
List deals (oportunidades) with filters for pipeline, stage, person, company, owner, title and last update date. Returns one page and meta.cursor.next. GET /deals.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"title": {
"description": "Filter by deal title.",
"type": "string"
},
"pipeline_id": {
"description": "Filter by pipeline id (from piperun_list_pipelines).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"stage_id": {
"description": "Filter by stage id (from piperun_list_stages).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"person_id": {
"description": "Filter by linked person id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"company_id": {
"description": "Filter by linked company id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"owner_id": {
"description": "Filter by owner user id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"temperature": {
"description": "Deal temperature: 1 very hot, 2 hot, 3 warm, 4 cold.",
"type": "integer",
"minimum": 1,
"maximum": 4
},
"updated_at_start": {
"description": "Only deals updated on or after this date.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
},
"updated_at_end": {
"description": "Only deals updated on or before this date.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_get_deal(deal_id, with)
Get one deal (oportunidade) by id, with its pipeline, stage, owner and value. GET /deals/{deal_id}.
入力スキーマ
{
"type": "object",
"properties": {
"deal_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The deal id (from piperun_list_deals)."
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"required": [
"deal_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_create_deal(pipeline_id, stage_id, title, value, person_id, ...)
Create a deal (oportunidade) in a pipeline stage. Creates a new record in the CRM. POST /deals.
入力スキーマ
{
"type": "object",
"properties": {
"pipeline_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Pipeline id (funil) for the deal."
},
"stage_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Stage id (etapa) inside that pipeline."
},
"title": {
"type": "string",
"minLength": 1,
"description": "Deal title."
},
"value": {
"description": "Deal value (products and services), in the account currency.",
"type": "number"
},
"person_id": {
"description": "Linked person id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"company_id": {
"description": "Linked company id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"owner_id": {
"description": "Owner user id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"temperature": {
"description": "Deal temperature: 1 very hot, 2 hot, 3 warm, 4 cold.",
"type": "integer",
"minimum": 1,
"maximum": 4
}
},
"required": [
"pipeline_id",
"stage_id",
"title"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_update_deal(deal_id, pipeline_id, stage_id, title, value, ...)
Change fields of one deal (oportunidade): move it to another stage, rename it, change its value, owner, person, company or temperature. Only the fields you send change. PUT /deals/{deal_id}.
入力スキーマ
{
"type": "object",
"properties": {
"deal_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The deal id to update."
},
"pipeline_id": {
"description": "New pipeline id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"stage_id": {
"description": "New stage id (moves the deal).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"title": {
"description": "New title.",
"type": "string",
"minLength": 1
},
"value": {
"description": "New value (products and services).",
"type": "number"
},
"person_id": {
"description": "New linked person id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"company_id": {
"description": "New linked company id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"owner_id": {
"description": "New owner user id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"temperature": {
"description": "Deal temperature: 1 very hot, 2 hot, 3 warm, 4 cold.",
"type": "integer",
"minimum": 1,
"maximum": 4
}
},
"required": [
"deal_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_persons(show, cursor, name, company_id, job_title, ...)
List people (pessoas, contacts) with filters for name, company, job title and last update date. Returns one page and meta.cursor.next. GET /persons.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"name": {
"description": "Filter by name.",
"type": "string"
},
"company_id": {
"description": "Filter by company id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"job_title": {
"description": "Filter by job title.",
"type": "string"
},
"updated_at_start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}",
"description": "Date as yyyy-mm-dd."
},
"updated_at_end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}",
"description": "Date as yyyy-mm-dd."
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_get_person(person_id, with)
Get one person (pessoa) by id. GET /persons/{person_id}.
入力スキーマ
{
"type": "object",
"properties": {
"person_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The person id (from piperun_list_persons)."
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"required": [
"person_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_create_person(name, company_id, job_title, emails, phones)
Create a person (pessoa, contact) with optional company and contact lists. Creates a new record. POST /persons.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Full name."
},
"company_id": {
"description": "Company id the person works for.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"job_title": {
"description": "Job title.",
"type": "string"
},
"emails": {
"description": "Email addresses.",
"type": "array",
"items": {
"type": "string"
}
},
"phones": {
"description": "Phone numbers.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_update_person(person_id, name, company_id, job_title)
Change the name, company or job title of one person (pessoa). Only the fields you send change. PUT /persons/{person_id}.
入力スキーマ
{
"type": "object",
"properties": {
"person_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The person id to update."
},
"name": {
"description": "New name.",
"type": "string",
"minLength": 1
},
"company_id": {
"description": "New company id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"job_title": {
"description": "New job title.",
"type": "string"
}
},
"required": [
"person_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_companies(show, cursor, name, cnpj, manager_id, ...)
List companies (empresas) with filters for name, CNPJ, segment, manager and last update date. GET /companies.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"name": {
"description": "Filter by company name.",
"type": "string"
},
"cnpj": {
"description": "Filter by CNPJ (Brazilian company tax id).",
"type": "string"
},
"manager_id": {
"description": "Filter by manager user id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"segment_id": {
"description": "Filter by segment id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"updated_at_start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}",
"description": "Date as yyyy-mm-dd."
},
"updated_at_end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}",
"description": "Date as yyyy-mm-dd."
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_get_company(company_id, with)
Get one company (empresa) by id. GET /companies/{id}.
入力スキーマ
{
"type": "object",
"properties": {
"company_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The company id (from piperun_list_companies)."
},
"with": {
"description": "Add one related object to each result. Only one value: the API slows down with chained values.",
"type": "string",
"enum": [
"items",
"persons",
"companies",
"users"
]
}
},
"required": [
"company_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_create_company(name, cnpj, website, observation)
Create a company (empresa). Creates a new record. POST /companies.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Company name."
},
"cnpj": {
"description": "CNPJ, format XXXXXXXX0001XX or XX.XXX.XXX/0001-XX.",
"type": "string"
},
"website": {
"description": "Website URL.",
"type": "string"
},
"observation": {
"description": "Free-text note about the company.",
"type": "string"
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_activities(show, cursor, deal_id, owner_id, activity_type_id, ...)
List activities (atividades: tasks, calls, meetings) with filters for deal, owner, status and start date. Status: 0 open, 2 done, 4 no-show. GET /activities.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"deal_id": {
"description": "Filter by deal id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"owner_id": {
"description": "Filter by owner user id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activity_type_id": {
"description": "Filter by activity type id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"status": {
"description": "0 open, 2 done, 4 no-show.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"start_at_start": {
"description": "Start date from (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
},
"start_at_end": {
"description": "Start date to (yyyy-mm-dd).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_get_activity(activity_id)
Get one activity (atividade) by id. GET /activities/{id}.
入力スキーマ
{
"type": "object",
"properties": {
"activity_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The activity id (from piperun_list_activities)."
}
},
"required": [
"activity_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴piperun_create_activity(activity_type_id, status, owner_id, deal_id, title, ...)
Create an activity (task, call or meeting) for a user, optionally linked to a deal. Status: 0 open, 2 done, 4 no-show. Creates a new record. POST /activities.
入力スキーマ
{
"type": "object",
"properties": {
"activity_type_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Activity type id (tipo de atividade)."
},
"status": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "0 open, 2 done, 4 no-show."
},
"owner_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "User id responsible for the activity."
},
"deal_id": {
"description": "Linked deal id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"title": {
"description": "Activity title.",
"type": "string"
},
"description": {
"description": "Activity description.",
"type": "string"
},
"start_at": {
"description": "Start date or date-time: yyyy-mm-dd or yyyy-mm-dd HH:MM:SS.",
"type": "string"
},
"end_at": {
"description": "End date or date-time: yyyy-mm-dd or yyyy-mm-dd HH:MM:SS.",
"type": "string"
}
},
"required": [
"activity_type_id",
"status",
"owner_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_pipelines(show, cursor, name)
List pipelines (funis) of the account. Use the ids in deal tools. GET /pipelines.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"name": {
"description": "Filter by pipeline name.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_stages(show, cursor, pipeline_id, name)
List the stages (etapas de funil) of the account, optionally of one pipeline. GET /stages.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"pipeline_id": {
"description": "Only stages of this pipeline (from piperun_list_pipelines).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"name": {
"description": "Filter by stage name.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_items(show, cursor, name, category_id, code)
List products, services and recurring items (itens) with name, category and reference code. GET /items.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"name": {
"description": "Filter by item name.",
"type": "string"
},
"category_id": {
"description": "Filter by item category id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"code": {
"description": "Filter by item code.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_notes(show, cursor, deal_id, company_id, person_id, ...)
List notes (notas) written on a deal, company or person. GET /notes.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"deal_id": {
"description": "Notes on this deal.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"company_id": {
"description": "Notes on this company.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"person_id": {
"description": "Notes on this person.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"user_id": {
"description": "Notes written by this user.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_list_users(show, cursor, name, email)
List users (usuários) of the account, for example to find an owner id. GET /users.
入力スキーマ
{
"type": "object",
"properties": {
"show": {
"description": "Items per page (the API default applies when omitted).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from meta.cursor.next of the previous page. Leave empty for the first page.",
"type": "string"
},
"name": {
"description": "Filter by name.",
"type": "string"
},
"email": {
"description": "Filter by email address.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢piperun_get_user(user_id)
Get one user (usuário) by id. GET /users/{user_id}.
入力スキーマ
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The user id (from piperun_list_users)."
}
},
"required": [
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}コミュニティ
エビデンス