Skip to content

Commit 7b913cb

Browse files
mcpopenapibot[bot]postman-distribution-bot[bot]garciasdos
authored
chore: sync tools from postman-mcp-server (#15)
* chore: sync tools from postman-mcp-server * refactor: re-enable exec property --------- Co-authored-by: postman-distribution-bot[bot] <124679000+postman-distribution-bot[bot]@users.noreply.github.com> Co-authored-by: Diego García <[email protected]>
1 parent a489816 commit 7b913cb

File tree

7 files changed

+21
-13
lines changed

7 files changed

+21
-13
lines changed

src/tools/create_collection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ export const parameters = z.object({
522522
})
523523
.describe('Information about the collection request.')
524524
.optional(),
525-
response: z
526-
.array(z.any().describe("Information about the request's response."))
527-
.describe("A list of the collection's responses.")
528-
.optional(),
525+
// response: z
526+
// .array(z.any().describe("Information about the request's response."))
527+
// .describe("A list of the collection's responses.")
528+
// .optional(),
529529
protocolProfileBehavior: z
530530
.object({
531531
strictSSL: z

src/tools/create_monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const parameters = z.object({
6060
cron: z
6161
.string()
6262
.describe(
63-
"The monitor's run frequency, based on the given cron pattern. For example:\n\n| Frequency | Cron pattern |\n| --------- | ------------ |\n| Every 5 minutes | `*/5 * * * *` |\n| Every 30 minutes | `*/30 * * * *` |\n| Every hour | `0 */1 * * *` |\n| Every 6 hours | `0 */6 * * *` |\n| Every day at 5 pm | `0 17 * * *` |\n| Every Monday at 12 pm | `0 12 * * MON` |\n| Every weekday (Mon — Fri) at 6 am | `0 6 * * MON-FRI` |\n"
63+
'The cron expression that defines when the monitor runs. Use standard five-field POSIX cron syntax.\n'
6464
)
6565
.optional(),
6666
timezone: z

src/tools/create_request_comment.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ export const description =
66
"The request ID must contain the team ID as a prefix, in \\`teamId-requestId\\` format.\n\nFor example, if you're creating a comment on collection ID \\`24585957-7b2c98f7-30db-4b67-8685-0079f48a0947\\` (note on the prefix), and\nthe collection request's ID is \\`2c450b59-9bbf-729b-6ac0-f92535a7c336\\`, then the \\`{requestId}\\` must be \\`24585957-2c450b59-9bbf-729b-6ac0-f92535a7c336\\`.\n";
77
export const parameters = z.object({
88
collectionId: z.string().describe("The collection's unique ID."),
9-
requestId: z.string().describe("The request's unique ID."),
9+
requestId: z
10+
.string()
11+
.describe(
12+
"The request ID must contain the team ID as a prefix, in `teamId-requestId` format.\n\nFor example, if you're creating a comment on collection ID `24585957-7b2c98f7-30db-4b67-8685-0079f48a0947` (note on the prefix), and\nthe collection request's ID is `2c450b59-9bbf-729b-6ac0-f92535a7c336`, then the `{requestId}` must be `24585957-2c450b59-9bbf-729b-6ac0-f92535a7c336`.\n"
13+
),
1014
body: z.string().describe('The contents of the comment.'),
1115
threadId: z
1216
.number()

src/tools/get_collections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const method = 'get-collections';
55
export const description =
66
'The workspace ID query is required for this endpoint. If not provided, the LLM should ask the user to provide it.';
77
export const parameters = z.object({
8-
workspace: z.string().describe("The workspace's ID.").optional(),
8+
workspace: z.string().describe("The workspace's ID."),
99
name: z.string().describe('Filter results by collections that match the given name.').optional(),
1010
limit: z
1111
.number()

src/tools/get_request_comments.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ export const method = 'get-request-comments';
55
export const description = 'Gets all comments left by users in a request.';
66
export const parameters = z.object({
77
collectionId: z.string().describe("The collection's unique ID."),
8-
requestId: z.string().describe("The request's unique ID."),
8+
requestId: z
9+
.string()
10+
.describe(
11+
"The request ID must contain the team ID as a prefix, in `teamId-requestId` format.\n\nFor example, if you're creating a comment on collection ID `24585957-7b2c98f7-30db-4b67-8685-0079f48a0947` (note on the prefix), and\nthe collection request's ID is `2c450b59-9bbf-729b-6ac0-f92535a7c336`, then the `{requestId}` must be `24585957-2c450b59-9bbf-729b-6ac0-f92535a7c336`.\n"
12+
),
913
});
1014
export const annotations = {
1115
title: 'Gets all comments left by users in a request.',

src/tools/put_collection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,10 @@ export const parameters = z.object({
597597
})
598598
.describe('Information about the collection request.')
599599
.optional(),
600-
response: z
601-
.array(z.any().describe("Information about the request's response."))
602-
.describe("A list of the collection's responses.")
603-
.optional(),
600+
// response: z
601+
// .array(z.any().describe("Information about the request's response."))
602+
// .describe("A list of the collection's responses.")
603+
// .optional(),
604604
protocolProfileBehavior: z
605605
.object({
606606
strictSSL: z

src/tools/update_monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const parameters = z.object({
5555
cron: z
5656
.string()
5757
.describe(
58-
"The monitor's run frequency, based on the given cron pattern. For example:\n\n| Frequency | Cron pattern |\n| --------- | ------------ |\n| Every 5 minutes | `*/5 * * * *` |\n| Every 30 minutes | `*/30 * * * *` |\n| Every hour | `0 */1 * * *` |\n| Every 6 hours | `0 */6 * * *` |\n| Every day at 5 pm | `0 17 * * *` |\n| Every Monday at 12 pm | `0 12 * * MON` |\n| Every weekday (Mon — Fri) at 6 am | `0 6 * * MON-FRI` |\n"
58+
'The cron expression that defines when the monitor runs. Use standard five-field POSIX cron syntax.\n'
5959
)
6060
.optional(),
6161
timezone: z

0 commit comments

Comments
 (0)