Skip to main content
Glama
ClawyPro

Clawy MCP Server

by ClawyPro

google_maps_geocode

Convert addresses to geographic coordinates or coordinates to addresses using Google Maps geocoding services.

Instructions

Convert addresses to coordinates (geocoding) or coordinates to addresses (reverse geocoding) using Google Maps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressNoAddress to geocode
latlngNoCoordinates for reverse geocode (e.g., '37.4979,127.0276')
languageNoLanguage for results

Implementation Reference

  • The generic tool handler in src/index.ts that handles 'google_maps_geocode' by sending a request to its defined endpoint.
      server.tool(
        tool.name,
        tool.description,
        tool.inputSchema.shape,
        async (params) => {
          const method = tool.method || "POST";
          const result = await gatewayRequest(method, tool.endpoint, params as Record<string, unknown>);
    
          if (result.error) {
            return {
              content: [{ type: "text" as const, text: `Error (${result.status}): ${result.error}` }],
              isError: true,
            };
          }
    
          const text = typeof result.data === "string"
            ? result.data
            : JSON.stringify(result.data, null, 2);
    
          return {
            content: [{ type: "text" as const, text }],
          };
        },
      );
    }
  • Schema definition and endpoint mapping for 'google_maps_geocode'.
    {
      name: "google_maps_geocode",
      description: "Convert addresses to coordinates (geocoding) or coordinates to addresses (reverse geocoding) using Google Maps.",
      inputSchema: z.object({
        address: z.string().optional().describe("Address to geocode"),
        latlng: z.string().optional().describe("Coordinates for reverse geocode (e.g., '37.4979,127.0276')"),
        language: z.string().optional().describe("Language for results"),
      }),
      endpoint: "/v1/google-maps/geocode",
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the basic functionality but lacks critical details: whether this requires API keys, rate limits, authentication needs, error handling, or what the output format looks like. For a tool that likely interacts with an external service, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without any wasted words. It's appropriately sized and front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (interacting with Google Maps API), lack of annotations, and no output schema, the description is insufficient. It doesn't cover authentication requirements, rate limits, error cases, or return format, leaving significant gaps for an AI agent to use this tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters (address, latlng, language) with clear descriptions. The description adds no additional parameter semantics beyond what's in the schema, maintaining the baseline score for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's dual functionality: converting addresses to coordinates (geocoding) and coordinates to addresses (reverse geocoding) using Google Maps. It specifies the verb (convert) and resource (addresses/coordinates), though it doesn't explicitly differentiate from sibling tools like google_maps_directions or google_maps_places.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like google_maps_directions or google_maps_places, nor does it specify prerequisites, exclusions, or appropriate contexts for geocoding versus reverse geocoding.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ClawyPro/clawy-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server