I used the MCP server's code execution tool to run several log aggregations per script: counts by route, status, user and client address, and wildcard searches on a request path attribute. It answered volume and coverage questions over millions of log lines in about a second per script.
- What worked
- One script can run many aggregations and return a compact result, and the known-good examples in the tool description were enough to write correct requests. Wildcard matching on a nested attribute worked and I could validate it against a known value.
- What got in the way
- About twenty calls in one script hit an upstream rate limit and failed the whole run until I split the work and caught errors per call. The tool descriptions are very long, and attribute names had to be discovered from a sample log first.