You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP tools output schema is not propagated to FunctionDeclaration #2828
Create a LLM agent with a MCP tool added to it that has an output schema.
Ask the LLM to describe the tool's output.
Currently, the LLM replies with something similar to:
The get_a_device tool returns a dictionary object representing a device. However, the specific fields and their descriptions within the dictionary are not provided in the tool's documentation.
Expected behavior
A response such as:
The get_a_device tool returns a GetADeviceResponse object, which contains detailed information about a specific device. The output includes the following attributes:
id: The unique identifier of the device.
...
Desktop (please complete the following information):
MacOS
Python version(python -V): 3.13.3
ADK version(pip show google-adk): 1.11, but verified the code to be unchanged in main as well
Model Information:
gemini-2.5-flash
Additional context
The "success" response above was created by adding the following code:
Activity
vishwa180 commentedon Oct 27, 2025
Please add me as an assignee, thanks.
vishwa180 commentedon Oct 29, 2025
Fixed it in c8e5340
GWeale commentedon Oct 29, 2025
@vishwa180 Thank you for closing! Please reopen if you still notice this issue