@mcp-ts/sdk 1.5.2 → 1.5.3

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/dist/index.js CHANGED
@@ -4376,7 +4376,7 @@ function createRegexSearchToolDefinition() {
4376
4376
  function createGetSchemaToolDefinition() {
4377
4377
  return {
4378
4378
  name: "mcp_get_tool_schema",
4379
- description: "Get the full input schema (parameters) for a specific tool. Call this after mcp_search_tool_bm25 to get the parameter details needed to call a tool correctly.",
4379
+ description: "Get the full input schema (parameters) for a specific tool. Call this after mcp_search_tool_bm25 to get the parameter details needed to call a tool correctly. Do NOT call the discovered tool directly; after reading the schema, call mcp_execute_tool.",
4380
4380
  inputSchema: {
4381
4381
  type: "object",
4382
4382
  properties: {
@@ -4516,7 +4516,13 @@ async function executeMetaTool(toolName, args, router, callToolFn) {
4516
4516
  const schema = {
4517
4517
  name: tool.name,
4518
4518
  description: tool.description,
4519
- inputSchema: tool.inputSchema
4519
+ inputSchema: tool.inputSchema,
4520
+ executionInstructions: {
4521
+ nextTool: "mcp_execute_tool",
4522
+ toolName: tool.name,
4523
+ serverId: tool.serverId,
4524
+ note: "Do not call this discovered tool directly unless it was explicitly registered as a runtime tool. Execute it via mcp_execute_tool and pass these parameters inside args."
4525
+ }
4520
4526
  };
4521
4527
  return {
4522
4528
  content: [{ type: "text", text: JSON.stringify(schema, null, 2) }],