获取数据源列表
AI agents call ListDataSources 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 |
|---|---|---|---|
Name | string | — | 数据源名称,基于此名称做模糊查询 |
Tags | string | — | 数据源可以打标签,基于标签做数据源查询过滤:- 多个值之间是“且”的关系,比如`["tag1", "tag2", "tag3"]`底层查询同时有这3个标签打标的数据源列表。- 不传递,或者传递为空表示不作tag过滤,查询最多支持10个标签 |
Order | string | — | 数据源列表排序方向,枚举值:- Desc:倒序- Asc:正序默认值:Desc |
Types | array | — | 数据源类型查询过滤,可以配置多个类型查询过滤 |
SortBy | string | — | 数据源列表排序字段,支持名称、创建时间、数据源ID排序- CreateTime:创建时间- Id:数据源ID- Name:数据源名称默认值:CreateTime |
EnvType | string | — | 数据源环境类型,枚举值:- Dev:开发环境- Prod:生产环境 |
PageSize | number | — | 分页大小,默认值为10,最大值100 |
ProjectId | number | Yes | DataWorks工作空间的ID |
PageNumber | number | — | 查询第几页,默认值为1表示第一页 |
Parameters from the server's own tool schema.
Even though ListDataSources 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.
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.
ListDataSources accepts 9 parameters: Name, Tags, Order, Types, SortBy, EnvType, PageSize, ProjectId, PageNumber. Required: ProjectId. 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 ListDataSources: 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.
ListDataSources 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 ListDataSources 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 ListDataSources. 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.
ListDataSources 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.