Skip to main content
Glama

Nearby Attractions

nearby_attractions
Read-only

查找某个地点附近的景点与商圈,与「附近的数字人」互补,构成完整的地图发现能力。返回景点(attractions)与商圈(business_districts)两组,各带距离。调用后会以「PowPow 附近发现」卡片组件展示景点与商圈列表。必须先向用户确认地点(用户说「我附近」时问他哪个城市/商圈),不要猜坐标。

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": "nearby_attractions"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeYes要查找的地点名,如『国贸』『西湖』;用户说「我附近」时先问清是哪里
radius_metersNo搜索半径(米),默认 3000

Output Schema

NameRequiredDescriptionDefault
viewYes
countYes
placeYes
totalYes
attractionsYes
geocode_noteYes
business_districtsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: results come back as two labeled groups (attractions and business_districts) each carrying distance, and the call triggers a 'PowPow 附近发现' card UI. It doesn't discuss empty results or error behavior, keeping it short of a 5.

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 tight sentences: first the purpose and complement, then the mandatory confirmation rule, bolded and front-loaded where it matters most. The location-confirmation clause duplicates schema text rather than adding a new fact, which is the only waste.

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

Completeness5/5

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

An output schema exists, so return values need not be enumerated, and the annotations cover read-only/open-world semantics. The description still supplies the two-group output shape, the UI surface, and the critical pre-call interaction rule—everything an agent needs to invoke it correctly.

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 coverage is 100%, and the schema's `place` description already contains the 'ask which place first' guidance, so the description largely restates it. `radius_meters` and its 3000 default are never mentioned in the description. Baseline 3 is appropriate.

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 (查找某地点附近的景点与商圈) and explicitly positions it against a sibling capability (与「附近的数字人」互补). An agent can distinguish it from find_nearby without opening either schema.

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

Usage Guidelines5/5

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

Gives both a positive trigger (nearby discovery) and an explicit precondition: when the user says「我附近」, ask which city/business district rather than guessing coordinates. The alternative (附近的数字人) is named, so routing is unambiguous.

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.