@agifyai/leadify-mcp 8.7.3 → 8.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/tools/lead_groups.js +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -229,8 +229,8 @@ Leadify et ne doit jamais être envoyée par un agent MCP.
|
|
|
229
229
|
| `test_api_key` | Vérifier que la clé API configurée est valide (health check). |
|
|
230
230
|
| `list_lead_groups` | Lister les groupes accessibles d'une organisation explicitement sélectionnée, en vue compacte. |
|
|
231
231
|
| `get_lead_group` | Consulter les métadonnées compactes d'un groupe accessible par son ID. |
|
|
232
|
-
| `create_lead_group` | Créer un groupe
|
|
233
|
-
| `update_lead_group` | Modifier un groupe,
|
|
232
|
+
| `create_lead_group` | Créer un groupe, choisir son type canonique optionnel et rattacher atomiquement `persona_id` avec l’`offer_id` ACTIVE du même tenant. |
|
|
233
|
+
| `update_lead_group` | Modifier un groupe avec réconciliation du schéma ; lorsque le serveur exige un contexte complet, transmettre ensemble `persona_id` et `offer_id` sans inférer l’offre. |
|
|
234
234
|
| `add_leads` | Ajouter un ou plusieurs leads à un groupe. |
|
|
235
235
|
| `upsert_person_leads_with_employment` | Créer ou réconcilier atomiquement des Person Leads, PERSON, EMPLOYED_BY, projections et historique, sans effet commercial. |
|
|
236
236
|
| `create_person_employment_evidence` / `get_person_employment_evidence` | Créer puis relire une preuve d’emploi individuelle tenant-scopée ; transmettre l’`evidence.id` retourné tel quel à l’upsert Person. |
|
|
@@ -48,6 +48,11 @@ export function registerLeadGroupTools(server, writeClient) {
|
|
|
48
48
|
.optional()
|
|
49
49
|
.describe("ICP persona ID to assign. Must belong to the same org or be global. " +
|
|
50
50
|
"Omit to create the group without a persona."),
|
|
51
|
+
offer_id: z
|
|
52
|
+
.string()
|
|
53
|
+
.nullable()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe("Active offer ID to assign with persona_id. Must belong to the same organization."),
|
|
51
56
|
}, async (params) => {
|
|
52
57
|
try {
|
|
53
58
|
const body = {
|
|
@@ -66,6 +71,8 @@ export function registerLeadGroupTools(server, writeClient) {
|
|
|
66
71
|
body.disabledTools = params.disabled_tools;
|
|
67
72
|
if (params.persona_id !== undefined)
|
|
68
73
|
body.personaId = params.persona_id;
|
|
74
|
+
if (params.offer_id !== undefined)
|
|
75
|
+
body.offerId = params.offer_id;
|
|
69
76
|
const data = await (writeClient ?? getClient()).post("/api/lead-group", body);
|
|
70
77
|
return toolResult(data);
|
|
71
78
|
}
|
|
@@ -91,6 +98,11 @@ export function registerLeadGroupTools(server, writeClient) {
|
|
|
91
98
|
.nullable()
|
|
92
99
|
.optional()
|
|
93
100
|
.describe("New ICP persona ID. Pass null to unassign. Must belong to the same org or be global."),
|
|
101
|
+
offer_id: z
|
|
102
|
+
.string()
|
|
103
|
+
.nullable()
|
|
104
|
+
.optional()
|
|
105
|
+
.describe("Active offer ID to assign with persona_id. Pass null only when removing the binding."),
|
|
94
106
|
persona_types: z
|
|
95
107
|
.array(z.string())
|
|
96
108
|
.optional()
|
|
@@ -116,6 +128,8 @@ export function registerLeadGroupTools(server, writeClient) {
|
|
|
116
128
|
body.entityKind = params.entity_kind;
|
|
117
129
|
if (params.persona_id !== undefined)
|
|
118
130
|
body.personaId = params.persona_id;
|
|
131
|
+
if (params.offer_id !== undefined)
|
|
132
|
+
body.offerId = params.offer_id;
|
|
119
133
|
if (params.persona_types !== undefined)
|
|
120
134
|
body.personaTypes = params.persona_types;
|
|
121
135
|
if (params.company_profile !== undefined)
|