区域洞察
区域洞察用于定位 POI,并对指定圆形区域内的 POI 进行分析。所有坐标均使用 GCJ02。
调用流程
- 用户只提供地点名称、商圈或地址时,先调用
post_region_insight_poi_location获取候选 POI 和 GCJ02 坐标。 - 用户需要 POI 数量、分类或品牌分布时,调用
post_region_insight_fence_poi_overview。 - 用户需要具体 POI 明细时,调用
post_region_insight_fence_poi_list。
不得将其他坐标系直接当作 GCJ02 使用。地点搜索返回多个候选项且无法确定目标时,应先让用户确认。
POI 定位
工具:post_region_insight_poi_location
keyword必填。- 可用
province_name、city_name、district_name缩小范围。 page从 1 开始,page_size最大为 50。- 可按
brand_name或category_id进一步过滤。 - 返回
data.count和候选项data.list;每个候选项包含 POI ID、名称、地址、行政区划及
gcj02_longitude、gcj02_latitude。
围栏内 POI 概览
工具:post_region_insight_fence_poi_overview
circle_fences必填,每个围栏包含gcj02_longitude、gcj02_latitude和radius。- 半径范围为 1 至 5000 米。
category_ids和brand_names均最多传入 100 项。group_by_fields仅支持category_id、brand_id;未指定时按分类聚合。bucket_size范围为 1 至 10000。- 返回
data.total_hits和data.buckets;聚合桶包含分组键、POI 数量及可能存在的子聚合桶。
围栏内 POI 列表
工具:post_region_insight_fence_poi_list
- 围栏和过滤参数规则与 POI 概览一致。
- 接口不分页,最多返回 10000 条 POI。
- 数据量较大时,优先建议用户增加分类或品牌过滤条件。
- 返回
data.count和data.list;POI 明细包含名称、地址、分类、品牌和 GCJ02 空间信息。 - 服务端接口契约固定:响应中的
data.list[].coordinate表示 GCJ02 点坐标,
data.list[].fence_gcj02 表示 GCJ02 围栏。不得要求服务端修改既有字段。
- 向用户说明、生成结构化结果或传递给后续工具时,必须将
coordinate明确表述为
gcj02_coordinates;不得原样暴露或继续使用含义不明确的 coordinate 字段名。
鉴权和错误处理
- WorkBuddy 使用用户配置的
REGION_INSIGHT_API_KEY发起 Bearer Token 鉴权。 - HTTP 401:提示用户前往
https://data.isjike.com/get-mcp重新生成 API Key,并在
Connector 设置中替换旧值;不得要求用户在对话中发送 Key。
- HTTP 429:提示调用频率超限,稍后重试。
- 服务端错误或超时:说明查询未完成,可在避免重复并发调用的前提下重试一次。
- 本 Connector 的工具均为只读查询,不会修改或删除业务数据。
English Guide
- Use
post_region_insight_poi_locationto resolve a place name to candidate POIs and GCJ-02 coordinates. - Use
post_region_insight_fence_poi_overviewfor POI counts and category or brand distributions. - Use
post_region_insight_fence_poi_listwhen individual POI records are required. - Accept and pass only confirmed GCJ-02 coordinates using explicit
gcj02_*field names. - Never ask the user to paste an API Key into the conversation. For HTTP 401, direct the user to
https://data.isjike.com/get-mcp and the Connector settings.
- All tools are read-only. Retry a server error or timeout at most once without creating concurrent duplicates.