Skip to main content
Glama

nacos_list_configs

Read-onlyIdempotent

List Nacos configurations in a namespace, with optional filters for data ID, group, app, tags, and pagination.

Instructions

查询命名空间下的配置列表。

对应 Nacos OpenAPI:

  • v1 / v2:GET /nacos/v1/cs/configs?search=blur(搜索配置接口,Nacos 1.x/2.x 服务端均支持)

  • v3:GET /v3/console/cs/config/list(Console API 真列表端点,返回 Page) 三版本均支持 dataId/group/appName/config_tags 过滤 + pageNo/pageSize 分页,能力已对齐。

匹配语义(本地 1.x/2.x/3.x 实测一致):search=blur 不会自动为 dataId/group 补通配符, 传子串不命中;需模糊匹配时显式传 '关键词'。传完整 dataId 精确命中一条。

返回该命名空间下配置的 data_id + group_name 等元数据列表(不含配置内容),并附 total 总数。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNo匹配模式:blur(默认)解释 dataId/group 中的通配符 '*' 做 LIKE 匹配;accurate 精确匹配。二者在不带通配符时行为一致(完整名命中、子串不命中)blur
data_idNo按 dataId 过滤(可选)。search=blur 下需显式带通配符如 '*app*',裸子串 'app' 不命中;完整 dataId 精确命中。
page_noNo分页页码,从 1 开始(默认 1)
app_nameNo按 appName 过滤(可选)
page_sizeNo每页条数(默认 100)
group_nameNo按 group 过滤(可选,默认不过滤);模糊匹配同 data_id,需显式带通配符 '*'
config_tagsNo按配置标签 config_tags 过滤(可选)
namespace_idNo命名空间 ID;优先级:工具参数 > NACOS_NAMESPACE 环境变量 > 默认 public

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
configsNo
total_countNo
namespace_idNo
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint, idempotentHint), the description adds substantial behavioral context: search=blur does not auto-wildcard, substrings don't match unless wildcards are explicit, and the return includes a total count. It also discloses version-specific API endpoints. This goes well beyond minimal disclosure and enriches the agent's mental model.

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

Conciseness5/5

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

The description is well-structured: a one-line purpose, a bulleted API mapping, a separate matching-semantics paragraph, and a clear return format statement. Every sentence serves a purpose, and the length is appropriate for the tool's complexity. No redundant content.

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

Completeness5/5

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

The description fully covers the tool's purpose, filtering capabilities, matching behavior, return format, and version support. With an output schema present, it provides everything an agent needs to invoke the tool correctly and interpret results. No gaps detected.

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?

The input schema provides 100% coverage for all 8 parameters, including detailed descriptions of wildcard behavior for data_id and group_name. The description's matching semantics section essentially reiterates this schema information without adding new parameter-specific meaning. Thus the baseline of 3 applies, as the schema does the heavy lifting.

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

Purpose5/5

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

The description clearly states the tool queries the configuration list under a namespace, using the specific verb '查询' and resource '配置列表'. It differentiates from siblings like nacos_get_config by explicitly noting it returns metadata (data_id, group_name) and excludes config content, making the purpose unambiguous.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool: it returns metadata only, not content, implying it is for listing rather than fetching full configs. It also explains matching semantics for fuzzy vs exact search. However, it does not explicitly name alternatives or state exclusions (e.g., 'use nacos_get_config for content'), so it misses the highest bar for explicit guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhouweico/mcp-nacos'

If you have feedback or need assistance with the MCP directory API, please join our Discord server