Is it possible to send different data to MCP App vs Agent? #426
Unanswered
rohithrangaraju-tomtom
asked this question in
Q&A
Replies: 1 comment
|
Yes. MCP Apps defines exactly this split:
For example: return {
content: [{
type: "text",
text: "Route: 12.4 km, 18 minutes, 3 legs."
}],
structuredContent: {
legs: fullCoordinateArrays,
boundary: fullBoundaryGeometry
}
};The host adds If the App later needs refresh/pagination/detail operations that should not be visible to the model, expose app-only tools: _meta: {
ui: { visibility: ["app"] }
}That keeps both the large data and the supporting UI operations out of the agent's tool/context budget. The project overview documents the content split directly: Data delivery. The normative wording is in the Apps specification, which describes |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Pre-submission Checklist
Question Category
Your Question
The Challenge
The same content from a tool result goes to both:
The MCP App (via app.ontoolresult)
The AI agent (as tool result in conversation)
For geospatial tools, this is problematic:
App needs: Full coordinate arrays (legs[].points[] for route polylines, boundary[] for polygons)
Agent needs: Just summaries (distance, duration, counts) - coordinate arrays waste tokens
Is there a way in the current MCP Apps/MCP architecture to:
Send full data to the App for visualization
Send trimmed data to the agent
All reactions