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 agentmods add rules/kevinwuhoo/google-maps-geocoding-mcp/generalgit clone --depth 1 https://github.com/kevinwuhoo/google-maps-geocoding-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/rules/kevinwuhoo/google-maps-geocoding-mcp/general)<a href="https://agentmods.dev/rules/kevinwuhoo/google-maps-geocoding-mcp/general"><img src="https://agentmods.dev/badge/rules/kevinwuhoo/google-maps-geocoding-mcp/general.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00424 | $0.00424 |
| Opus 5 | $0.00212 | $0.00212 |
| Sonnet 5 | $0.00085 | $0.00085 |
| Haiku 4.5 | $0.00042 | $0.00042 |
Grade A, and why
general 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 3d 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Core Principles
Maximize Library Usage
- Always leverage the official
@googlemaps/google-maps-services-jslibrary - Use library types as the foundation, avoiding custom type definitions where possible
- Let the library handle validation and API interaction details
Type Management Strategy
- Use TypeScript utility types (
Omit,Pick,&) to derive types from the library - Override only what's necessary for MCP/LLM simplicity:
- Enums → strings (e.g.,
Languageenum →string) - Complex unions → single format (e.g.,
LatLngunion →stringonly) - Optional fields that need different handling
- Enums → strings (e.g.,
- Never create parallel type hierarchies - derive from the source
Direct API Responses
- Return Google API responses directly without unnecessary wrappers
- Don't add metadata that can become stale (versions, timestamps)
- Trust the official API response structure
Tool Design for LLMs
- Split multi-mode operations into separate, single-purpose tools
- Keep parameter schemas flat and predictable
- Use descriptive tool names that clearly indicate their purpose
- Provide comprehensive descriptions and examples in tool schemas
Avoid Maintenance Burdens
- No hardcoded version strings that need manual updates
- No constants that duplicate library information
- Let TypeScript's type system enforce correctness
- Do not maintain backwards compatibility
Development Practices
- Type Safety First: Let TypeScript catch errors at compile time
- Validate at Boundaries: Validate MCP inputs before passing to library
- Fail Fast: Return errors immediately, don't suppress them
- Keep It Simple: If the library provides it, use it directly
- Document Intent: Comments should explain "why", not "what". Do not write comments for self documenting code.
Testing Approach
- Focus on parameter validation and transformation logic
- Mock the Google Maps client for unit tests
- Use real API calls only for integration tests
- Test error handling paths explicitly
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.
- 3d ago First seen · 56 lines · 424 tokens per session scan A 1dfd3f130537
general is a cursor rule published in the GitHub repository kevinwuhoo/google-maps-geocoding-mcp (0 stars, last pushed 7mo ago), licensed MIT. It adds 424 tokens to every session, about $0.0021 per session on Opus 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-31.
Other cursor rules, from other repositories
errors
Please don't fix any code errors unless reported by XcodeBuildMCP server tool responses.
swift-development
Swift development: SwiftUI, Combine, async/await, iOS patterns, and Apple platform conventions.
cursorrules
When the user asks about social media, use social-media-ai-mcp tools: schedulepost, generatehashtags, analyzeengagement, plancontentcalendar, getaudienceinsights.
cursorrules
This is an MCP (Model Context Protocol) server that provides Notion integration tools and AI agent workflows. Built with TypeScript, using the MCP SDK for server implementation.
lighter-safety
Safety contract for the Lighter MCP server. Apply whenever a lighter tool is invoked.
nix-security
Nix Security and Sandboxing.