Skip to main content
Glama

das__ListSpaceAnalysis

Retrieves space analysis records for database instances, databases, and tables across MySQL, GaussDB(for MySQL), and SQL Server, helping users inspect storage usage.

Instructions

[DAS] 获取空间分析数据列表。实例级别数据来源于文件系统,库级别和表级别数据来源于information_schema.tables表。空间&元数据分析最多分析10000张表,若缺少库表空间数据,可能是因为数据库实例表个数过多或者账号未保存密码。如果为保存密码,请使用用户管理接口或页面录入数据库账号。 支持MySQL、GaussDB(for MySQL)和SQLServer引擎。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "datastore_type": "<datastore_type>",
      "instance_id": "<instance_id>",
      "object_type": "<object_type>",
      "project_id": "<project_id>"
    },
    "name": "das__ListSpaceAnalysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo查询记录数。默认为100,不能为负数,最小值为1,最大值为100。100
offsetNo偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。offset必须是limit的整数倍。0
project_idYes项目ID
database_idNo数据库ID
instance_idYes实例ID
object_typeYes对象类型database
datastore_typeYes引擎类型
show_instance_infoNo是否返回实例级别数据,取值:true或者falsetrue

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the behavioral burden and does add real context beyond the schema: a hard cap of 10,000 tables for space and metadata analysis, the reason space data can be absent (too many tables or an unsaved credential), and the supported engines. It still does not say whether the call is strictly read-only or rate-limited, but the operational caveats it does give are substantive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense paragraph, but it is front-loaded with the core purpose before the data-source and caveat details. The troubleshooting sentence about passwords is worthwhile; a little compression would improve scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no annotations and no output schema, the description covers data provenance and failure modes well, but leaves the return shape entirely to inference since no output schema exists to document the list fields. That is a meaningful gap for an agent that must decide whether the returned data is usable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already defines limit, offset, object_type, datastore_type and show_instance_info. The description contributes only indirect meaning, linking the instance/database/table levels to different data sources; it does not clarify the limit/offset multiple constraint or how the flags behave in practice.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('获取空间分析数据列表') and sharpens the scope by naming the data source per level: file system for instance-level, information_schema.tables for database/table-level. It does not explicitly contrast with the sibling das__CreateSpaceAnalysisTask, so an agent must infer that this only reads pre-existing analysis data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage is clear enough (retrieve space analysis at instance, database, or table granularity, for MySQL/GaussDB/SQLServer), and there is a useful troubleshooting hint: if space data is missing, the account password may not be saved, in which case use the user-management API or console. However, it never says when to use this versus creating a task (das__CreateSpaceAnalysisTask) or how to proceed after an empty result.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools