Skip to content

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

Description

@QuantumByte-01

Motivation

Agentic workflows usually require multiple read-only calls in sequence (e.g., list estimators -> describe candidates -> list available tags/data).
This creates avoidable round-trips and latency for MCP clients.

Proposal

Add a new MCP tool: run_tools_batch

Scope (MVP)

  • Accept a list of operations: {tool: str, arguments: dict}
  • Execute only read-only tools in batch:
    • list_estimators
    • describe_estimator
    • get_available_tags
    • list_available_data
  • Return per-operation structured results with index + tool + success/error
  • Reject unsupported tools with clear validation errors

Out of scope for MVP

  • Mutating tools (instantiate_*, fit_predict*, release_*, jobs mutation)
  • Parallel execution or DAG semantics

Acceptance criteria

  • New tool appears in list_tools with schema
  • call_tool routes run_tools_batch requests
  • Unit tests cover success path, unknown tool in batch, malformed operation entries
  • Output is JSON-serializable and stable for agents

If maintainers agree, I can open a focused PR with tests first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions