@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.mjs CHANGED
@@ -4277,7 +4277,7 @@ function createRegexSearchToolDefinition() {
4277
4277
  function createGetSchemaToolDefinition() {
4278
4278
  return {
4279
4279
  name: "mcp_get_tool_schema",
4280
- 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.",
4280
+ 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.",
4281
4281
  inputSchema: {
4282
4282
  type: "object",
4283
4283
  properties: {
@@ -4417,7 +4417,13 @@ async function executeMetaTool(toolName, args, router, callToolFn) {
4417
4417
  const schema = {
4418
4418
  name: tool.name,
4419
4419
  description: tool.description,
4420
- inputSchema: tool.inputSchema
4420
+ inputSchema: tool.inputSchema,
4421
+ executionInstructions: {
4422
+ nextTool: "mcp_execute_tool",
4423
+ toolName: tool.name,
4424
+ serverId: tool.serverId,
4425
+ 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."
4426
+ }
4421
4427
  };
4422
4428
  return {
4423
4429
  content: [{ type: "text", text: JSON.stringify(schema, null, 2) }],