@anychat-ai/mcp 0.1.0 → 0.2.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/tools/agents.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAqC;AAErC;;;;;;GAMG;AAEH,gFAAgF;AAChF,MAAM,aAAa,GAAG,OAAC;KACpB,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACrE,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACvE,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACnE,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC3E,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACjE,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACtE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACzE,mBAAmB,EAAE,OAAC;SACnB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,qFAAqF,CACtF;IACH,gBAAgB,EAAE,OAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QA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");
21
21
  * fields (`contactEmail`, `contactPhone`, `websiteUrl`,
22
22
  * `contactAvailability`), edited via the identity tools.
23
23
  */
24
- const agentId = zod_1.z
25
- .string()
26
- .describe('Agent id (URL-safe slug, e.g. agent-acme-bot-pj7r2qx4)');
24
+ const agentId = zod_1.z.string();
27
25
  const toolId = zod_1.z
28
26
  .string()
29
- .describe('Qualified catalog tool id, e.g. "@anychat/tool.custom-http-webhook", or the id of one of the agent\'s custom tools. Passed raw — the tool URL-encodes it.');
27
+ .describe('Catalog tool id, e.g. "@anychat/tool.custom-http-webhook", or one of the agent\'s custom tool ids');
30
28
  const bindingsBase = (agent) => `/agents/${encodeURIComponent(agent)}/tool-bindings`;
31
29
  const bindingPath = (agent, tool) => `${bindingsBase(agent)}/${encodeURIComponent(tool)}`;
32
30
  const oauthPath = (agent, tool, action) => `/agents/${encodeURIComponent(agent)}/tools/${encodeURIComponent(tool)}/oauth/${action}`;
@@ -41,20 +39,17 @@ const knowledgeDocsPath = (agent) => `/agents/${encodeURIComponent(agent)}/knowl
41
39
  */
42
40
  const bindingConfig = zod_1.z
43
41
  .record(zod_1.z.string(), zod_1.z.any())
44
- .describe("Tool configuration object; shape per the catalog tool's configSchema (e.g. { webhookUrl, authHeader } for the Custom HTTP Webhook tool, a calendar id for Google Calendar). For write-only secret fields (API keys, webhook URLs, auth headers): send a non-empty string to set/replace, an empty string to clear, or omit to leave the stored secret untouched. Reads return { set, last4 } metadata in place of secrets.");
42
+ .describe('Config per the catalog tool\'s configSchema (e.g. { webhookUrl, authHeader }). Write-only secret fields: non-empty string sets, "" clears, omit leaves the stored secret; reads show { set, last4 }.');
45
43
  const followUpStep = zod_1.z
46
44
  .object({
47
- id: zod_1.z.string().min(1).describe('Step id (non-empty string, operator-chosen)'),
45
+ id: zod_1.z.string().min(1).describe('Operator-chosen step id'),
48
46
  delay: zod_1.z
49
47
  .object({
50
- value: zod_1.z.number().positive().describe('Wait since the initial outreach (> 0)'),
51
- unit: zod_1.z.enum(['hours', 'days']).describe('Unit for value'),
48
+ value: zod_1.z.number().positive(),
49
+ unit: zod_1.z.enum(['hours', 'days']),
52
50
  })
53
- .describe('How long after the outreach to send the nudge'),
54
- messageTemplateId: zod_1.z
55
- .string()
56
- .min(1)
57
- .describe("Id of one of the agent's message templates (must exist, else 404)"),
51
+ .describe('Wait after the initial outreach'),
52
+ messageTemplateId: zod_1.z.string().min(1).describe('Existing message template id'),
58
53
  })
59
54
  .describe('The single automatic follow-up step');
60
55
  exports.capabilityTools = [
@@ -62,17 +57,18 @@ exports.capabilityTools = [
62
57
  (0, tool_1.defineTool)({
63
58
  name: 'list_tool_bindings',
64
59
  title: 'List tool bindings',
65
- description: "List the tools bound to an agent (integrations such as Google Calendar, Slack, Custom HTTP Webhook, or the agent's own custom tools) with each binding's config (secrets redacted to { set, last4 }), enabled flag and configStatus (complete | incomplete | invalid). Use to see which capabilities an agent has wired up before configuring or troubleshooting one. Maps to GET /v1/orgs/{org}/agents/{agent}/tool-bindings.",
60
+ description: 'List the tools bound to an agent (Google Calendar, Slack, Custom HTTP Webhook, custom tools …) with config (secrets redacted to { set, last4 }), enabled flag and configStatus (complete | incomplete | invalid). Maps to GET /v1/orgs/{org}/agents/{agent}/tool-bindings.',
66
61
  kind: 'read',
67
62
  scope: 'agents:read',
68
63
  roleFloor: 'viewer',
64
+ profile: 'core',
69
65
  input: { agentId },
70
66
  run: async ({ client }, { agentId }) => client.get(await client.orgPath(bindingsBase(agentId))),
71
67
  }),
72
68
  (0, tool_1.defineTool)({
73
69
  name: 'get_tool_binding',
74
70
  title: 'Get a tool binding',
75
- description: 'Read one tool binding on an agent: { toolId, config (secrets redacted), enabled, configStatus }. Use to inspect how a specific integration is configured. Maps to GET /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.',
71
+ description: 'Read one tool binding: { toolId, config (secrets redacted), enabled, configStatus }. Maps to GET /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.',
76
72
  kind: 'read',
77
73
  scope: 'agents:read',
78
74
  roleFloor: 'viewer',
@@ -82,10 +78,11 @@ exports.capabilityTools = [
82
78
  (0, tool_1.defineTool)({
83
79
  name: 'upsert_tool_binding',
84
80
  title: 'Create or replace a tool binding',
85
- description: "Bind a catalog tool (or one of the agent's custom tools) to the agent, or replace an existing binding's config wholesale. The tool must exist in the catalog (see the tools catalog for its configSchema) — unknown tools are rejected with 404. Returns the saved binding with configStatus. Use update_tool_binding to merge a partial change instead. Maps to PUT /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.",
81
+ description: "Bind a catalog tool (or a custom tool) to the agent, or replace an existing binding's config wholesale (see the tools catalog for configSchema; unknown tool → 404). Returns the binding with configStatus. Use update_tool_binding for a partial merge. Maps to PUT /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.",
86
82
  kind: 'write',
87
83
  scope: 'agents:write',
88
84
  roleFloor: 'editor',
85
+ profile: 'core',
89
86
  input: {
90
87
  agentId,
91
88
  toolId,
@@ -93,7 +90,7 @@ exports.capabilityTools = [
93
90
  enabled: zod_1.z
94
91
  .boolean()
95
92
  .optional()
96
- .describe('Whether the agent may use the tool (default: keep the existing value, or true for a new binding)'),
93
+ .describe('Default: existing value, or true for a new binding'),
97
94
  },
98
95
  run: async ({ client }, { agentId, toolId, config, enabled }) => client.put(await client.orgPath(bindingPath(agentId, toolId)), {
99
96
  config,
@@ -103,7 +100,7 @@ exports.capabilityTools = [
103
100
  (0, tool_1.defineTool)({
104
101
  name: 'update_tool_binding',
105
102
  title: 'Update a tool binding (merge)',
106
- description: "Merge changes into an existing tool binding's config (fields you omit are left as they are). The binding must already exist (else 404). Returns the saved binding with configStatus. Maps to PATCH /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.",
103
+ description: "Merge changes into an existing tool binding's config (omitted fields unchanged; binding must exist). Maps to PATCH /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.",
107
104
  kind: 'write',
108
105
  scope: 'agents:write',
109
106
  roleFloor: 'editor',
@@ -111,10 +108,7 @@ exports.capabilityTools = [
111
108
  agentId,
112
109
  toolId,
113
110
  config: bindingConfig.optional(),
114
- enabled: zod_1.z
115
- .boolean()
116
- .optional()
117
- .describe('Set the enabled flag as part of the same update'),
111
+ enabled: zod_1.z.boolean().optional(),
118
112
  },
119
113
  run: async ({ client }, { agentId, toolId, config, enabled }) => client.patch(await client.orgPath(bindingPath(agentId, toolId)), {
120
114
  ...(config !== undefined ? { config } : {}),
@@ -124,21 +118,21 @@ exports.capabilityTools = [
124
118
  (0, tool_1.defineTool)({
125
119
  name: 'set_tool_binding_enabled',
126
120
  title: 'Enable or disable a tool binding',
127
- description: 'Turn a bound tool on or off for the agent without touching its config — a disabled binding keeps its configuration and any stored secrets. Returns the updated binding. Maps to POST /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}/_enable (enabled: true) or …/_disable (enabled: false).',
121
+ description: 'Turn a bound tool on or off without touching its config or secrets. Maps to POST /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}/_enable or …/_disable.',
128
122
  kind: 'write',
129
123
  scope: 'agents:write',
130
124
  roleFloor: 'editor',
131
125
  input: {
132
126
  agentId,
133
127
  toolId,
134
- enabled: zod_1.z.boolean().describe('true → _enable, false → _disable'),
128
+ enabled: zod_1.z.boolean(),
135
129
  },
136
130
  run: async ({ client }, { agentId, toolId, enabled }) => client.post(await client.orgPath(`${bindingPath(agentId, toolId)}/${enabled ? '_enable' : '_disable'}`)),
137
131
  }),
138
132
  (0, tool_1.defineTool)({
139
133
  name: 'delete_tool_binding',
140
134
  title: 'Delete a tool binding',
141
- description: 'Unbind a tool from the agent and clear any stored secrets for the binding (irreversible — the config and secrets are gone; the agent stops offering the tool). To merely pause a tool use set_tool_binding_enabled; to drop only an OAuth grant use disconnect_oauth. Returns { ok: true, deleted: toolId } (the API replies 204). Maps to DELETE /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.',
135
+ description: 'Unbind a tool and clear its stored secrets (irreversible). To pause use set_tool_binding_enabled; to drop only an OAuth grant use disconnect_oauth. Maps to DELETE /v1/orgs/{org}/agents/{agent}/tool-bindings/{toolId}.',
142
136
  kind: 'destructive',
143
137
  scope: 'agents:write',
144
138
  roleFloor: 'editor',
@@ -152,7 +146,7 @@ exports.capabilityTools = [
152
146
  (0, tool_1.defineTool)({
153
147
  name: 'get_oauth_status',
154
148
  title: 'Get OAuth connection status',
155
- description: 'Report the OAuth credential state for an OAuth-runtime tool binding (Google Calendar, Slack, …): { state: "not-connected" | "connected" | "expired" | "revoked" | "error", connectedAt?, lastError? }. Use to check whether an integration is connected or needs the operator to reconnect. Connecting requires the operator\'s browser (the console\'s Connect button, or POST …/oauth/start) and is not exposed as a tool. Maps to GET /v1/orgs/{org}/agents/{agent}/tools/{toolId}/oauth/status.',
149
+ description: "OAuth credential state for an OAuth-runtime tool binding (Google Calendar, Slack …): { state: not-connected | connected | expired | revoked | error, connectedAt?, lastError? }. Connecting needs the operator's browser (console Connect button) and is not a tool. Maps to GET /v1/orgs/{org}/agents/{agent}/tools/{toolId}/oauth/status.",
156
150
  kind: 'read',
157
151
  scope: 'agents:read',
158
152
  roleFloor: 'viewer',
@@ -162,7 +156,7 @@ exports.capabilityTools = [
162
156
  (0, tool_1.defineTool)({
163
157
  name: 'disconnect_oauth',
164
158
  title: 'Disconnect an OAuth grant',
165
- description: 'Revoke the OAuth grant at the provider and delete the stored credential for an OAuth-runtime tool binding. The agent immediately loses access to the connected account (e.g. the calendar) until an operator reconnects in a browser; the binding itself stays so reconnecting is one click. Confirm with the user before running. Maps to POST /v1/orgs/{org}/agents/{agent}/tools/{toolId}/oauth/disconnect.',
159
+ description: 'Revoke the OAuth grant at the provider and delete the stored credential; the agent loses access until an operator reconnects in a browser. The binding stays. Maps to POST /v1/orgs/{org}/agents/{agent}/tools/{toolId}/oauth/disconnect.',
166
160
  kind: 'destructive',
167
161
  scope: 'agents:write',
168
162
  roleFloor: 'editor',
@@ -173,49 +167,48 @@ exports.capabilityTools = [
173
167
  (0, tool_1.defineTool)({
174
168
  name: 'get_outreach_config',
175
169
  title: 'Get outreach config',
176
- description: "Read the agent's outreach configuration: greetingTemplateId (the message template used as the first message when the agent initiates a conversation) and followUps (the single automatic nudge for non-responders: enabled, steps[1], quietHours). Returns {} when nothing is configured (outreach then falls back to an LLM-composed opener). Maps to GET /v1/orgs/{org}/agents/{agent}/outreach.",
170
+ description: "Read the agent's outreach config: greetingTemplateId (first message when the agent initiates) and followUps (single automatic nudge for non-responders: enabled, steps[1], quietHours). {} when unset (LLM-composed opener). Maps to GET /v1/orgs/{org}/agents/{agent}/outreach.",
177
171
  kind: 'read',
178
172
  scope: 'agents:read',
179
173
  roleFloor: 'viewer',
174
+ profile: 'core',
180
175
  input: { agentId },
181
176
  run: async ({ client }, { agentId }) => client.get(await client.orgPath(outreachPath(agentId))),
182
177
  }),
183
178
  (0, tool_1.defineTool)({
184
179
  name: 'replace_outreach_config',
185
180
  title: 'Replace outreach config',
186
- description: "Replace the agent's whole outreach configuration (PUT semantics: fields you omit are cleared — read it first with get_outreach_config). greetingTemplateId must be an existing message template on the agent (else 404); followUps.steps holds exactly one step (more → 422); pass {} to clear everything. Enabling follow-ups only enrolls people contacted afterwards — never existing contacts. Returns the saved config. Maps to PUT /v1/orgs/{org}/agents/{agent}/outreach.",
181
+ description: 'Replace the whole outreach config (omitted fields are cleared — read first with get_outreach_config). greetingTemplateId must exist (404); followUps.steps holds exactly one step (422); {} clears everything. Enabling follow-ups only enrolls people contacted afterwards. Maps to PUT /v1/orgs/{org}/agents/{agent}/outreach.',
187
182
  kind: 'write',
188
183
  scope: 'agents:write',
189
184
  roleFloor: 'editor',
185
+ profile: 'core',
190
186
  input: {
191
187
  agentId,
192
188
  greetingTemplateId: zod_1.z
193
189
  .string()
194
190
  .optional()
195
- .describe("Id of one of the agent's message templates to use as the outreach greeting; omit to fall back to an LLM-composed opener"),
191
+ .describe('Message template id for the greeting; omit for an LLM-composed opener'),
196
192
  followUps: zod_1.z
197
193
  .object({
198
- enabled: zod_1.z.boolean().describe('Master switch for automatic follow-up sending'),
199
- steps: zod_1.z
200
- .array(followUpStep)
201
- .max(1)
202
- .describe('Exactly one follow-up step (or empty)'),
194
+ enabled: zod_1.z.boolean(),
195
+ steps: zod_1.z.array(followUpStep).max(1),
203
196
  quietHours: zod_1.z
204
197
  .object({
205
- startHour: zod_1.z.number().int().min(0).max(23).describe('0–23, inclusive'),
198
+ startHour: zod_1.z.number().int().min(0).max(23),
206
199
  endHour: zod_1.z
207
200
  .number()
208
201
  .int()
209
202
  .min(0)
210
203
  .max(23)
211
- .describe('0–23, exclusive; may wrap midnight'),
212
- timezone: zod_1.z.string().min(1).describe('IANA zone, e.g. "America/Chicago"'),
204
+ .describe('Exclusive; may wrap midnight'),
205
+ timezone: zod_1.z.string().min(1).describe('IANA zone'),
213
206
  })
214
207
  .optional()
215
- .describe('Suppress the automatic send during these local hours'),
208
+ .describe('Suppress sends during these local hours'),
216
209
  })
217
210
  .optional()
218
- .describe('Automatic follow-up (nudge) config; omit to clear follow-ups'),
211
+ .describe('Automatic follow-up config; omit to clear'),
219
212
  },
220
213
  run: async ({ client }, { agentId, greetingTemplateId, followUps }) => client.put(await client.orgPath(outreachPath(agentId)), {
221
214
  ...(greetingTemplateId !== undefined ? { greetingTemplateId } : {}),
@@ -225,15 +218,13 @@ exports.capabilityTools = [
225
218
  (0, tool_1.defineTool)({
226
219
  name: 'preview_outreach',
227
220
  title: 'Preview outreach greeting',
228
- description: 'Render the configured outreach greeting for a specific person and return what would be sent: { greeting: { renderedText, missingSlots[], blocked } }. Use to check slot substitution before sending outreach. Returns 404 when no greeting template is configured. Maps to GET /v1/orgs/{org}/agents/{agent}/outreach/preview?personId=….',
221
+ description: 'Render the configured outreach greeting for a person: { greeting: { renderedText, missingSlots[], blocked } }. Sends nothing; 404 when no greeting template is configured. Maps to GET /v1/orgs/{org}/agents/{agent}/outreach/preview?personId=….',
229
222
  kind: 'read',
230
223
  scope: 'agents:read',
231
224
  roleFloor: 'viewer',
232
225
  input: {
233
226
  agentId,
234
- personId: zod_1.z
235
- .string()
236
- .describe('Id of a Person on this agent to render the greeting against'),
227
+ personId: zod_1.z.string(),
237
228
  },
238
229
  run: async ({ client }, { agentId, personId }) => client.get(await client.orgPath(`${outreachPath(agentId)}/preview`), { personId }),
239
230
  }),
@@ -241,7 +232,7 @@ exports.capabilityTools = [
241
232
  (0, tool_1.defineTool)({
242
233
  name: 'list_outreach_links',
243
234
  title: 'List outreach links',
244
- description: "List the agent's outreach links — shareable public phone-entry pages that let a prospect start an RCS conversation with the agent. Each has { id, code, url, label, maxUses, usesRemaining, redemptionCount, expiresAt, disabled, createdAt }. Maps to GET /v1/orgs/{org}/agents/{agent}/outreach-links.",
235
+ description: "List the agent's outreach links — shareable public phone-entry pages that start an RCS conversation: { id, code, url, label, maxUses, usesRemaining, redemptionCount, expiresAt, disabled, createdAt }. Maps to GET /v1/orgs/{org}/agents/{agent}/outreach-links.",
245
236
  kind: 'read',
246
237
  scope: 'agents:read',
247
238
  roleFloor: 'viewer',
@@ -251,27 +242,19 @@ exports.capabilityTools = [
251
242
  (0, tool_1.defineTool)({
252
243
  name: 'create_outreach_link',
253
244
  title: 'Create an outreach link',
254
- description: "Mint a new use-limited, time-limited outreach link against one of the agent's RCS channel bindings (find the binding id with the channel tools). Returns the link including its shareable url. Validation failures return 400 with a human-readable error. Maps to POST /v1/orgs/{org}/agents/{agent}/outreach-links.",
245
+ description: "Mint a use- and time-limited outreach link against one of the agent's RCS channel bindings (see list_channels). Returns the link incl. its shareable url. Maps to POST /v1/orgs/{org}/agents/{agent}/outreach-links.",
255
246
  kind: 'write',
256
247
  scope: 'agents:write',
257
248
  roleFloor: 'editor',
258
249
  input: {
259
250
  agentId,
260
- bindingId: zod_1.z
261
- .string()
262
- .describe('Id of an RCS channel binding on this agent (required)'),
263
- label: zod_1.z.string().optional().describe('Operator-facing note, e.g. "Trade-show QR"'),
264
- maxUses: zod_1.z
265
- .number()
266
- .int()
267
- .min(1)
268
- .max(500)
269
- .optional()
270
- .describe('Redemption cap, 1–500 (default 25)'),
251
+ bindingId: zod_1.z.string().describe('RCS channel binding id'),
252
+ label: zod_1.z.string().optional().describe('Operator note, e.g. "Trade-show QR"'),
253
+ maxUses: zod_1.z.number().int().min(1).max(500).optional().describe('Default 25'),
271
254
  expiresAt: zod_1.z
272
255
  .string()
273
256
  .optional()
274
- .describe('ISO-8601 expiry, at most 30 days out (default 14 days from now)'),
257
+ .describe('ISO-8601, at most 30 days out (default 14 days)'),
275
258
  },
276
259
  run: async ({ client }, { agentId, bindingId, label, maxUses, expiresAt }) => client.post(await client.orgPath(outreachLinksPath(agentId)), {
277
260
  bindingId,
@@ -283,27 +266,27 @@ exports.capabilityTools = [
283
266
  (0, tool_1.defineTool)({
284
267
  name: 'update_outreach_link',
285
268
  title: 'Pause or resume an outreach link',
286
- description: "Set an outreach link's disabled flag — pause (disabled: true) or resume (false) without losing its remaining uses. This is the only mutable field. Returns the updated link. Maps to PATCH /v1/orgs/{org}/agents/{agent}/outreach-links/{id}.",
269
+ description: 'Pause (disabled: true) or resume (false) an outreach link without losing remaining uses — the only mutable field. Maps to PATCH /v1/orgs/{org}/agents/{agent}/outreach-links/{id}.',
287
270
  kind: 'write',
288
271
  scope: 'agents:write',
289
272
  roleFloor: 'editor',
290
273
  input: {
291
274
  agentId,
292
- linkId: zod_1.z.string().describe('Outreach link id (from list_outreach_links)'),
293
- disabled: zod_1.z.boolean().describe('true to pause the link, false to resume it'),
275
+ linkId: zod_1.z.string(),
276
+ disabled: zod_1.z.boolean(),
294
277
  },
295
278
  run: async ({ client }, { agentId, linkId, disabled }) => client.patch(await client.orgPath(`${outreachLinksPath(agentId)}/${encodeURIComponent(linkId)}`), { disabled }),
296
279
  }),
297
280
  (0, tool_1.defineTool)({
298
281
  name: 'delete_outreach_link',
299
282
  title: 'Delete an outreach link',
300
- description: 'Permanently remove an outreach link — anyone holding the URL can no longer use it and its redemption count is lost. Prefer update_outreach_link (disabled: true) to pause instead. Returns { ok: true, deleted: linkId } (the API replies 204). Maps to DELETE /v1/orgs/{org}/agents/{agent}/outreach-links/{id}.',
283
+ description: 'Permanently remove an outreach link (URL stops working; redemption count lost). Prefer update_outreach_link to pause. Maps to DELETE /v1/orgs/{org}/agents/{agent}/outreach-links/{id}.',
301
284
  kind: 'destructive',
302
285
  scope: 'agents:write',
303
286
  roleFloor: 'editor',
304
287
  input: {
305
288
  agentId,
306
- linkId: zod_1.z.string().describe('Outreach link id (from list_outreach_links)'),
289
+ linkId: zod_1.z.string(),
307
290
  },
308
291
  run: async ({ client }, { agentId, linkId }) => {
309
292
  await client.delete(await client.orgPath(`${outreachLinksPath(agentId)}/${encodeURIComponent(linkId)}`));
@@ -314,7 +297,7 @@ exports.capabilityTools = [
314
297
  (0, tool_1.defineTool)({
315
298
  name: 'list_knowledge_documents',
316
299
  title: 'List knowledge documents',
317
- description: "List the documents in the agent's knowledge base (metadata only: id, fileName, mimeType, title, status, uploadedAt, createdAt, updatedAt — never the extracted text). Use to see what the agent can draw on for answers. Uploading and deleting documents is console-only today. Maps to GET /v1/orgs/{org}/agents/{agent}/knowledge/documents.",
300
+ description: "List the agent's knowledge-base documents (metadata only: id, fileName, mimeType, title, status, timestamps — never the extracted text). Upload/delete is console-only. Maps to GET /v1/orgs/{org}/agents/{agent}/knowledge/documents.",
318
301
  kind: 'read',
319
302
  scope: 'knowledge:read',
320
303
  roleFloor: 'viewer',
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/tools/capabilities.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAqC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,OAAO,GAAG,OAAC;KACd,MAAM,EAAE;KACR,QAAQ,CAAC,wDAAwD,CAAC,CAAC;AACtE,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,EAAE;KACR,QAAQ,CACP,2JAA2J,CAC5J,CAAC;AAEJ,MAAM,YAAY,GAAG,CA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QAC1O,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,gBAAgB;QACvB,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,EAAE,OAAO,EAAE;QAClB,GAAG,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CACrC,MAAM,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH,CAAC"}
@@ -42,7 +42,7 @@ const PROVIDERS = [
42
42
  ];
43
43
  const channelName = zod_1.z
44
44
  .enum(CHANNEL_NAMES)
45
- .describe('Public channel name. rcs | appleMessages (Apple Messages for Business) | whatsapp | sms | webchat | viber | instagram | slack | poe.');
45
+ .describe('Channel (appleMessages = Apple Messages for Business)');
46
46
  const deliverySchema = zod_1.z
47
47
  .object({
48
48
  minMessageDelayMs: zod_1.z
@@ -51,27 +51,23 @@ const deliverySchema = zod_1.z
51
51
  .min(250)
52
52
  .max(3000)
53
53
  .optional()
54
- .describe('Minimum gap in ms (250–3000) between consecutive agent messages to one user on this channel. Paces multi-bubble replies and keeps ordering on providers that do not guarantee it. Omit for no pacing.'),
54
+ .describe('Minimum gap between consecutive agent messages to one user (paces multi-bubble replies, keeps ordering). Omit for no pacing.'),
55
55
  })
56
- .describe('Delivery pacing (any binding mode).');
56
+ .describe('Delivery pacing (any binding mode)');
57
57
  const complianceSchema = zod_1.z
58
58
  .object({
59
59
  enabled: zod_1.z
60
60
  .boolean()
61
- .describe('Turn carrier compliance on/off (default off). When on, Anychat sends a one-time disclaimer per messaging relationship and deterministically handles STOP/UNSUBSCRIBE/CANCEL/END/QUIT (opt-out), HELP (brand contact reply from identity) and START (re-subscribe). Leave off if the provider already auto-handles opt-out keywords (e.g. Twilio Advanced Opt-Out) to avoid double confirmations.'),
61
+ .describe('Default off. On: one-time disclaimer per messaging relationship + deterministic STOP/UNSUBSCRIBE/CANCEL/END/QUIT (opt-out), HELP and START handling. Leave off if the provider already handles opt-out keywords (e.g. Twilio Advanced Opt-Out).'),
62
62
  disclaimerText: zod_1.z
63
63
  .string()
64
64
  .max(1000)
65
65
  .optional()
66
- .describe('Override for the conversation-start disclaimer (max 1000 chars). Omit for the stock operator text.'),
66
+ .describe('Override for the conversation-start disclaimer; omit for stock text'),
67
67
  })
68
- .describe('Carrier compliance block — RCS and SMS bindings only.');
69
- const agentIdField = zod_1.z
70
- .string()
71
- .describe('Agent id (URL-safe slug, e.g. agent-acme-bot-pj7r2qx4).');
72
- const bindingIdField = zod_1.z
73
- .string()
74
- .describe('Channel binding id, as returned by list_channels / get_channel.');
68
+ .describe('Carrier compliance — RCS and SMS bindings only');
69
+ const agentIdField = zod_1.z.string();
70
+ const bindingIdField = zod_1.z.string().describe('See list_channels');
75
71
  function bindingPath(agentId, bindingId) {
76
72
  const base = `/agents/${encodeURIComponent(agentId)}/channels`;
77
73
  return bindingId ? `${base}/${encodeURIComponent(bindingId)}` : base;
@@ -80,37 +76,40 @@ exports.channelTools = [
80
76
  (0, tool_1.defineTool)({
81
77
  name: 'list_channels',
82
78
  title: 'List channel bindings',
83
- description: 'List the channel bindings of an agent — one per connected channel (rcs, appleMessages, whatsapp, sms, webchat, …) with mode (managed = Anychat provisions; unmanaged = operator-supplied provider account), status (Requested | Provisioning | ActionRequired | Active | Failed | Disabled), statusDetail, lifecycle events, and delivery/compliance settings. Use it to see what an agent is reachable on and to follow provisioning progress; credentials are never returned. Maps to GET /v1/orgs/{org}/agents/{agent}/channels (returns { data: ChannelBinding[] }, not paginated).',
79
+ description: 'List the channel bindings of an agent — one per connected channel (rcs, appleMessages, whatsapp, sms, webchat …) with mode (managed = Anychat provisions; unmanaged = operator-supplied provider account), status (Requested | Provisioning | ActionRequired | Active | Failed | Disabled), statusDetail, lifecycle events, delivery/compliance settings. Credentials are never returned. Maps to GET /v1/orgs/{org}/agents/{agent}/channels.',
84
80
  kind: 'read',
85
81
  scope: 'agents:read',
86
82
  roleFloor: 'viewer',
83
+ profile: 'core',
87
84
  input: { agentId: agentIdField },
88
85
  run: async ({ client }, { agentId }) => client.get(await client.orgPath(bindingPath(agentId))),
89
86
  }),
90
87
  (0, tool_1.defineTool)({
91
88
  name: 'get_channel',
92
89
  title: 'Get a channel binding',
93
- description: 'Fetch one channel binding by id, including its provisioning status, statusDetail (what is blocking an ActionRequired/Failed binding), oldest-first lifecycle events, routingId (display-only provider id), the business inputs filed with a managed request, and delivery/compliance settings. Poll this to follow a managed provisioning request. Never returns credentials. Maps to GET /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
90
+ description: 'Fetch one channel binding: status, statusDetail (what blocks an ActionRequired/Failed binding), lifecycle events, routingId, the business inputs of a managed request, delivery/compliance settings. Poll it to follow provisioning. Never returns credentials. Maps to GET /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
94
91
  kind: 'read',
95
92
  scope: 'agents:read',
96
93
  roleFloor: 'viewer',
94
+ profile: 'core',
97
95
  input: { agentId: agentIdField, bindingId: bindingIdField },
98
96
  run: async ({ client }, { agentId, bindingId }) => client.get(await client.orgPath(bindingPath(agentId, bindingId))),
99
97
  }),
100
98
  (0, tool_1.defineTool)({
101
99
  name: 'request_channel',
102
100
  title: 'Request a managed channel',
103
- description: 'File a MANAGED channel request: name the channel and supply the business inputs its setup form asks for (brand name, banner, business category, 10DLC registration info, …; the form comes from the `channels` catalog, GET /v1/catalogs/channels/{channel}). Anychat picks the provider and runs the carrier/Apple/Meta provisioning workflow — a request that humans act on and that takes days to weeks for rich channels, so confirm with the operator before calling. Returns 201 with status "Requested" (or "Active" for instantly-provisioned channels); follow progress with get_channel. 409 if the channel is already bound; 400 if the channel has no managed mode (slack, viber, poe are unmanaged-only — use bind_channel). Never pass credentials here. Maps to POST /v1/orgs/{org}/agents/{agent}/channels with mode "managed".',
101
+ description: 'File a MANAGED channel request: name the channel and supply the business inputs its setup form asks for (brand name, banner, business category, 10DLC info …; form = get_catalog_item kind "channels"). Anychat picks the provider and runs provisioning — humans act on it, days to weeks for rich channels, so confirm with the operator first. Returns status "Requested" (or "Active" when instant); follow with get_channel. 409 if already bound; 400 if the channel has no managed mode (slack, viber, poe → bind_channel). Never pass credentials. Maps to POST /v1/orgs/{org}/agents/{agent}/channels with mode "managed".',
104
102
  kind: 'destructive',
105
103
  scope: 'agents:write',
106
104
  roleFloor: 'editor',
105
+ profile: 'core',
107
106
  input: {
108
107
  agentId: agentIdField,
109
108
  channel: channelName,
110
109
  inputs: zod_1.z
111
110
  .record(zod_1.z.string(), zod_1.z.any())
112
111
  .optional()
113
- .describe('Business/identity fields per the channel\'s managed setup form (e.g. { "brandName": "Acme Health", "bannerUrl": "https://…", "businessCategory": "Health & Wellness" }). Keys and required flags come from the `channels` catalog; several are seeded from the agent identity if omitted.'),
112
+ .describe('Fields per the channel\'s managed setup form, e.g. { "brandName": "Acme Health", "businessCategory": "Health & Wellness" }; several seed from the agent identity if omitted'),
114
113
  },
115
114
  run: async ({ client }, { agentId, channel, inputs }) => client.post(await client.orgPath(bindingPath(agentId)), {
116
115
  channel,
@@ -121,19 +120,18 @@ exports.channelTools = [
121
120
  (0, tool_1.defineTool)({
122
121
  name: 'bind_channel',
123
122
  title: 'Bind an unmanaged channel (bring your own provider)',
124
- description: 'Create an UNMANAGED channel binding using the operator\'s own provider account: name the channel, the provider serving it, and the provider\'s credential form. `auth` is WRITE-ONLY — accepted here and on update_channel for rotation, never returned by any read. Provider per channel: rcs → googleRbm | webexRcs; appleMessages → webexAmb; whatsapp → whatsappCloud; sms → twilio; slack → slack; viber → viber; poe → poe (credential field keys and required flags come from the `channels` catalog, GET /v1/catalogs/channels/{channel}). Unmanaged bindings go straight to status "Active". 409 if the channel is already bound; 400/422 if provider or required auth fields are wrong. Maps to POST /v1/orgs/{org}/agents/{agent}/channels with mode "unmanaged".',
123
+ description: 'Create an UNMANAGED channel binding with the operator\'s own provider account. `auth` is WRITE-ONLY (never returned). Provider per channel: rcs → googleRbm | webexRcs; appleMessages → webexAmb; whatsapp → whatsappCloud; sms → twilio; slack, viber, poe → same-named (credential keys from get_catalog_item kind "channels"). Goes straight to "Active". 409 if already bound; 400/422 on bad provider/auth. Maps to POST /v1/orgs/{org}/agents/{agent}/channels with mode "unmanaged".',
125
124
  kind: 'write',
126
125
  scope: 'agents:write',
127
126
  roleFloor: 'editor',
127
+ profile: 'core',
128
128
  input: {
129
129
  agentId: agentIdField,
130
130
  channel: channelName,
131
- provider: zod_1.z
132
- .enum(PROVIDERS)
133
- .describe("Provider whose account you are bringing. Must be one of the channel's unmanaged providers (e.g. twilio for sms, whatsappCloud for whatsapp, googleRbm or webexRcs for rcs, webexAmb for appleMessages)."),
131
+ provider: zod_1.z.enum(PROVIDERS).describe("One of the channel's unmanaged providers"),
134
132
  auth: zod_1.z
135
133
  .record(zod_1.z.string(), zod_1.z.any())
136
- .describe('Provider credentials, WRITE-ONLY (never echoed back). Keys per the provider\'s credential form, e.g. Twilio: { "accountSid": "AC…", "authToken": "…", "messagingServiceSid": "MG…", "phoneNumber": "+1555…" }. Treat as secrets.'),
134
+ .describe('Provider credentials, WRITE-ONLY. Keys per the provider\'s credential form, e.g. Twilio: { "accountSid", "authToken", "messagingServiceSid", "phoneNumber" }.'),
137
135
  },
138
136
  run: async ({ client }, { agentId, channel, provider, auth }) => client.post(await client.orgPath(bindingPath(agentId)), {
139
137
  channel,
@@ -145,7 +143,7 @@ exports.channelTools = [
145
143
  (0, tool_1.defineTool)({
146
144
  name: 'update_channel',
147
145
  title: 'Update a channel binding',
148
- description: 'Update settings on a channel binding: `delivery` (message pacing, any mode), `compliance` (carrier compliance, RCS/SMS only), and/or `auth` (rotate credentials — unmanaged bindings only; write-only, never returned). Supply at least one field; pass null for delivery or compliance to clear that block. Out-of-range pacing → 400; compliance on a non-carrier channel → 400; auth on a managed binding → 400. Returns the updated binding. Maps to PATCH /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
146
+ description: 'Update a channel binding: `delivery` (pacing, any mode), `compliance` (RCS/SMS only), and/or `auth` (rotate credentials, unmanaged only, write-only). At least one field; null clears delivery/compliance. Maps to PATCH /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
149
147
  kind: 'write',
150
148
  scope: 'agents:write',
151
149
  roleFloor: 'editor',
@@ -155,15 +153,15 @@ exports.channelTools = [
155
153
  delivery: deliverySchema
156
154
  .nullable()
157
155
  .optional()
158
- .describe('Delivery pacing settings; null clears pacing; omit to leave unchanged.'),
156
+ .describe('null clears; omit to leave unchanged'),
159
157
  compliance: complianceSchema
160
158
  .nullable()
161
159
  .optional()
162
- .describe('Carrier compliance settings (rcs/sms only); null clears the block; omit to leave unchanged.'),
160
+ .describe('null clears; omit to leave unchanged'),
163
161
  auth: zod_1.z
164
162
  .record(zod_1.z.string(), zod_1.z.any())
165
163
  .optional()
166
- .describe("Replacement provider credentials for an UNMANAGED binding (rotation). WRITE-ONLY — never returned. Keys per the provider's credential form. Omit to leave unchanged."),
164
+ .describe("Replacement credentials (unmanaged only), WRITE-ONLY, keys per the provider's form"),
167
165
  },
168
166
  run: async ({ client }, { agentId, bindingId, delivery, compliance, auth }) => client.patch(await client.orgPath(bindingPath(agentId, bindingId)), {
169
167
  ...(delivery !== undefined ? { delivery } : {}),
@@ -174,7 +172,7 @@ exports.channelTools = [
174
172
  (0, tool_1.defineTool)({
175
173
  name: 'disable_channel',
176
174
  title: 'Disable a channel binding',
177
- description: 'Temporarily take a channel offline for this agent: the binding moves to status "Disabled" and stops carrying traffic, but is kept (credentials, provisioning, carrier verification intact) so enable_channel can restore it in one step. Prefer this over delete_channel for a pause. Returns the updated binding. Maps to POST /v1/orgs/{org}/agents/{agent}/channels/{bindingId}/_disable.',
175
+ description: 'Take a channel offline (status "Disabled", stops carrying traffic) while keeping credentials, provisioning and carrier verification so enable_channel restores it. Prefer over delete_channel for a pause. Maps to POST /v1/orgs/{org}/agents/{agent}/channels/{bindingId}/_disable.',
178
176
  kind: 'write',
179
177
  scope: 'agents:write',
180
178
  roleFloor: 'editor',
@@ -184,7 +182,7 @@ exports.channelTools = [
184
182
  (0, tool_1.defineTool)({
185
183
  name: 'enable_channel',
186
184
  title: 'Enable a channel binding',
187
- description: 'Re-enable a previously disabled channel binding so it carries traffic again (status back to "Active"). Returns the updated binding. Maps to POST /v1/orgs/{org}/agents/{agent}/channels/{bindingId}/_enable.',
185
+ description: 'Re-enable a disabled channel binding (status back to "Active"). Maps to POST /v1/orgs/{org}/agents/{agent}/channels/{bindingId}/_enable.',
188
186
  kind: 'write',
189
187
  scope: 'agents:write',
190
188
  roleFloor: 'editor',
@@ -194,7 +192,7 @@ exports.channelTools = [
194
192
  (0, tool_1.defineTool)({
195
193
  name: 'delete_channel',
196
194
  title: 'Delete a channel binding',
197
- description: 'Remove a channel binding from the agent — cancels a pending managed request or releases a live channel (the agent stops being reachable there; unmanaged credentials are discarded; managed RCS is archived rather than deleted so a later re-request restores the same carrier-verified agent). Irreversible for most channels — use disable_channel for a pause. Returns the removed binding. Maps to DELETE /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
195
+ description: 'Remove a channel binding — cancels a pending managed request or releases a live channel (unmanaged credentials discarded; managed RCS is archived so a re-request restores the same carrier-verified agent). Irreversible for most channels — use disable_channel for a pause. Maps to DELETE /v1/orgs/{org}/agents/{agent}/channels/{bindingId}.',
198
196
  kind: 'destructive',
199
197
  scope: 'agents:write',
200
198
  roleFloor: 'editor',