Skip to content

Support Grounding Metadata / Citation Propagation in in mcp_tool class #6081

Description

@davemorris-gcp

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Is your feature request related to a specific problem?

I don't know how to propagate grounding_metadata / sources from an MCP tool response into the LlmResponse class.

Describe the Solution You'd Like

It seems like the propagate_grounding_metadata feature of agent_tool would be a good way to achieve this in mcp_tool:

propagate_grounding_metadata: bool = False,

Impact on your work

When I register an ADK agent in Gemini Enterprise, that uses mcp_tool, the sources from the MCP server are stripped out when the LlmResponse is built and sent back to the GE UI.

Willingness to contribute

No


🟡 Recommended Information

Describe Alternatives You've Considered

Something like this: #1693 (comment)

Proposed API / Implementation

It seems like the propagate_grounding_metadata feature of agent_tool would be a good way to achieve this in mcp_tool:

propagate_grounding_metadata: bool = False,

Additional Context

N/A

Activity

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

Metadata

Metadata

Assignees

Labels

mcp[Component] This issues is related to MCP supporttools[Component] This issue is related to tools

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions