获取工作空间详情列表
AI agents call ListProjects to retrieve information from Alibabacloud Dataworks without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
Ids | array | — | DataWorks工作空间ID列表。该参数用来查询符合工作空间ID列表的空间详情 |
Names | array | — | DataWorks工作空间名称列表。该参数用来查询符合工作空间Name列表的空间详情 |
Status | string | — | 空间状态:- Available:工作空间运行正常- Initializing:初始化工作空间- InitFailed:工作空间初始化失败- Forbidden:手动禁用工作空间- Deleting:正在删除工作空间- DeleteFailed:工作空间删除失败- Frozen:工作空间欠费冻结- Updating:更 |
PageSize | number | — | 每页显示的条数,默认为10条,最大100条 |
PageNumber | number | — | 请求的数据页数,用于翻页 |
PaiTaskEnabled | boolean | — | 是否启用PAI任务调度:- true 可以在DataWorks工作空间创建机器学习(PAI)节点,并按照节点配置进行周期性调度运行。- false 禁用PAI任务调度该参数用于查询符合“开启/未开启PAI任务调用”条件的工作空间详情 |
DevRoleDisabled | boolean | — | 是否禁用开发角色:- false,开启开发角色(默认)- true,禁用开发角色该参数用于查询符合“开启/禁用开发角色”条件的工作空间详情 |
AliyunResourceTags | array | — | 标签列表。该参数用于查询拥有任意标签键值信息的工作空间详情 |
AliyunResourceGroupId | string | — | 工作空间所属阿里云资源组ID |
DevEnvironmentEnabled | boolean | — | 是否启用开发环境:- true 工作空间启用开发环境,支持开发与生产环境隔离- false 仅使用生产环境该参数用于查询符合“启用/未启用开发环境”条件的工作空间详情 |
Parameters from the server's own tool schema.
Even though ListProjects only reads data, uncontrolled read access leaks sensitive information and racks up API costs — an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Risk signalsHigh parameter count (12 properties)
Attacks that exploit this kind of access
获取工作空间详情列表. It is categorised as a Read tool in the Alibabacloud Dataworks MCP Server, which means it retrieves data without modifying state.
ListProjects accepts 10 parameters: Ids, Names, Status, PageSize, PageNumber, PaiTaskEnabled, DevRoleDisabled, AliyunResourceTags, AliyunResourceGroupId, DevEnvironmentEnabled. The full parameter table on this page comes from the server's own tool schema.
Register the Alibabacloud Dataworks MCP server in PolicyLayer and add a rule for ListProjects: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Alibabacloud Dataworks. Nothing to install.
ListProjects is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the ListProjects rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ListProjects. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ListProjects is provided by the Alibabacloud Dataworks MCP server (alibabacloud-dataworks-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.