Skip to content

Commit d7e791b

Browse files
fix(mcp): include required section for top-level properties and support naming transformations
1 parent 62ef41e commit d7e791b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/mcp-server/src/tools/classifications/universal/create-classifications-universal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export const tool: Tool = {
6363
description: 'A whole number greater than or equal to 1.',
6464
},
6565
},
66-
required: [],
6766
},
6867
is_iql: {
6968
type: 'boolean',
@@ -83,6 +82,7 @@ export const tool: Tool = {
8382
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
8483
},
8584
},
85+
required: ['model', 'query', 'texts'],
8686
},
8787
};
8888

packages/mcp-server/src/tools/extractions/qa/create-extractions-qa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export const tool: Tool = {
6363
description: 'A whole number greater than or equal to 1.',
6464
},
6565
},
66-
required: [],
6766
},
6867
ignore_inextractability: {
6968
type: 'boolean',
@@ -82,6 +81,7 @@ export const tool: Tool = {
8281
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
8382
},
8483
},
84+
required: ['model', 'query', 'texts'],
8585
},
8686
};
8787

packages/mcp-server/src/tools/rerankings/create-rerankings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const tool: Tool = {
6262
description: 'A whole number greater than or equal to 1.',
6363
},
6464
},
65-
required: [],
6665
},
6766
is_iql: {
6867
type: 'boolean',
@@ -87,6 +86,7 @@ export const tool: Tool = {
8786
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
8887
},
8988
},
89+
required: ['model', 'query', 'texts'],
9090
},
9191
};
9292

0 commit comments

Comments
 (0)