posterly-mcp-server 0.26.0 → 0.27.1

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