Skip to content

Commit 365b8c5

Browse files
committed
fix: add openWorldHint=false explicitly to relevant tools
1 parent 4e8c35a commit 365b8c5

13 files changed

+19
-0
lines changed

src/tools/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const actorDefinitionTool: ToolEntry = {
119119
annotations: {
120120
title: 'Get Actor definition',
121121
readOnlyHint: true,
122+
openWorldHint: false,
122123
},
123124
call: async (toolArgs: InternalToolArgs) => {
124125
const { args, apifyToken } = toolArgs;

src/tools/dataset.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ USAGE EXAMPLES:
6060
annotations: {
6161
title: 'Get dataset',
6262
readOnlyHint: true,
63+
openWorldHint: false,
6364
},
6465
call: async (toolArgs: InternalToolArgs) => {
6566
const { args, apifyToken } = toolArgs;
@@ -96,6 +97,7 @@ USAGE EXAMPLES:
9697
annotations: {
9798
title: 'Get dataset items',
9899
readOnlyHint: true,
100+
openWorldHint: false,
99101
},
100102
call: async (toolArgs: InternalToolArgs) => {
101103
const { args, apifyToken } = toolArgs;
@@ -159,6 +161,7 @@ USAGE EXAMPLES:
159161
annotations: {
160162
title: 'Get dataset schema',
161163
readOnlyHint: true,
164+
openWorldHint: false,
162165
},
163166
call: async (toolArgs: InternalToolArgs) => {
164167
const { args, apifyToken } = toolArgs;

src/tools/dataset_collection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ USAGE EXAMPLES:
4545
annotations: {
4646
title: 'Get user datasets list',
4747
readOnlyHint: true,
48+
openWorldHint: false,
4849
},
4950
call: async (toolArgs: InternalToolArgs) => {
5051
const { args, apifyToken } = toolArgs;

src/tools/fetch-actor-details.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ USAGE EXAMPLES:
3232
annotations: {
3333
title: 'Fetch Actor details',
3434
readOnlyHint: true,
35+
openWorldHint: false,
3536
},
3637
call: async (toolArgs: InternalToolArgs) => {
3738
const { args, apifyToken } = toolArgs;

src/tools/fetch-apify-docs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ USAGE EXAMPLES:
3232
annotations: {
3333
title: 'Fetch Apify docs',
3434
readOnlyHint: true,
35+
openWorldHint: false,
3536
},
3637
call: async (toolArgs: InternalToolArgs) => {
3738
const { args } = toolArgs;

src/tools/get-actor-output.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Note: This tool is automatically included if the Apify MCP Server is configured
9191
annotations: {
9292
title: 'Get Actor output',
9393
readOnlyHint: true,
94+
openWorldHint: false,
9495
},
9596
call: async (toolArgs: InternalToolArgs) => {
9697
const { args, apifyToken, apifyMcpServer } = toolArgs;

src/tools/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ USAGE EXAMPLES:
2929
ajvValidate: ajv.compile(zodToJsonSchema(addToolArgsSchema)),
3030
annotations: {
3131
title: 'Add tool',
32+
openWorldHint: true,
3233
},
3334
// TODO: I don't like that we are passing apifyMcpServer and mcpServer to the tool
3435
call: async (toolArgs: InternalToolArgs) => {

src/tools/key_value_store.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ USAGE EXAMPLES:
3232
annotations: {
3333
title: 'Get key-value store',
3434
readOnlyHint: true,
35+
openWorldHint: false,
3536
},
3637
call: async (toolArgs: InternalToolArgs) => {
3738
const { args, apifyToken } = toolArgs;
@@ -76,6 +77,7 @@ USAGE EXAMPLES:
7677
annotations: {
7778
title: 'Get key-value store keys',
7879
readOnlyHint: true,
80+
openWorldHint: false,
7981
},
8082
call: async (toolArgs: InternalToolArgs) => {
8183
const { args, apifyToken } = toolArgs;
@@ -118,6 +120,7 @@ USAGE EXAMPLES:
118120
annotations: {
119121
title: 'Get key-value store record',
120122
readOnlyHint: true,
123+
openWorldHint: false,
121124
},
122125
call: async (toolArgs: InternalToolArgs) => {
123126
const { args, apifyToken } = toolArgs;

src/tools/key_value_store_collection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ USAGE EXAMPLES:
4545
annotations: {
4646
title: 'Get user key-value stores list',
4747
readOnlyHint: true,
48+
openWorldHint: false,
4849
},
4950
call: async (toolArgs: InternalToolArgs) => {
5051
const { args, apifyToken } = toolArgs;

src/tools/run.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ USAGE EXAMPLES:
3939
annotations: {
4040
title: 'Get Actor run',
4141
readOnlyHint: true,
42+
openWorldHint: false,
4243
},
4344
call: async (toolArgs: InternalToolArgs) => {
4445
const { args, apifyToken } = toolArgs;
@@ -81,6 +82,7 @@ USAGE EXAMPLES:
8182
annotations: {
8283
title: 'Get Actor run log',
8384
readOnlyHint: true,
85+
openWorldHint: false,
8486
},
8587
call: async (toolArgs: InternalToolArgs) => {
8688
const { args, apifyToken } = toolArgs;
@@ -113,6 +115,7 @@ USAGE EXAMPLES:
113115
ajvValidate: ajv.compile(zodToJsonSchema(abortRunArgs)),
114116
annotations: {
115117
title: 'Abort Actor run',
118+
openWorldHint: false,
116119
},
117120
call: async (toolArgs: InternalToolArgs) => {
118121
const { args, apifyToken } = toolArgs;

0 commit comments

Comments
 (0)