Skip to content

[BUG] Batch tool returns generic success messages instead of actual tool execution data #271

@namartaknev

Description

@namartaknev

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

1.10.2

Tools Package Version

0.2.9

Tools used

  1. batch
  2. current_time

Python Version

3.11

Operating System

macOS

Installation Method

pip

Steps to Reproduce

  1. Import and use the batch tool with multiple tool invocations
  2. Execute batch tool with tools that return data (e.g., http_request, use_aws)
  3. Observe the returned results from the batch execution

Expected Behavior

The batch tool should return the actual data/results from each tool execution, allowing the agent to access and use the returned data from parallel tool calls.

Actual Behavior

The batch tool returns generic success/error messages like "tool call was successful" without exposing the actual data returned by the individual tools. The agent receives confirmation that tools executed but cannot access their actual results.

Additional Context

Issue is in /src/strands_tools/batch.py lines 75-85. When tools execute successfully, the actual result data gets wrapped in a status object but isn't properly accessible. Error cases return generic "Tool missing" messages instead of actual error details.

Possible Solution

Modify the batch tool to return actual tool results directly instead of wrapping them in status objects. Ensure the returned data structure preserves the original tool result format that agents expect.

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions