forked from AtomDancing/tlbm-mcp
feat: 新增获取开通城市接口
- get_open_cities: 获取开通城市列表 (/api/config/open-cities) - 支持可选参数 adcode 按行政区划筛选 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+21
-8
@@ -58,7 +58,7 @@ const TOOLS = [
|
||||
// === 车辆状态 ===
|
||||
{
|
||||
name: "list_vehicle_status",
|
||||
description: "查询所有车辆最新状态,按电量由低到高排序",
|
||||
description: "查询所有车辆最新状态,按电量由低到高排序(当前仅支持满满)",
|
||||
inputSchema: { type: "object", properties: {} },
|
||||
endpoint: { method: "GET", path: "/api/vehicle/status/list" },
|
||||
},
|
||||
@@ -76,7 +76,7 @@ const TOOLS = [
|
||||
},
|
||||
{
|
||||
name: "list_vehicle_by_status",
|
||||
description: "根据状态码查询车辆列表",
|
||||
description: "根据状态码查询车辆列表(当前仅支持满满)",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -114,7 +114,7 @@ const TOOLS = [
|
||||
},
|
||||
{
|
||||
name: "list_vehicle_unavailability",
|
||||
description: "统计所有车辆不可用时长,按不可用时长从小到大排序",
|
||||
description: "统计所有车辆不可用时长,按不可用时长从小到大排序(当前仅支持满满)",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -125,7 +125,7 @@ const TOOLS = [
|
||||
},
|
||||
{
|
||||
name: "get_vehicle_drive_mile",
|
||||
description: "统计车辆在任务中和非任务中的行驶距离",
|
||||
description: "统计车辆在任务中和非任务中的行驶距离(当前仅支持满满)",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -168,7 +168,7 @@ const TOOLS = [
|
||||
// === 订单管理 ===
|
||||
{
|
||||
name: "get_order_summary",
|
||||
description: "根据外部订单号查询运单汇总信息",
|
||||
description: "根据外部订单号查询运单汇总信息(当前仅支持满满)",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -180,13 +180,13 @@ const TOOLS = [
|
||||
},
|
||||
{
|
||||
name: "get_today_orders",
|
||||
description: "查询当日运单汇总列表",
|
||||
description: "查询当日运单汇总列表(当前仅支持满满)",
|
||||
inputSchema: { type: "object", properties: {} },
|
||||
endpoint: { method: "GET", path: "/api/order/summary/today" },
|
||||
},
|
||||
{
|
||||
name: "get_orders_by_date",
|
||||
description: "查询指定日期的运单汇总列表",
|
||||
description: "查询指定日期的运单汇总列表(当前仅支持满满)",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -198,7 +198,7 @@ const TOOLS = [
|
||||
},
|
||||
{
|
||||
name: "get_unfinished_orders",
|
||||
description: "查询所有未完成的运单汇总列表",
|
||||
description: "查询所有未完成的运单汇总列表(当前仅支持满满)",
|
||||
inputSchema: { type: "object", properties: {} },
|
||||
endpoint: { method: "GET", path: "/api/order/summary/unfinished" },
|
||||
},
|
||||
@@ -219,6 +219,19 @@ const TOOLS = [
|
||||
endpoint: { method: "GET", path: "/api/order/rpc/query" },
|
||||
},
|
||||
|
||||
// === 配置查询 ===
|
||||
{
|
||||
name: "get_open_cities",
|
||||
description: "获取开通城市列表",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
adcode: { type: "string", description: "行政区划代码(可选),如 320200 表示无锡" },
|
||||
},
|
||||
},
|
||||
endpoint: { method: "GET", path: "/api/config/open-cities" },
|
||||
},
|
||||
|
||||
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user