TreePlotter MCP by usefulapi
Read assets, work orders and service requests; add and change assets and work orders in TreePlotter.
我该使用它吗
质量与安全性
发现(5)
- LOW在 treeplotter_get_inventory_metadata 中
- LOW在 treeplotter_list_translated_features 中
- LOW在 treeplotter_list_work_activities 中
- LOW在 treeplotter_list_service_requests 中
- LOW在 treeplotter_get_service_request 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"treeplotter": {
"url": "https://treeplotter.usefulapi.io/mcp"
}
}
}远程端点
https://treeplotter.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(17)
🟢treeplotter_list_inventories
List the inventory layers in this TreePlotter folder (for example trees), with alias and geometry type. Good first call. GET /<folder>/inventories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_get_inventory_metadata(inventory)
Get the fields, field types and lookup tables of one inventory layer. Use it to read field names before you create or update features. GET /<folder>/metadata/inventories/<inventory>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
}
},
"required": [
"inventory"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_features(inventory, offset, limit, bbox, order, ...)
List GeoJSON features (assets) of one inventory layer, one page at a time. Use offset to get the next page. GET /<folder>/inventories/<inventory>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
},
"offset": {
"description": "Items to skip (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"limit": {
"description": "Items per page, 1-5000 (default 1000).",
"type": "integer",
"minimum": 1,
"maximum": 5000
},
"bbox": {
"description": "Bounding box as left,bottom,right,top (xmin,ymin,xmax,ymax).",
"type": "string",
"pattern": "^-?[\\d.]+,-?[\\d.]+,-?[\\d.]+,-?[\\d.]+$"
},
"order": {
"description": "Sort order (default asc).",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"dateFilterField": {
"description": "Internal field name for date filtering (for example last_modified).",
"type": "string",
"maxLength": 100
},
"dateFilterGTEMillis": {
"description": "Only features with dateFilterField at or after this time (ms).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"dateFilterLTMillis": {
"description": "Only features with dateFilterField before this time (ms).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"inventory"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_translated_features(inventory, dateFilterField, dateFilterGTEMillis, dateFilterLTMillis)
List features of one inventory layer with lookup values translated to readable text. Read-only. GET /<folder>/translated/inventories/<inventory>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
},
"dateFilterField": {
"description": "Internal field name for date filtering (for example last_modified).",
"type": "string",
"maxLength": 100
},
"dateFilterGTEMillis": {
"description": "Milliseconds since 1970-01-01 UTC.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"dateFilterLTMillis": {
"description": "Milliseconds since 1970-01-01 UTC.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"inventory"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_get_feature(inventory, pid)
Get one feature (asset) of an inventory layer by its Primary ID. GET /<folder>/inventories/<inventory>/<pid>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
},
"pid": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Primary ID (pid) of the item, from a list tool."
}
},
"required": [
"inventory",
"pid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_work_activities
List the work activity types (for example Prune Tree) that work records can use. GET /<folder>/wom/workactivities.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_work_fields
List the fields that work records can use, with their layer names. GET /<folder>/wom/workfields.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_work_records
List work records (work done on assets). GET /<folder>/wom/workrecords.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_service_requests
List service requests (citizen or customer requests about assets). GET /<folder>/wom/servicerequests.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_get_service_request(pid)
Get one service request by its ID. GET /<folder>/wom/servicerequests/<pid>.
输入模式
{
"type": "object",
"properties": {
"pid": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Primary ID (pid) of the item, from a list tool."
}
},
"required": [
"pid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_list_jobs
List work orders (jobs). GET /<folder>/wom/jobs.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_get_job(pid)
Get one work order (job) by its ID. GET /<folder>/wom/jobs/<pid>.
输入模式
{
"type": "object",
"properties": {
"pid": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Primary ID (pid) of the item, from a list tool."
}
},
"required": [
"pid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢treeplotter_get_jobs_metadata
Get the field metadata for work orders (jobs). GET /<folder>/wom/jobs/metadata.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴treeplotter_create_feature(inventory, data)
Create a new feature (asset) in an inventory layer. Point layers need lat and lng in data. Check field names with treeplotter_get_inventory_metadata first. POST /<folder>/inventories/<inventory>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values as an object. Field names come from treeplotter_get_inventory_metadata."
}
},
"required": [
"inventory",
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴treeplotter_update_feature(inventory, pid, data)
Update fields of one feature (asset) by its Primary ID. Only the fields you send change. PUT /<folder>/inventories/<inventory>/<pid>.
输入模式
{
"type": "object",
"properties": {
"inventory": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "Inventory layer name, from treeplotter_list_inventories (for example trees)."
},
"pid": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Primary ID (pid) of the item, from a list tool."
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values as an object. Field names come from treeplotter_get_inventory_metadata."
}
},
"required": [
"inventory",
"pid",
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴treeplotter_create_job(data)
Create a new work order (job). Check field names with treeplotter_get_jobs_metadata first. POST /<folder>/wom/jobs.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values as an object. Field names come from treeplotter_get_inventory_metadata."
}
},
"required": [
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴treeplotter_update_job(pid, data)
Update fields of one work order (job) by its ID, for example its status. Only the fields you send change. PUT /<folder>/wom/jobs/<pid>.
输入模式
{
"type": "object",
"properties": {
"pid": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Primary ID (pid) of the item, from a list tool."
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Field values as an object. Field names come from treeplotter_get_inventory_metadata."
}
},
"required": [
"pid",
"data"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据