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