# call_read_tools_batch

Source: https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/

> Call several inspect tools serially and return per-tool results.

tool MCPstable

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

* **call_read_tools_batch**( [on_error](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Fon_error)?: "stop" | "continue", [operations](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Foperations): [Array](https://json-schema.org/understanding-json-schema/reference/array "array (JSON Schema)")<[object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")>, )

  tool \[[source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/batch_tools.py#L277)][¶](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch)

  Call several `inspect` tools serially and return per-tool results.

  Use when one agent turn needs several observations. Each nested call still goes through FastMCP validation and this server’s middleware. Only `inspect` tools are accepted; anything that changes tmux state is refused, whatever this server has enabled.

  This wrapper aggregates authority under its own name: a client rule keyed on a nested tool’s name does not fire for a call made through it. Read it as authority to invoke any `inspect` tool.

  * MCP request method

    `tools/call` Send `call_read_tools_batch` as the tool name, with the arguments below.

  ## Arguments[#](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.parameters)

  * **[`on_error`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Fon_error)**? = `"stop"` ("stop" | "continue")

  * **[`operations`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Foperations)** ([Array](https://json-schema.org/understanding-json-schema/reference/array "array (JSON Schema)")<[object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")>)

    * **[Items](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Foperations%2Fitems)** ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

      One nested MCP tool call for a batch wrapper.

      * **[`arguments`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Foperations%2Fitems%2Fproperties%2Farguments)**? ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

        Arguments for the nested tool call.

      * **[`tool`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Foperations%2Fitems%2Fproperties%2Ftool)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

        Registered MCP tool name to call.

      No other properties are accepted.

  No other arguments are accepted.

  ## Result[#](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.result)

  Returns [object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")

  * **[`failed`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Ffailed)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    Number of nested tool calls that failed.

  * **[`response_truncated`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresponse_truncated)**? = `false` ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

    True when nested result payloads were elided to keep the batch response under the server response cap.

  * **[`response_truncated_bytes`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresponse_truncated_bytes)**? = `0` ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    Approximate serialized bytes removed from nested result payloads.

  * **[`results`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults)**? ([Array](https://json-schema.org/understanding-json-schema/reference/array "array (JSON Schema)")<[object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")>)

    Per-operation results in attempted order.

    * **[Items](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems)** ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

      Per-operation result from a generic MCP tool batch.

      * **[`content`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fcontent)**? ([Array](https://json-schema.org/understanding-json-schema/reference/array "array (JSON Schema)")<[object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")>)

        MCP content blocks returned by the nested tool.

        * **[Items](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fcontent%2Fitems)** ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

      * **[`elapsed_seconds`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Felapsed_seconds)** ([number](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

        Time spent on this operation.

      * **[`error`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Ferror)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

        Error message for this operation, if it failed.

      * **[`index`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Findex)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

        Zero-based index in the submitted operation list.

      * **[`meta`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fmeta)**? = `null` ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

        Runtime metadata returned by the nested tool, if any.

        Matches one or more variants.

        * **[Variant 1](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fmeta%2FanyOf%2F0)** ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

      * **[`structured_content`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fstructured_content)**? = `null` ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

        Structured content returned by the nested tool, if any.

        Matches one or more variants.

        * **[Variant 1](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fstructured_content%2FanyOf%2F0)** ([object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)"))

      * **[`success`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Fsuccess)** ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

        True when this nested tool call succeeded.

      * **[`tool`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fresults%2Fitems%2Fproperties%2Ftool)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

        Nested tool name that was attempted.

  * **[`stopped_at`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fstopped_at)**? = `null` ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    Index where processing stopped because on_error=‘stop’, or None when all operations were attempted.

  * **[`succeeded`](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.output%2Fproperties%2Fsucceeded)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    Number of nested tool calls that succeeded.

  ## Annotations[#](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.annotations)

  * [`destructiveHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#destructiveHint)

    `true`

  * [`idempotentHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#idempotentHint)

    `false`

  * [`openWorldHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#openWorldHint)

    `true`

  * [`readOnlyHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#readOnlyHint)

    `false`

  ## Protocol data[#](https://libtmux.org/en/py/stable/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.schemas)

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "additionalProperties": false,
    "properties": {
      "on_error": {
        "default": "stop",
        "enum": [
          "stop",
          "continue"
        ],
        "type": "string"
      },
      "operations": {
        "items": {
          "additionalProperties": false,
          "description": "One nested MCP tool call for a batch wrapper.",
          "properties": {
            "arguments": {
              "additionalProperties": true,
              "description": "Arguments for the nested tool call.",
              "type": "object"
            },
            "tool": {
              "description": "Registered MCP tool name to call.",
              "type": "string"
            }
          },
          "required": [
            "tool"
          ],
          "type": "object"
        },
        "type": "array"
      }
    },
    "required": [
      "operations"
    ],
    "type": "object"
  }
  ```

  Output schema

  ```json
  {
    "description": "Structured result for a serial batch of MCP tool calls.",
    "properties": {
      "failed": {
        "description": "Number of nested tool calls that failed.",
        "type": "integer"
      },
      "response_truncated": {
        "default": false,
        "description": "True when nested result payloads were elided to keep the batch response under the server response cap.",
        "type": "boolean"
      },
      "response_truncated_bytes": {
        "default": 0,
        "description": "Approximate serialized bytes removed from nested result payloads.",
        "type": "integer"
      },
      "results": {
        "description": "Per-operation results in attempted order.",
        "items": {
          "description": "Per-operation result from a generic MCP tool batch.",
          "properties": {
            "content": {
              "description": "MCP content blocks returned by the nested tool.",
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            "elapsed_seconds": {
              "description": "Time spent on this operation.",
              "type": "number"
            },
            "error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Error message for this operation, if it failed."
            },
            "index": {
              "description": "Zero-based index in the submitted operation list.",
              "type": "integer"
            },
            "meta": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Runtime metadata returned by the nested tool, if any."
            },
            "structured_content": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Structured content returned by the nested tool, if any."
            },
            "success": {
              "description": "True when this nested tool call succeeded.",
              "type": "boolean"
            },
            "tool": {
              "description": "Nested tool name that was attempted.",
              "type": "string"
            }
          },
          "required": [
            "index",
            "tool",
            "success",
            "elapsed_seconds"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "stopped_at": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Index where processing stopped because on_error='stop', or None when all operations were attempted."
      },
      "succeeded": {
        "description": "Number of nested tool calls that succeeded.",
        "type": "integer"
      }
    },
    "required": [
      "succeeded",
      "failed"
    ],
    "type": "object"
  }
  ```
