Skip to content

feat: add run_tools_batch for read-only MCP workflows#409

Open
QuantumByte-01 wants to merge 1 commit intosktime:mainfrom
QuantumByte-01:feat/run-tools-batch
Open

feat: add run_tools_batch for read-only MCP workflows#409
QuantumByte-01 wants to merge 1 commit intosktime:mainfrom
QuantumByte-01:feat/run-tools-batch

Conversation

@QuantumByte-01
Copy link
Copy Markdown

@QuantumByte-01 QuantumByte-01 commented Apr 30, 2026

Summary

  • Adds a new MCP tool run_tools_batch for batching read-only tool invocations in one request.
  • Supports MVP read-only tools: list_estimators, describe_estimator, get_available_tags, list_available_data.
  • Returns ordered per-operation results with index, tool, success, and either result or error.

Why

Agentic flows often make multiple read-only calls in sequence. Batching these calls reduces round-trips while keeping the MVP scope safe (no mutating tools).

Changes

  • Added src/sktime_mcp/tools/batch.py with run_tools_batch_tool.
  • Wired tool into server.py (list_tools schema + call_tool dispatcher).
  • Exported helper in src/sktime_mcp/tools/__init__.py.
  • Added unit tests in tests/test_batch_tools.py for success, malformed operations, and unsupported tools.

Validation

  • python -m ruff check src/sktime_mcp/tools/batch.py src/sktime_mcp/tools/__init__.py src/sktime_mcp/server.py tests/test_batch_tools.py
  • python -m pytest tests/test_batch_tools.py -q

Closes #408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH] Add run_tools_batch MCP tool for read-only agent workflows

1 participant