Skip to main content
Glama

Liki — Professional AI Astrologer

city_info

Read-onlyIdempotent

根据城市名返回城市信息候选(内置表,不访问外链):每项含名称、行政区、层级、经纬度、IANA 时区与可选经度范围;locale 只本地化名称展示,不改变匹配集合。长度 1 可直接使用;多于 1(同名区县等)必须由用户确认,不得静默取第一个。未命中时请询问附近大城市,或让用户直接提供经纬度和时区。

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": {
      "city": "<city>"
    },
    "name": "city_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYes城市名称(中英文均可);同名区县请用省/市限定(如 北京朝阳区)。
localeNo可选显示语言:zh-Hans、zh-Hant 或 en;省略时返回内置表原文。

Output Schema

NameRequiredDescriptionDefault
candidatesYes地点候选(按相关度排序)。长度 1 可直接使用;多于 1 时必须由用户确认,不得静默取第一个。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description wisely spends its words elsewhere: it discloses the closed built-in dataset, states that locale affects display only and not the match set, and forbids silent first-item selection. The only minor gap is that it does not describe ordering or size limits of the candidate list.

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?

The sentences are dense but front-loaded: purpose first, then disambiguation policy, then failure handling. The one waste is the enumeration of returned fields (name, district, level, lat/lon, IANA timezone, longitude range), which is redundant given an output schema exists.

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?

For a two-parameter read-only lookup with an output schema, the description covers everything an agent needs: data provenance, display-vs-match semantics for locale, ambiguity policy, and a fallback path on no match. Nothing essential is deferred to the schema or left to inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns above baseline by clarifying that locale is presentational only and cannot narrow or widen results — a semantic an agent could easily get wrong from the schema alone. The city parameter's disambiguation hint is mostly duplicated from the schema, which keeps it from a 5.

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?

The opening clause gives a specific verb and resource ('根据城市名返回城市信息候选') and bounds the data source ('内置表,不访问外链'), which no sibling tool description would match. It even enumerates the returned fields, so an agent knows exactly what kind of lookup this is before opening the 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?

It prescribes concrete behavior for each outcome: a single candidate may be used directly, multiple candidates must be confirmed with the user and never silently truncated, and a miss requires asking for a nearby major city or user-supplied coordinates/timezone. These are explicit when/when-not rules rather than implied usage.

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.

Resources