| name | resource |
| description | SmartCMP resource browsing, detail inspection, and user-scoped resource operation skill. Use when the user asks to list resources, list virtual machines, show VM details, list available/executable operations, execute resource operations, run day-2 changes, start, stop, restart, refresh, suspend, resume, create snapshot, restore snapshot, power on, power off, 查看云资源列表、查看云主机详情、查看可执行操作、执行资源操作、开机、关机. Use `/nodes/search` for list browsing with visible status, `PATCH /nodes/{id}/view` for one-host detail inspection until the CMP view API bug is fixed, `GET /nodes/{category}/{id}/resource-actions` for current-user executable operations, and `POST /nodes/resource-operations` for no-parameter resource operations. |
| provider_type | smartcmp |
| instance_required | true |
| triggers | ["查看云资源列表","查看云资源","查看所有资源","查看我的资源","查看云主机列表","查看云主机","查看所有云主机","查看主机详情","查看云主机详情","分析云主机属性","云资源开机","云资源关机","云主机开机","云主机关机","启动云资源","停止云资源","启动云主机","停止云主机","开机","关机","查询资源操作","查看资源操作","查看可执行操作","查看云主机可执行操作","执行资源操作","执行云主机操作","list resources","show resources","list virtual machines","show virtual machines","show vm details","list resource operations","show resource operations","executable resource operations","execute resource operation","run resource operation","execute day-2 operation","run day-2 change","change resource state","start resource","stop resource","restart resource","refresh resource","suspend resource","resume resource","start vm","stop vm","restart vm","refresh vm","suspend vm","resume vm","power on vm","power off vm","create snapshot","take snapshot","restore snapshot"] |
| use_when | ["User wants a standalone list of SmartCMP cloud resources with current status","User wants a standalone list of SmartCMP cloud hosts or virtual machines with current status","User wants to inspect one cloud host by resource ID and analyze its current properties","User wants to search resources or virtual machines by keyword through the CMP UI list endpoint","User wants to see which resource operations the current SmartCMP user can execute on a resource","User wants to execute an enabled no-parameter operation on an existing SmartCMP cloud resource or virtual machine"] |
| avoid_when | ["User wants resource compliance, lifecycle, supportability, or security analysis (use resource-compliance skill)","User wants generic reference data browsing unrelated to resources (use datasource skill)","User wants to submit or modify a SmartCMP request (use request skill)"] |
| examples | ["List my virtual machines","Show all cloud resources","Show details for virtual machine <resource-id>","List executable operations for vm-a","Stop vm-a","Execute create_snapshot on this virtual machine","Start the first virtual machine","Stop resource 3615d791-36b4-4fa1-be61-f8550c7fbcb8"] |
| related | ["datasource","resource-compliance","resource-pool","request"] |
| tool_list_name | smartcmp_list_all_resource |
| tool_list_description | List SmartCMP resources or virtual machines from the standalone CMP UI list endpoint and show each item's current status. Use `scope=all_resources` for 查看所有资源 and `scope=virtual_machines` for 查看所有云主机. `query_value` is optional. If the user only asked to browse resources, return the numbered list. If the user asked for a resource operation, use the list result as target-resolution evidence and continue to confirmation or clarification. |
| tool_list_entrypoint | scripts/list_all_resource.py |
| tool_list_groups | ["cmp","datasource"] |
| tool_list_capability_class | provider:smartcmp |
| tool_list_priority | 98 |
| tool_list_result_mode | llm |
| tool_list_parameters | {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": ["all_resources", "virtual_machines"],
"description": "Resource listing scope. Use `all_resources` for 云资源 and `virtual_machines` for 云主机."
},
"query_value": {
"type": "string",
"description": "Optional keyword used to filter resources."
},
"page": {
"type": "integer",
"description": "Page number. Default: 1.",
"default": 1
},
"size": {
"type": "integer",
"description": "Page size. Default: 20.",
"default": 20
}
}
}
|
| tool_detail_name | smartcmp_resource_detail |
| tool_detail_description | Summarize one SmartCMP cloud host by resource ID using `PATCH /nodes/{id}/view` until the CMP view API bug is fixed. Use this for 查看云主机详情 or 分析云主机属性. |
| tool_detail_entrypoint | scripts/resource_detail.py |
| tool_detail_groups | ["cmp","datasource","resource"] |
| tool_detail_capability_class | provider:smartcmp |
| tool_detail_priority | 108 |
| tool_detail_result_mode | tool_only_ok |
| tool_detail_cli_positional | ["resource_id"] |
| tool_detail_parameters | {
"type": "object",
"properties": {
"resource_id": {
"type": "string",
"description": "SmartCMP resource ID for the cloud host to inspect."
}
},
"required": ["resource_id"]
}
|
| tool_operations_name | smartcmp_list_resource_operations |
| tool_operations_description | List enabled no-parameter SmartCMP resource operations executable by the current user through `GET /nodes/{category}/{resource_id}/resource-actions`. Accepts a SmartCMP detail URL such as `#/main/virtual-machines/<id>/details` or a raw resource UUID. Do not use resource type definition or built-in action endpoints as fallback. If the user only asked what operations are available, return the numbered operation list. If the user asked to execute an operation, use this result as permission/operation validation evidence and continue to confirmation or clarification. |
| tool_operations_entrypoint | scripts/list_resource_operations.py |
| tool_operations_groups | ["cmp","resource","day2"] |
| tool_operations_capability_class | provider:smartcmp |
| tool_operations_priority | 132 |
| tool_operations_result_mode | llm |
| tool_operations_cli_positional | ["resource_ref"] |
| tool_operations_parameters | {
"type": "object",
"properties": {
"resource_ref": {
"type": "string",
"description": "SmartCMP resource UUID or detail URL, for example `https://cmp/#/main/virtual-machines/<id>/details`."
},
"category": {
"type": "string",
"description": "Fallback resource category when resource_ref is a raw UUID. Default: virtual-machines.",
"default": "virtual-machines"
}
},
"required": ["resource_ref"]
}
|
| tool_power_name | smartcmp_operate_resource |
| tool_power_description | Execute an enabled no-parameter SmartCMP resource operation through `POST /nodes/resource-operations`. RULES: (1) NEVER claim an operation was submitted without actually calling this tool — fabricating results is strictly forbidden. (2) Before calling, confirm the exact resource and operation with the user. (3) Always pass real SmartCMP resource UUIDs or detail URLs in resource_ids, not display names or list indexes. (4) The tool rechecks `GET /nodes/{category}/{id}/resource-actions` with the current user context before submission. (5) After success, keep the user response short; do not print raw request or response details. |
| tool_power_entrypoint | scripts/operate_resource.py |
| tool_power_groups | ["cmp","resource","day2"] |
| tool_power_capability_class | provider:smartcmp |
| tool_power_priority | 140 |
| tool_power_result_mode | tool_only_ok |
| tool_power_cli_positional | ["resource_ids"] |
| tool_power_cli_split | ["resource_ids"] |
| tool_power_parameters | {
"type": "object",
"properties": {
"resource_ids": {
"type": "string",
"description": "One or more SmartCMP resource IDs or detail URLs. Separate multiple IDs with spaces: 'id1 id2 id3'."
},
"category": {
"type": "string",
"description": "Fallback resource category when resource_ids contains raw UUIDs. Default: virtual-machines.",
"default": "virtual-machines"
},
"action": {
"type": "string",
"description": "SmartCMP operation ID to execute. start/stop and 开机/关机 aliases are supported."
}
},
"required": ["resource_ids", "action"]
}
|