Skip to content

Commit 09bc7d4

Browse files
committed
feat: Add hint to use tool to get schema
1 parent 602cc28 commit 09bc7d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Please verify the tool name is correct. You can list all available tools using t
521521
}
522522
if (!args) {
523523
const msg = `Missing arguments for tool "${name}".
524-
Please provide the required arguments for this tool. Check the tool's input schema to see what parameters are required.`;
524+
Please provide the required arguments for this tool. Check the tool's input schema using ${HelperTools.ACTOR_GET_DETAILS} tool to see what parameters are required.`;
525525
log.error(msg);
526526
await this.server.sendLoggingMessage({ level: 'error', data: msg });
527527
throw new McpError(
@@ -538,7 +538,7 @@ Please provide the required arguments for this tool. Check the tool's input sche
538538
const errorMessages = errors.map((e: { message?: string; instancePath?: string }) => `${e.instancePath || 'root'}: ${e.message || 'validation error'}`).join('; ');
539539
const msg = `Invalid arguments for tool "${tool.name}".
540540
Validation errors: ${errorMessages}.
541-
Please check the tool's input schema and ensure all required parameters are provided with correct types and values.`;
541+
Please check the tool's input schema using ${HelperTools.ACTOR_GET_DETAILS} tool and ensure all required parameters are provided with correct types and values.`;
542542
log.error(msg);
543543
await this.server.sendLoggingMessage({ level: 'error', data: msg });
544544
throw new McpError(

0 commit comments

Comments
 (0)