Skip to content

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

@davemorris-gcp

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

Metadata

Metadata

Assignees

Labels

mcp[Component] Issues about MCP supporttools[Component] This issue is related to tools
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions