Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] improve(mcp): change the tag of metadata tool to tag and policy (#8248)

FANNG508f0335e144
diff --git a/mcp-server/mcp_server/main.py b/mcp-server/mcp_server/main.py
index c325ea17c4..e48ee69686 100644
--- a/mcp-server/mcp_server/main.py
+++ b/mcp-server/mcp_server/main.py
@@ -75,8 +75,9 @@ def _parse_args():
"--include-tool-tags",
type=_comma_separated_set,
default=set(),
- help="The tool tags to include, separated by commas, support tags:[catalog, schema, table]. "
- "(default: empty, all tools will be included).",
+ help="The tool tags to include, separated by commas, support tags:[catalog, "
+ "schema, table, topic, model, fileset, tag, policy]. default: empty, "
+ "all tools will be included).",
)
parser.add_argument(
diff --git a/mcp-server/mcp_server/tools/metadata.py b/mcp-server/mcp_server/tools/metadata.py
index 71320cdcb2..0782fd54ba 100644
--- a/mcp-server/mcp_server/tools/metadata.py
+++ b/mcp-server/mcp_server/tools/metadata.py
@@ -19,7 +19,7 @@ from fastmcp import Context, FastMCP
def load_metadata_tool(mcp: FastMCP):
- @mcp.tool(tags={"metadata"})
+ @mcp.tool(tags={"tag", "policy"})
async def metadata_type_to_fullname_formats(ctx: Context) -> dict:
"""
Get metadata type to full name formats.