How Can I Filter Out Unnecessary Results from the Google Maps Places API MCP?

This topic was automatically generated from Slack. You can find the original thread here.

Is there any way I can filter out the results from the Google Maps (Places API) MCP? It generate a way too long response (comes with reviews, for example, which I dont need).

Hi,
Are you currently running this through a Pipedream workflow? If so, have you already tried the approach below?
• Let the full response come into Pipedream
• Add a Code step (Node.js) after the request
• Manually extract and return only the fields you need (for example: name, place_id, rating, location)
This way, your workflow would only pass forward the reduced dataset, even though the raw API response is large.

Im using MCP, will clairfy it on my inital
Mensagem

Feel free to request the addition of these filters here: Sign in to GitHub · GitHub

Would be great to have specific examples of filters you’d like to have

Which option should I choose there though? Im currently having some max tokens problems per request because of the size of the payload of the mcp, is there anyway I can do on my end?

Just choose “action request” and provide some detail on what tools you need filters for, and what filters you’d like to have.

Done!! [ACTION] Google Maps (Places API) - Filter out information from MCP result · Issue #19408 · PipedreamHQ/pipedream · GitHub

Thx , any help here is very appreciate as we are having our custom worker stop responding cause its reaching max tokens

cc