Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add surendranb/google-analytics-mcp --skill filter-structuresgit clone --depth 1 https://github.com/surendranb/google-analytics-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/surendranb/google-analytics-mcp/filter-structures)<a href="https://agentmods.dev/skills/surendranb/google-analytics-mcp/filter-structures"><img src="https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/filter-structures/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/surendranb/google-analytics-mcp/filter-structures"><img src="https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/filter-structures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00919 |
| Opus 5.5 | $0.00014 | $0.00368 |
| Sonnet 5.5 | $0.00007 | $0.00184 |
| Haiku 4.5 | $0.00003 | $0.00092 |
Grade A, and why
filter-structures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Filter Structures
The correct shape for dimension_filter in get_ga4_data.
Wrong structure returns an "Invalid dimension_filter" error. Use these templates.
The one rule
Every leaf filter must be wrapped in a "filter" key. fieldName never appears at the top level.
// WRONG — fieldName at top level
{"fieldName": "sessionSource", "stringFilter": {"value": "google"}}
// CORRECT — wrapped in "filter"
{"filter": {"fieldName": "sessionSource", "stringFilter": {"value": "google"}}}
Template: single field filter
{
"filter": {
"fieldName": "DIMENSION_NAME",
"stringFilter": {
"value": "VALUE",
"matchType": "EXACT"
}
}
}
matchType options: EXACT, BEGINS_WITH, ENDS_WITH, CONTAINS, FULL_REGEXP, PARTIAL_REGEXP
Template: AND — all conditions must match
{
"andGroup": {
"expressions": [
{"filter": {"fieldName": "deviceCategory", "stringFilter": {"value": "mobile", "matchType": "EXACT"}}},
{"filter": {"fieldName": "country", "stringFilter": {"value": "United States", "matchType": "EXACT"}}}
]
}
}
Template: OR — any condition matches
{
"orGroup": {
"expressions": [
{"filter": {"fieldName": "sessionDefaultChannelGroup", "stringFilter": {"value": "Organic Search", "matchType": "EXACT"}}},
{"filter": {"fieldName": "sessionDefaultChannelGroup", "stringFilter": {"value": "Organic Social", "matchType": "EXACT"}}}
]
}
}
Template: NOT — exclude matching sessions
{
"notExpression": {
"filter": {
"fieldName": "sessionDefaultChannelGroup",
"stringFilter": {"value": "Direct", "matchType": "EXACT"}
}
}
}
Template: IN LIST — match any of several values
{
"filter": {
"fieldName": "country",
"inListFilter": {
"values": ["United States", "United Kingdom", "Canada"]
}
}
}
Common wrong keys → correct keys
| Wrong key | Correct key |
|---|---|
and_filter |
andGroup |
or_filter |
orGroup |
not_filter |
notExpression |
filters |
expressions |
field |
fieldName |
stringFilter.exact |
stringFilter.value |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 123 lines · 34 tokens per session scan A 71d8e0804231
filter-structures is a skill published in the GitHub repository surendranb/google-analytics-mcp (244 stars, last pushed 5d ago), licensed MIT. It adds 34 tokens to every session and 919 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
filter-structures compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| filter-structuressurendranb/google-analytics-mcp | Skill | 244 | 5d ago | MIT | A | 34 | Claude Code |
| pp-google-analyticsmvanhorn/printing-press-library | Skill | 2.1k | yesterday | none | C | 37 | Claude Code, Codex |
| google-credentialspowehi-eu/google-suite-seo-mcp | Skill | 5 | 3mo ago | MIT | A | 39 | Claude Code, Codex |
| seo-dataanthonylee991/seo-data | Skill | 24 | 6mo ago | Apache-2.0 | A | 140 | Claude Code, Codex |
| google-seo-auditpowehi-eu/google-suite-seo-mcp | Skill | 5 | 3mo ago | MIT | A | 25 | Claude Code, Codex |
| web-analyticsSeoToolkit/web-analytics-agent-skill | Skill | 49 | 4mo ago | none | A | 47 | Claude Code, Codex |
| ga4-reportnoviq-ai/google-analytics-mcp | Skill | 1 | 7mo ago | Apache-2.0 | A | 0 | Claude Code |