Repository navigation
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—the documented app-only tool pattern fits this:
const result = await app.callServerTool({
name: "get_route_geometry",
arguments: { routeId },
});Render that result locally without sending the coordinate arrays through This uses an extra App-to-server call, but the model-facing response stays small. |
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