AgentSkillsCN

discover-tools

在Databricks工作区中探索可用的工具与资源。当用户问“有哪些可用的工具?”时,或在编写代理代码之前,或在寻找MCP服务器、Genie空间、UC函数,或向量搜索索引时,可使用此技能;当用户说“探索”、“查找资源”或“我能连接到什么?”时,也可使用此技能。

SKILL.md
--- frontmatter
name: discover-tools
description: "Discover available tools and resources in Databricks workspace. Use when: (1) User asks 'what tools are available', (2) Before writing agent code, (3) Looking for MCP servers, Genie spaces, UC functions, or vector search indexes, (4) User says 'discover', 'find resources', or 'what can I connect to'."

Discover Available Tools

Run tool discovery BEFORE writing agent code to understand what resources are available in the workspace.

Run Discovery

bash
uv run discover-tools

Options:

bash
# Limit to specific catalog/schema
uv run discover-tools --catalog my_catalog --schema my_schema

# Output as JSON
uv run discover-tools --format json --output tools.json

# Save markdown report
uv run discover-tools --output tools.md

# Use specific Databricks profile
uv run discover-tools --profile DEFAULT

What Gets Discovered

Resource TypeDescriptionMCP URL Pattern
UC FunctionsSQL UDFs as agent tools{host}/api/2.0/mcp/functions/{catalog}/{schema}
UC TablesStructured data for querying(via UC functions)
Vector Search IndexesRAG applications{host}/api/2.0/mcp/vector-search/{catalog}/{schema}
Genie SpacesNatural language data interface{host}/api/2.0/mcp/genie/{space_id}
Custom MCP ServersApps starting with mcp-*{app_url}/mcp
External MCP ServersVia UC connections{host}/api/2.0/mcp/external/{connection_name}

Next Steps

After discovering tools:

  1. Add MCP servers to your agent - See modify-agent skill for SDK-specific code examples
  2. Grant permissions in databricks.yml - See add-tools skill for YAML snippets
  3. Test locally with uv run start-app - See run-locally skill