Skip to main content
Glama

Geocode Place

geocode_place
Read-only

把地名/地标转成经纬度坐标,便于在 find_nearby 中使用。返回含 matched_name(高德实际匹配到的 POI 名)与 confidence(0~1 匹配度):地名模糊时务必核对 matched_name 是否真的是用户要找的地方,不确定就把两者转告用户确认。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "place": "<place>"
    },
    "name": "geocode_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeYes地名/地标

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds real behavioral value beyond that by disclosing the return fields (matched_name, confidence as a 0-1 score) and the reliability caveat that ambiguous inputs may match the wrong POI. It does not mention rate limits, coordinate reference system, or failure behavior when nothing matches.

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

Conciseness4/5

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

Two sentences, front-loaded with purpose and followed by return values plus an ambiguity-handling instruction; no filler. Density is high but each clause carries actionable information, though the second sentence packs return fields and user-confirmation policy together.

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

Completeness4/5

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

There is no output schema, so the description must explain return values — and it does, naming matched_name and confidence with their semantics, plus how to handle low confidence. Missing only minor details such as what happens on zero matches or which coordinate system is returned, which are low-risk for this simple tool.

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?

There is only one parameter, and the schema already documents it at 100% coverage as '地名/地标'. The description restates essentially the same meaning without adding format, language, or disambiguation hints for the input itself. Baseline 3 applies when the schema carries the parameter semantics.

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

Purpose5/5

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

States a specific verb and resource: convert a place name/landmark into lat/lng coordinates, and ties it to a concrete downstream use in find_nearby. An agent can immediately distinguish this lookup tool from siblings like find_nearby or nearby_attractions.

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

Usage Guidelines4/5

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

Gives clear workflow context (geocode first so the result can be fed to find_nearby) and prescribes an action for the ambiguous-name case: check matched_name and, if unsure, relay both values to the user. It stops short of explicit when-not-to-use conditions or alternatives for already-known coordinates.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.