posterly-mcp-server 0.31.0 → 0.32.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.
Files changed (47) hide show
  1. package/README.md +5 -2
  2. package/dist/index.js +96 -75
  3. package/dist/lib/api-client.d.ts +46 -2
  4. package/dist/lib/api-client.js +14 -0
  5. package/dist/lib/tool-annotations.d.ts +2 -0
  6. package/dist/lib/tool-annotations.js +37 -0
  7. package/dist/lib/version.d.ts +1 -1
  8. package/dist/lib/version.js +1 -1
  9. package/dist/tools/create-connect-session.d.ts +2 -2
  10. package/dist/tools/create-post.d.ts +42 -42
  11. package/dist/tools/create-post.js +18 -10
  12. package/dist/tools/create-posts-batch.d.ts +18 -18
  13. package/dist/tools/generate-image.d.ts +4 -4
  14. package/dist/tools/generate-image.js +3 -3
  15. package/dist/tools/generate-video.d.ts +3 -3
  16. package/dist/tools/generate-video.js +2 -2
  17. package/dist/tools/get-connect-link.d.ts +2 -2
  18. package/dist/tools/get-credits.d.ts +8 -0
  19. package/dist/tools/get-credits.js +33 -0
  20. package/dist/tools/get-platform-schema.d.ts +2 -2
  21. package/dist/tools/get-post-analytics.js +65 -3
  22. package/dist/tools/get-updates.d.ts +24 -0
  23. package/dist/tools/get-updates.js +29 -0
  24. package/dist/tools/list-posts.d.ts +2 -2
  25. package/dist/tools/submit-product-feedback.d.ts +4 -4
  26. package/dist/tools/trigger-platform-helper.d.ts +2 -2
  27. package/dist/tools/trigger-platform-helper.js +1 -1
  28. package/dist/tools/update-post.d.ts +41 -16
  29. package/dist/tools/update-post.js +16 -8
  30. package/dist/tools/validate-post.d.ts +24 -24
  31. package/package.json +4 -2
  32. package/scripts/test-payload-builders.mjs +87 -0
  33. package/scripts/test-tool-annotations.mjs +32 -0
  34. package/server.json +2 -2
  35. package/src/index.ts +108 -0
  36. package/src/lib/api-client.ts +53 -2
  37. package/src/lib/tool-annotations.ts +47 -0
  38. package/src/lib/version.ts +1 -1
  39. package/src/tools/create-post.ts +20 -10
  40. package/src/tools/generate-image.ts +4 -4
  41. package/src/tools/generate-video.ts +2 -2
  42. package/src/tools/get-credits.ts +38 -0
  43. package/src/tools/get-post-analytics.ts +66 -3
  44. package/src/tools/get-updates.ts +41 -0
  45. package/src/tools/trigger-platform-helper.ts +1 -1
  46. package/src/tools/update-post.ts +16 -8
  47. package/tool-annotations.json +203 -0
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
4
  import { PosterlyClient } from './lib/api-client.js';
5
5
  import { POSTERLY_MCP_VERSION } from './lib/version.js';
6
+ import { getToolAnnotations } from './lib/tool-annotations.js';
6
7
  import { getAgentSignupInfoTool } from './tools/get-agent-signup-info.js';
7
8
  import { getSignupSessionTool } from './tools/get-signup-session.js';
8
9
  import { startSignupTool } from './tools/start-signup.js';
@@ -53,6 +54,7 @@ import { listGoogleBusinessMediaTool } from './tools/list-google-business-media.
53
54
  import { addGoogleBusinessMediaTool } from './tools/add-google-business-media.js';
54
55
  import { deleteGoogleBusinessMediaTool } from './tools/delete-google-business-media.js';
55
56
  import { listActivityTool } from './tools/list-activity.js';
57
+ import { getUpdatesTool } from './tools/get-updates.js';
56
58
  import { listWebhooksTool } from './tools/list-webhooks.js';
57
59
  import { createWebhookTool } from './tools/create-webhook.js';
58
60
  import { updateWebhookTool } from './tools/update-webhook.js';
@@ -69,6 +71,7 @@ import { createConnectSessionTool } from './tools/create-connect-session.js';
69
71
  import { getConnectSessionTool } from './tools/get-connect-session.js';
70
72
  import { createApiKeyTool } from './tools/create-api-key.js';
71
73
  import { deleteApiKeyTool } from './tools/delete-api-key.js';
74
+ import { getCreditsTool } from './tools/get-credits.js';
72
75
  import { getSubscriptionTool } from './tools/get-subscription.js';
73
76
  import { cancelSubscriptionTool } from './tools/cancel-subscription.js';
74
77
  import { pauseSubscriptionTool } from './tools/pause-subscription.js';
@@ -84,7 +87,7 @@ const server = new McpServer({
84
87
  });
85
88
  const client = new PosterlyClient();
86
89
  // Register tools
87
- server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, getAgentSignupInfoTool.inputSchema.shape, async () => {
90
+ server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, getAgentSignupInfoTool.inputSchema.shape, getToolAnnotations(getAgentSignupInfoTool.name), async () => {
88
91
  try {
89
92
  const text = await getAgentSignupInfoTool.execute(client);
90
93
  return { content: [{ type: 'text', text }] };
@@ -93,7 +96,7 @@ server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, get
93
96
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
94
97
  }
95
98
  });
96
- server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.inputSchema.shape, async (input) => {
99
+ server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.inputSchema.shape, getToolAnnotations(startSignupTool.name), async (input) => {
97
100
  try {
98
101
  const text = await startSignupTool.execute(client, input);
99
102
  return { content: [{ type: 'text', text }] };
@@ -102,7 +105,7 @@ server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.i
102
105
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
103
106
  }
104
107
  });
105
- server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSignupSessionTool.inputSchema.shape, async (input) => {
108
+ server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSignupSessionTool.inputSchema.shape, getToolAnnotations(getSignupSessionTool.name), async (input) => {
106
109
  try {
107
110
  const text = await getSignupSessionTool.execute(client, input);
108
111
  return { content: [{ type: 'text', text }] };
@@ -111,7 +114,7 @@ server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSign
111
114
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
112
115
  }
113
116
  });
114
- server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusTool.inputSchema.shape, async () => {
117
+ server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusTool.inputSchema.shape, getToolAnnotations(getMcpStatusTool.name), async () => {
115
118
  try {
116
119
  const text = await getMcpStatusTool.execute(client);
117
120
  return { content: [{ type: 'text', text }] };
@@ -120,7 +123,7 @@ server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusToo
120
123
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
121
124
  }
122
125
  });
123
- server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shape, async () => {
126
+ server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shape, getToolAnnotations(whoamiTool.name), async () => {
124
127
  try {
125
128
  const text = await whoamiTool.execute(client);
126
129
  return { content: [{ type: 'text', text }] };
@@ -129,7 +132,7 @@ server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shap
129
132
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
130
133
  }
131
134
  });
132
- server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsTool.inputSchema.shape, async (input) => {
135
+ server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsTool.inputSchema.shape, getToolAnnotations(listAccountsTool.name), async (input) => {
133
136
  try {
134
137
  const text = await listAccountsTool.execute(client, input);
135
138
  return { content: [{ type: 'text', text }] };
@@ -138,7 +141,7 @@ server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsToo
138
141
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
139
142
  }
140
143
  });
141
- server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disconnectAccountTool.inputSchema.shape, async (input) => {
144
+ server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disconnectAccountTool.inputSchema.shape, getToolAnnotations(disconnectAccountTool.name), async (input) => {
142
145
  try {
143
146
  const text = await disconnectAccountTool.execute(client, input);
144
147
  return { content: [{ type: 'text', text }] };
@@ -147,7 +150,7 @@ server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disco
147
150
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
148
151
  }
149
152
  });
150
- server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectLinkTool.inputSchema.shape, async (input) => {
153
+ server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectLinkTool.inputSchema.shape, getToolAnnotations(getConnectLinkTool.name), async (input) => {
151
154
  try {
152
155
  const text = await getConnectLinkTool.execute(client, input);
153
156
  return { content: [{ type: 'text', text }] };
@@ -156,7 +159,7 @@ server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectL
156
159
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
157
160
  }
158
161
  });
159
- server.tool(createConnectSessionTool.name, createConnectSessionTool.description, createConnectSessionTool.inputSchema.shape, async (input) => {
162
+ server.tool(createConnectSessionTool.name, createConnectSessionTool.description, createConnectSessionTool.inputSchema.shape, getToolAnnotations(createConnectSessionTool.name), async (input) => {
160
163
  try {
161
164
  const text = await createConnectSessionTool.execute(client, input);
162
165
  return { content: [{ type: 'text', text }] };
@@ -165,7 +168,7 @@ server.tool(createConnectSessionTool.name, createConnectSessionTool.description,
165
168
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
166
169
  }
167
170
  });
168
- server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getConnectSessionTool.inputSchema.shape, async (input) => {
171
+ server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getConnectSessionTool.inputSchema.shape, getToolAnnotations(getConnectSessionTool.name), async (input) => {
169
172
  try {
170
173
  const text = await getConnectSessionTool.execute(client, input);
171
174
  return { content: [{ type: 'text', text }] };
@@ -174,7 +177,7 @@ server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getCo
174
177
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
175
178
  }
176
179
  });
177
- server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyTool.inputSchema.shape, async (input) => {
180
+ server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyTool.inputSchema.shape, getToolAnnotations(createApiKeyTool.name), async (input) => {
178
181
  try {
179
182
  const text = await createApiKeyTool.execute(client, input);
180
183
  return { content: [{ type: 'text', text }] };
@@ -183,7 +186,7 @@ server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyToo
183
186
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
184
187
  }
185
188
  });
186
- server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyTool.inputSchema.shape, async (input) => {
189
+ server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyTool.inputSchema.shape, getToolAnnotations(deleteApiKeyTool.name), async (input) => {
187
190
  try {
188
191
  const text = await deleteApiKeyTool.execute(client, input);
189
192
  return { content: [{ type: 'text', text }] };
@@ -192,7 +195,16 @@ server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyToo
192
195
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
193
196
  }
194
197
  });
195
- server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscriptionTool.inputSchema.shape, async () => {
198
+ server.tool(getCreditsTool.name, getCreditsTool.description, getCreditsTool.inputSchema.shape, getToolAnnotations(getCreditsTool.name), async () => {
199
+ try {
200
+ const text = await getCreditsTool.execute(client);
201
+ return { content: [{ type: 'text', text }] };
202
+ }
203
+ catch (err) {
204
+ return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
205
+ }
206
+ });
207
+ server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscriptionTool.inputSchema.shape, getToolAnnotations(getSubscriptionTool.name), async () => {
196
208
  try {
197
209
  const text = await getSubscriptionTool.execute(client);
198
210
  return { content: [{ type: 'text', text }] };
@@ -201,7 +213,7 @@ server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscr
201
213
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
202
214
  }
203
215
  });
204
- server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, cancelSubscriptionTool.inputSchema.shape, async (input) => {
216
+ server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, cancelSubscriptionTool.inputSchema.shape, getToolAnnotations(cancelSubscriptionTool.name), async (input) => {
205
217
  try {
206
218
  const text = await cancelSubscriptionTool.execute(client, input);
207
219
  return { content: [{ type: 'text', text }] };
@@ -210,7 +222,7 @@ server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, can
210
222
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
211
223
  }
212
224
  });
213
- server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pauseSubscriptionTool.inputSchema.shape, async (input) => {
225
+ server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pauseSubscriptionTool.inputSchema.shape, getToolAnnotations(pauseSubscriptionTool.name), async (input) => {
214
226
  try {
215
227
  const text = await pauseSubscriptionTool.execute(client, input);
216
228
  return { content: [{ type: 'text', text }] };
@@ -219,7 +231,7 @@ server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pause
219
231
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
220
232
  }
221
233
  });
222
- server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, resumeSubscriptionTool.inputSchema.shape, async () => {
234
+ server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, resumeSubscriptionTool.inputSchema.shape, getToolAnnotations(resumeSubscriptionTool.name), async () => {
223
235
  try {
224
236
  const text = await resumeSubscriptionTool.execute(client);
225
237
  return { content: [{ type: 'text', text }] };
@@ -228,7 +240,7 @@ server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, res
228
240
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
229
241
  }
230
242
  });
231
- server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.description, downgradeSubscriptionTool.inputSchema.shape, async (input) => {
243
+ server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.description, downgradeSubscriptionTool.inputSchema.shape, getToolAnnotations(downgradeSubscriptionTool.name), async (input) => {
232
244
  try {
233
245
  const text = await downgradeSubscriptionTool.execute(client, input);
234
246
  return { content: [{ type: 'text', text }] };
@@ -237,7 +249,7 @@ server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.descriptio
237
249
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
238
250
  }
239
251
  });
240
- server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAuthClientsTool.inputSchema.shape, async () => {
252
+ server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAuthClientsTool.inputSchema.shape, getToolAnnotations(listOAuthClientsTool.name), async () => {
241
253
  try {
242
254
  const text = await listOAuthClientsTool.execute(client);
243
255
  return { content: [{ type: 'text', text }] };
@@ -246,7 +258,7 @@ server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAu
246
258
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
247
259
  }
248
260
  });
249
- server.tool(createOAuthClientTool.name, createOAuthClientTool.description, createOAuthClientTool.inputSchema.shape, async (input) => {
261
+ server.tool(createOAuthClientTool.name, createOAuthClientTool.description, createOAuthClientTool.inputSchema.shape, getToolAnnotations(createOAuthClientTool.name), async (input) => {
250
262
  try {
251
263
  const text = await createOAuthClientTool.execute(client, input);
252
264
  return { content: [{ type: 'text', text }] };
@@ -255,7 +267,7 @@ server.tool(createOAuthClientTool.name, createOAuthClientTool.description, creat
255
267
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
256
268
  }
257
269
  });
258
- server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updateOAuthClientTool.inputSchema.shape, async (input) => {
270
+ server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updateOAuthClientTool.inputSchema.shape, getToolAnnotations(updateOAuthClientTool.name), async (input) => {
259
271
  try {
260
272
  const text = await updateOAuthClientTool.execute(client, input);
261
273
  return { content: [{ type: 'text', text }] };
@@ -264,7 +276,7 @@ server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updat
264
276
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
265
277
  }
266
278
  });
267
- server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, deleteOAuthClientTool.inputSchema.shape, async (input) => {
279
+ server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, deleteOAuthClientTool.inputSchema.shape, getToolAnnotations(deleteOAuthClientTool.name), async (input) => {
268
280
  try {
269
281
  const text = await deleteOAuthClientTool.execute(client, input);
270
282
  return { content: [{ type: 'text', text }] };
@@ -273,7 +285,7 @@ server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, delet
273
285
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
274
286
  }
275
287
  });
276
- server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatformsTool.inputSchema.shape, async (input) => {
288
+ server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatformsTool.inputSchema.shape, getToolAnnotations(listPlatformsTool.name), async (input) => {
277
289
  try {
278
290
  const text = await listPlatformsTool.execute(client, input);
279
291
  return { content: [{ type: 'text', text }] };
@@ -282,7 +294,7 @@ server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatforms
282
294
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
283
295
  }
284
296
  });
285
- server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPlatformSchemaTool.inputSchema.shape, async (input) => {
297
+ server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPlatformSchemaTool.inputSchema.shape, getToolAnnotations(getPlatformSchemaTool.name), async (input) => {
286
298
  try {
287
299
  const text = await getPlatformSchemaTool.execute(client, input);
288
300
  return { content: [{ type: 'text', text }] };
@@ -291,7 +303,7 @@ server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPl
291
303
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
292
304
  }
293
305
  });
294
- server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.description, triggerPlatformHelperTool.inputSchema.shape, async (input) => {
306
+ server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.description, triggerPlatformHelperTool.inputSchema.shape, getToolAnnotations(triggerPlatformHelperTool.name), async (input) => {
295
307
  try {
296
308
  const text = await triggerPlatformHelperTool.execute(client, input);
297
309
  return { content: [{ type: 'text', text }] };
@@ -300,7 +312,7 @@ server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.descriptio
300
312
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
301
313
  }
302
314
  });
303
- server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inputSchema.shape, async (input) => {
315
+ server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inputSchema.shape, getToolAnnotations(listBrandsTool.name), async (input) => {
304
316
  try {
305
317
  const text = await listBrandsTool.execute(client, input);
306
318
  return { content: [{ type: 'text', text }] };
@@ -309,7 +321,7 @@ server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inpu
309
321
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
310
322
  }
311
323
  });
312
- server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchema.shape, async (input) => {
324
+ server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchema.shape, getToolAnnotations(getBrandTool.name), async (input) => {
313
325
  try {
314
326
  const text = await getBrandTool.execute(client, input);
315
327
  return { content: [{ type: 'text', text }] };
@@ -318,7 +330,7 @@ server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchem
318
330
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
319
331
  }
320
332
  });
321
- server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listBrandAccountsTool.inputSchema.shape, async (input) => {
333
+ server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listBrandAccountsTool.inputSchema.shape, getToolAnnotations(listBrandAccountsTool.name), async (input) => {
322
334
  try {
323
335
  const text = await listBrandAccountsTool.execute(client, input);
324
336
  return { content: [{ type: 'text', text }] };
@@ -327,7 +339,7 @@ server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listB
327
339
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
328
340
  }
329
341
  });
330
- server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandProfileTool.inputSchema.shape, async (input) => {
342
+ server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandProfileTool.inputSchema.shape, getToolAnnotations(getBrandProfileTool.name), async (input) => {
331
343
  try {
332
344
  const text = await getBrandProfileTool.execute(client, input);
333
345
  return { content: [{ type: 'text', text }] };
@@ -336,7 +348,7 @@ server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandP
336
348
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
337
349
  }
338
350
  });
339
- server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearnedVoiceTool.inputSchema.shape, async (input) => {
351
+ server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearnedVoiceTool.inputSchema.shape, getToolAnnotations(getLearnedVoiceTool.name), async (input) => {
340
352
  try {
341
353
  const text = await getLearnedVoiceTool.execute(client, input);
342
354
  return { content: [{ type: 'text', text }] };
@@ -345,7 +357,7 @@ server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearne
345
357
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
346
358
  }
347
359
  });
348
- server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.description, getPerformanceProfileTool.inputSchema.shape, async (input) => {
360
+ server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.description, getPerformanceProfileTool.inputSchema.shape, getToolAnnotations(getPerformanceProfileTool.name), async (input) => {
349
361
  try {
350
362
  const text = await getPerformanceProfileTool.execute(client, input);
351
363
  return { content: [{ type: 'text', text }] };
@@ -354,7 +366,7 @@ server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.descriptio
354
366
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
355
367
  }
356
368
  });
357
- server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostInsightsTool.inputSchema.shape, async (input) => {
369
+ server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostInsightsTool.inputSchema.shape, getToolAnnotations(getPostInsightsTool.name), async (input) => {
358
370
  try {
359
371
  const text = await getPostInsightsTool.execute(client, input);
360
372
  return { content: [{ type: 'text', text }] };
@@ -363,7 +375,7 @@ server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostIn
363
375
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
364
376
  }
365
377
  });
366
- server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, listPostSuggestionsTool.inputSchema.shape, async (input) => {
378
+ server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, listPostSuggestionsTool.inputSchema.shape, getToolAnnotations(listPostSuggestionsTool.name), async (input) => {
367
379
  try {
368
380
  const text = await listPostSuggestionsTool.execute(client, input);
369
381
  return { content: [{ type: 'text', text }] };
@@ -372,7 +384,7 @@ server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, l
372
384
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
373
385
  }
374
386
  });
375
- server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismissSuggestionTool.inputSchema.shape, async (input) => {
387
+ server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismissSuggestionTool.inputSchema.shape, getToolAnnotations(dismissSuggestionTool.name), async (input) => {
376
388
  try {
377
389
  const text = await dismissSuggestionTool.execute(client, input);
378
390
  return { content: [{ type: 'text', text }] };
@@ -381,7 +393,7 @@ server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismi
381
393
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
382
394
  }
383
395
  });
384
- server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, submitAgentFeedbackTool.inputSchema.shape, async (input) => {
396
+ server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, submitAgentFeedbackTool.inputSchema.shape, getToolAnnotations(submitAgentFeedbackTool.name), async (input) => {
385
397
  try {
386
398
  const text = await submitAgentFeedbackTool.execute(client, input);
387
399
  return { content: [{ type: 'text', text }] };
@@ -390,7 +402,7 @@ server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, s
390
402
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
391
403
  }
392
404
  });
393
- server.tool(submitProductFeedbackTool.name, submitProductFeedbackTool.description, submitProductFeedbackTool.inputSchema.shape, async (input) => {
405
+ server.tool(submitProductFeedbackTool.name, submitProductFeedbackTool.description, submitProductFeedbackTool.inputSchema.shape, getToolAnnotations(submitProductFeedbackTool.name), async (input) => {
394
406
  try {
395
407
  const text = await submitProductFeedbackTool.execute(client, input);
396
408
  return { content: [{ type: 'text', text }] };
@@ -399,7 +411,7 @@ server.tool(submitProductFeedbackTool.name, submitProductFeedbackTool.descriptio
399
411
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
400
412
  }
401
413
  });
402
- server.tool(validatePostTool.name, validatePostTool.description, validatePostTool.inputSchema.shape, async (input) => {
414
+ server.tool(validatePostTool.name, validatePostTool.description, validatePostTool.inputSchema.shape, getToolAnnotations(validatePostTool.name), async (input) => {
403
415
  try {
404
416
  const text = await validatePostTool.execute(client, input);
405
417
  return { content: [{ type: 'text', text }] };
@@ -408,7 +420,7 @@ server.tool(validatePostTool.name, validatePostTool.description, validatePostToo
408
420
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
409
421
  }
410
422
  });
411
- server.tool(createPostTool.name, createPostTool.description, createPostTool.inputSchema.shape, async (input) => {
423
+ server.tool(createPostTool.name, createPostTool.description, createPostTool.inputSchema.shape, getToolAnnotations(createPostTool.name), async (input) => {
412
424
  try {
413
425
  const text = await createPostTool.execute(client, input);
414
426
  return { content: [{ type: 'text', text }] };
@@ -417,7 +429,7 @@ server.tool(createPostTool.name, createPostTool.description, createPostTool.inpu
417
429
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
418
430
  }
419
431
  });
420
- server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createPostsBatchTool.inputSchema.shape, async (input) => {
432
+ server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createPostsBatchTool.inputSchema.shape, getToolAnnotations(createPostsBatchTool.name), async (input) => {
421
433
  try {
422
434
  const text = await createPostsBatchTool.execute(client, input);
423
435
  return { content: [{ type: 'text', text }] };
@@ -426,7 +438,7 @@ server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createP
426
438
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
427
439
  }
428
440
  });
429
- server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchema.shape, async (input) => {
441
+ server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchema.shape, getToolAnnotations(findSlotTool.name), async (input) => {
430
442
  try {
431
443
  const text = await findSlotTool.execute(client, input);
432
444
  return { content: [{ type: 'text', text }] };
@@ -435,7 +447,7 @@ server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchem
435
447
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
436
448
  }
437
449
  });
438
- server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSchema.shape, async (input) => {
450
+ server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSchema.shape, getToolAnnotations(listPostsTool.name), async (input) => {
439
451
  try {
440
452
  const text = await listPostsTool.execute(client, input);
441
453
  return { content: [{ type: 'text', text }] };
@@ -444,7 +456,7 @@ server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSc
444
456
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
445
457
  }
446
458
  });
447
- server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.inputSchema.shape, async (input) => {
459
+ server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.inputSchema.shape, getToolAnnotations(uploadMediaTool.name), async (input) => {
448
460
  try {
449
461
  const text = await uploadMediaTool.execute(client, input);
450
462
  return { content: [{ type: 'text', text }] };
@@ -453,7 +465,7 @@ server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.i
453
465
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
454
466
  }
455
467
  });
456
- server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, uploadMediaFromUrlTool.inputSchema.shape, async (input) => {
468
+ server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, uploadMediaFromUrlTool.inputSchema.shape, getToolAnnotations(uploadMediaFromUrlTool.name), async (input) => {
457
469
  try {
458
470
  const text = await uploadMediaFromUrlTool.execute(client, input);
459
471
  return { content: [{ type: 'text', text }] };
@@ -462,7 +474,7 @@ server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, upl
462
474
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
463
475
  }
464
476
  });
465
- server.tool(createSignedUploadTool.name, createSignedUploadTool.description, createSignedUploadTool.inputSchema.shape, async (input) => {
477
+ server.tool(createSignedUploadTool.name, createSignedUploadTool.description, createSignedUploadTool.inputSchema.shape, getToolAnnotations(createSignedUploadTool.name), async (input) => {
466
478
  try {
467
479
  const text = await createSignedUploadTool.execute(client, input);
468
480
  return { content: [{ type: 'text', text }] };
@@ -471,7 +483,7 @@ server.tool(createSignedUploadTool.name, createSignedUploadTool.description, cre
471
483
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
472
484
  }
473
485
  });
474
- server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoOptionsTool.inputSchema.shape, async () => {
486
+ server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoOptionsTool.inputSchema.shape, getToolAnnotations(getVideoOptionsTool.name), async () => {
475
487
  try {
476
488
  const text = await getVideoOptionsTool.execute(client);
477
489
  return { content: [{ type: 'text', text }] };
@@ -480,7 +492,7 @@ server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoO
480
492
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
481
493
  }
482
494
  });
483
- server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVideoFunctionTool.inputSchema.shape, async (input) => {
495
+ server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVideoFunctionTool.inputSchema.shape, getToolAnnotations(runVideoFunctionTool.name), async (input) => {
484
496
  try {
485
497
  const text = await runVideoFunctionTool.execute(client, input);
486
498
  return { content: [{ type: 'text', text }] };
@@ -489,7 +501,7 @@ server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVide
489
501
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
490
502
  }
491
503
  });
492
- server.tool(generateVideoTool.name, generateVideoTool.description, generateVideoTool.inputSchema.shape, async (input) => {
504
+ server.tool(generateVideoTool.name, generateVideoTool.description, generateVideoTool.inputSchema.shape, getToolAnnotations(generateVideoTool.name), async (input) => {
493
505
  try {
494
506
  const text = await generateVideoTool.execute(client, input);
495
507
  return { content: [{ type: 'text', text }] };
@@ -498,7 +510,7 @@ server.tool(generateVideoTool.name, generateVideoTool.description, generateVideo
498
510
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
499
511
  }
500
512
  });
501
- server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.inputSchema.shape, async (input) => {
513
+ server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.inputSchema.shape, getToolAnnotations(getVideoJobTool.name), async (input) => {
502
514
  try {
503
515
  const text = await getVideoJobTool.execute(client, input);
504
516
  return { content: [{ type: 'text', text }] };
@@ -507,7 +519,7 @@ server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.i
507
519
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
508
520
  }
509
521
  });
510
- server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generateCaptionsTool.inputSchema.shape, async (input) => {
522
+ server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generateCaptionsTool.inputSchema.shape, getToolAnnotations(generateCaptionsTool.name), async (input) => {
511
523
  try {
512
524
  const text = await generateCaptionsTool.execute(client, input);
513
525
  return { content: [{ type: 'text', text }] };
@@ -516,7 +528,7 @@ server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generat
516
528
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
517
529
  }
518
530
  });
519
- server.tool(generateImageTool.name, generateImageTool.description, generateImageTool.inputSchema.shape, async (input) => {
531
+ server.tool(generateImageTool.name, generateImageTool.description, generateImageTool.inputSchema.shape, getToolAnnotations(generateImageTool.name), async (input) => {
520
532
  try {
521
533
  const text = await generateImageTool.execute(client, input);
522
534
  return { content: [{ type: 'text', text }] };
@@ -525,7 +537,7 @@ server.tool(generateImageTool.name, generateImageTool.description, generateImage
525
537
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
526
538
  }
527
539
  });
528
- server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.shape, async (input) => {
540
+ server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.shape, getToolAnnotations(getPostTool.name), async (input) => {
529
541
  try {
530
542
  const text = await getPostTool.execute(client, input);
531
543
  return { content: [{ type: 'text', text }] };
@@ -534,7 +546,7 @@ server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.s
534
546
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
535
547
  }
536
548
  });
537
- server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMissingTool.inputSchema.shape, async (input) => {
549
+ server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMissingTool.inputSchema.shape, getToolAnnotations(getPostMissingTool.name), async (input) => {
538
550
  try {
539
551
  const text = await getPostMissingTool.execute(client, input);
540
552
  return { content: [{ type: 'text', text }] };
@@ -543,7 +555,7 @@ server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMiss
543
555
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
544
556
  }
545
557
  });
546
- server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inputSchema.shape, async (input) => {
558
+ server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inputSchema.shape, getToolAnnotations(askSupportTool.name), async (input) => {
547
559
  try {
548
560
  const text = await askSupportTool.execute(client, input);
549
561
  return { content: [{ type: 'text', text }] };
@@ -552,7 +564,7 @@ server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inpu
552
564
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
553
565
  }
554
566
  });
555
- server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inputSchema.shape, async (input) => {
567
+ server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inputSchema.shape, getToolAnnotations(updatePostTool.name), async (input) => {
556
568
  try {
557
569
  const text = await updatePostTool.execute(client, input);
558
570
  return { content: [{ type: 'text', text }] };
@@ -561,7 +573,7 @@ server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inpu
561
573
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
562
574
  }
563
575
  });
564
- server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updatePostStatusTool.inputSchema.shape, async (input) => {
576
+ server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updatePostStatusTool.inputSchema.shape, getToolAnnotations(updatePostStatusTool.name), async (input) => {
565
577
  try {
566
578
  const text = await updatePostStatusTool.execute(client, input);
567
579
  return { content: [{ type: 'text', text }] };
@@ -570,7 +582,7 @@ server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updateP
570
582
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
571
583
  }
572
584
  });
573
- server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, updatePostReleaseIdTool.inputSchema.shape, async (input) => {
585
+ server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, updatePostReleaseIdTool.inputSchema.shape, getToolAnnotations(updatePostReleaseIdTool.name), async (input) => {
574
586
  try {
575
587
  const text = await updatePostReleaseIdTool.execute(client, input);
576
588
  return { content: [{ type: 'text', text }] };
@@ -579,7 +591,7 @@ server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, u
579
591
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
580
592
  }
581
593
  });
582
- server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inputSchema.shape, async (input) => {
594
+ server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inputSchema.shape, getToolAnnotations(deletePostTool.name), async (input) => {
583
595
  try {
584
596
  const text = await deletePostTool.execute(client, input);
585
597
  return { content: [{ type: 'text', text }] };
@@ -588,7 +600,7 @@ server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inpu
588
600
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
589
601
  }
590
602
  });
591
- server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePostGroupTool.inputSchema.shape, async (input) => {
603
+ server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePostGroupTool.inputSchema.shape, getToolAnnotations(deletePostGroupTool.name), async (input) => {
592
604
  try {
593
605
  const text = await deletePostGroupTool.execute(client, input);
594
606
  return { content: [{ type: 'text', text }] };
@@ -597,7 +609,7 @@ server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePos
597
609
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
598
610
  }
599
611
  });
600
- server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, getAccountAnalyticsTool.inputSchema.shape, async (input) => {
612
+ server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, getAccountAnalyticsTool.inputSchema.shape, getToolAnnotations(getAccountAnalyticsTool.name), async (input) => {
601
613
  try {
602
614
  const text = await getAccountAnalyticsTool.execute(client, input);
603
615
  return { content: [{ type: 'text', text }] };
@@ -606,7 +618,7 @@ server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, g
606
618
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
607
619
  }
608
620
  });
609
- server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPostAnalyticsTool.inputSchema.shape, async (input) => {
621
+ server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPostAnalyticsTool.inputSchema.shape, getToolAnnotations(getPostAnalyticsTool.name), async (input) => {
610
622
  try {
611
623
  const text = await getPostAnalyticsTool.execute(client, input);
612
624
  return { content: [{ type: 'text', text }] };
@@ -615,7 +627,7 @@ server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPost
615
627
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
616
628
  }
617
629
  });
618
- server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.description, listGoogleBusinessReviewsTool.inputSchema.shape, async (input) => {
630
+ server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.description, listGoogleBusinessReviewsTool.inputSchema.shape, getToolAnnotations(listGoogleBusinessReviewsTool.name), async (input) => {
619
631
  try {
620
632
  const text = await listGoogleBusinessReviewsTool.execute(client, input);
621
633
  return { content: [{ type: 'text', text }] };
@@ -624,7 +636,7 @@ server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.de
624
636
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
625
637
  }
626
638
  });
627
- server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkTool.description, getGoogleBusinessReviewLinkTool.inputSchema.shape, async (input) => {
639
+ server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkTool.description, getGoogleBusinessReviewLinkTool.inputSchema.shape, getToolAnnotations(getGoogleBusinessReviewLinkTool.name), async (input) => {
628
640
  try {
629
641
  const text = await getGoogleBusinessReviewLinkTool.execute(client, input);
630
642
  return { content: [{ type: 'text', text }] };
@@ -633,7 +645,7 @@ server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkToo
633
645
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
634
646
  }
635
647
  });
636
- server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.description, auditGoogleBusinessProfileTool.inputSchema.shape, async (input) => {
648
+ server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.description, auditGoogleBusinessProfileTool.inputSchema.shape, getToolAnnotations(auditGoogleBusinessProfileTool.name), async (input) => {
637
649
  try {
638
650
  const text = await auditGoogleBusinessProfileTool.execute(client, input);
639
651
  return { content: [{ type: 'text', text }] };
@@ -642,7 +654,7 @@ server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.
642
654
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
643
655
  }
644
656
  });
645
- server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessReviewReplyTool.description, suggestGoogleBusinessReviewReplyTool.inputSchema.shape, async (input) => {
657
+ server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessReviewReplyTool.description, suggestGoogleBusinessReviewReplyTool.inputSchema.shape, getToolAnnotations(suggestGoogleBusinessReviewReplyTool.name), async (input) => {
646
658
  try {
647
659
  const text = await suggestGoogleBusinessReviewReplyTool.execute(client, input);
648
660
  return { content: [{ type: 'text', text }] };
@@ -651,7 +663,7 @@ server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessRevi
651
663
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
652
664
  }
653
665
  });
654
- server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.description, replyGoogleBusinessReviewTool.inputSchema.shape, async (input) => {
666
+ server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.description, replyGoogleBusinessReviewTool.inputSchema.shape, getToolAnnotations(replyGoogleBusinessReviewTool.name), async (input) => {
655
667
  try {
656
668
  const text = await replyGoogleBusinessReviewTool.execute(client, input);
657
669
  return { content: [{ type: 'text', text }] };
@@ -660,7 +672,7 @@ server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.de
660
672
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
661
673
  }
662
674
  });
663
- server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReviewReplyTool.description, deleteGoogleBusinessReviewReplyTool.inputSchema.shape, async (input) => {
675
+ server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReviewReplyTool.description, deleteGoogleBusinessReviewReplyTool.inputSchema.shape, getToolAnnotations(deleteGoogleBusinessReviewReplyTool.name), async (input) => {
664
676
  try {
665
677
  const text = await deleteGoogleBusinessReviewReplyTool.execute(client, input);
666
678
  return { content: [{ type: 'text', text }] };
@@ -669,7 +681,7 @@ server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReview
669
681
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
670
682
  }
671
683
  });
672
- server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.description, listGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
684
+ server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.description, listGoogleBusinessMediaTool.inputSchema.shape, getToolAnnotations(listGoogleBusinessMediaTool.name), async (input) => {
673
685
  try {
674
686
  const text = await listGoogleBusinessMediaTool.execute(client, input);
675
687
  return { content: [{ type: 'text', text }] };
@@ -678,7 +690,7 @@ server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.descri
678
690
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
679
691
  }
680
692
  });
681
- server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.description, addGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
693
+ server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.description, addGoogleBusinessMediaTool.inputSchema.shape, getToolAnnotations(addGoogleBusinessMediaTool.name), async (input) => {
682
694
  try {
683
695
  const text = await addGoogleBusinessMediaTool.execute(client, input);
684
696
  return { content: [{ type: 'text', text }] };
@@ -687,7 +699,7 @@ server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.descript
687
699
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
688
700
  }
689
701
  });
690
- server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.description, deleteGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
702
+ server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.description, deleteGoogleBusinessMediaTool.inputSchema.shape, getToolAnnotations(deleteGoogleBusinessMediaTool.name), async (input) => {
691
703
  try {
692
704
  const text = await deleteGoogleBusinessMediaTool.execute(client, input);
693
705
  return { content: [{ type: 'text', text }] };
@@ -696,7 +708,7 @@ server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.de
696
708
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
697
709
  }
698
710
  });
699
- server.tool(listActivityTool.name, listActivityTool.description, listActivityTool.inputSchema.shape, async (input) => {
711
+ server.tool(listActivityTool.name, listActivityTool.description, listActivityTool.inputSchema.shape, getToolAnnotations(listActivityTool.name), async (input) => {
700
712
  try {
701
713
  const text = await listActivityTool.execute(client, input);
702
714
  return { content: [{ type: 'text', text }] };
@@ -705,7 +717,16 @@ server.tool(listActivityTool.name, listActivityTool.description, listActivityToo
705
717
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
706
718
  }
707
719
  });
708
- server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksTool.inputSchema.shape, async (input) => {
720
+ server.tool(getUpdatesTool.name, getUpdatesTool.description, getUpdatesTool.inputSchema.shape, getToolAnnotations(getUpdatesTool.name), async (input) => {
721
+ try {
722
+ const text = await getUpdatesTool.execute(client, input);
723
+ return { content: [{ type: 'text', text }] };
724
+ }
725
+ catch (err) {
726
+ return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
727
+ }
728
+ });
729
+ server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksTool.inputSchema.shape, getToolAnnotations(listWebhooksTool.name), async (input) => {
709
730
  try {
710
731
  const text = await listWebhooksTool.execute(client, input);
711
732
  return { content: [{ type: 'text', text }] };
@@ -714,7 +735,7 @@ server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksToo
714
735
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
715
736
  }
716
737
  });
717
- server.tool(createWebhookTool.name, createWebhookTool.description, createWebhookTool.inputSchema.shape, async (input) => {
738
+ server.tool(createWebhookTool.name, createWebhookTool.description, createWebhookTool.inputSchema.shape, getToolAnnotations(createWebhookTool.name), async (input) => {
718
739
  try {
719
740
  const text = await createWebhookTool.execute(client, input);
720
741
  return { content: [{ type: 'text', text }] };
@@ -723,7 +744,7 @@ server.tool(createWebhookTool.name, createWebhookTool.description, createWebhook
723
744
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
724
745
  }
725
746
  });
726
- server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhookTool.inputSchema.shape, async (input) => {
747
+ server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhookTool.inputSchema.shape, getToolAnnotations(updateWebhookTool.name), async (input) => {
727
748
  try {
728
749
  const text = await updateWebhookTool.execute(client, input);
729
750
  return { content: [{ type: 'text', text }] };
@@ -732,7 +753,7 @@ server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhook
732
753
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
733
754
  }
734
755
  });
735
- server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhookTool.inputSchema.shape, async (input) => {
756
+ server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhookTool.inputSchema.shape, getToolAnnotations(deleteWebhookTool.name), async (input) => {
736
757
  try {
737
758
  const text = await deleteWebhookTool.execute(client, input);
738
759
  return { content: [{ type: 'text', text }] };
@@ -741,7 +762,7 @@ server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhook
741
762
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
742
763
  }
743
764
  });
744
- server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.inputSchema.shape, async (input) => {
765
+ server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.inputSchema.shape, getToolAnnotations(testWebhookTool.name), async (input) => {
745
766
  try {
746
767
  const text = await testWebhookTool.execute(client, input);
747
768
  return { content: [{ type: 'text', text }] };
@@ -750,7 +771,7 @@ server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.i
750
771
  return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
751
772
  }
752
773
  });
753
- server.tool(getXPostingQuotaTool.name, getXPostingQuotaTool.description, getXPostingQuotaTool.inputSchema.shape, async (input) => {
774
+ server.tool(getXPostingQuotaTool.name, getXPostingQuotaTool.description, getXPostingQuotaTool.inputSchema.shape, getToolAnnotations(getXPostingQuotaTool.name), async (input) => {
754
775
  try {
755
776
  const text = await getXPostingQuotaTool.execute(client, input);
756
777
  return { content: [{ type: 'text', text }] };