discover-tools

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Discover Available Tools

探索可用工具

Run tool discovery BEFORE writing agent code to understand what resources are available in the workspace.
在编写Agent代码前运行工具探索,以了解工作区中可用的资源。

Run Discovery

运行探索

bash
uv run discover-tools
Options:
bash
undefined
bash
uv run discover-tools
选项:
bash
undefined

Limit to specific catalog/schema

限定到特定目录/模式

uv run discover-tools --catalog my_catalog --schema my_schema
uv run discover-tools --catalog my_catalog --schema my_schema

Output as JSON

以JSON格式输出

uv run discover-tools --format json --output tools.json
uv run discover-tools --format json --output tools.json

Save markdown report

保存Markdown报告

uv run discover-tools --output tools.md
uv run discover-tools --output tools.md

Use specific Databricks profile

使用特定的Databricks配置文件

uv run discover-tools --profile DEFAULT
undefined
uv run discover-tools --profile DEFAULT
undefined

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}
资源类型描述MCP URL格式
UC函数作为Agent工具的SQL UDF
{host}/api/2.0/mcp/functions/{catalog}/{schema}
UC表用于查询的结构化数据(通过UC函数访问)
向量搜索索引用于RAG应用
{host}/api/2.0/mcp/vector-search/{catalog}/{schema}
Genie空间自然语言数据接口
{host}/api/2.0/mcp/genie/{space_id}
自定义MCP服务器
mcp-*
开头的应用
{app_url}/mcp
外部MCP服务器通过UC连接访问
{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
完成工具探索后:
  1. 将MCP服务器添加到你的Agent中 - 查看modify-agent技能获取SDK特定的代码示例
  2. databricks.yml
    中授予权限
    - 查看add-tools技能获取YAML代码片段
  3. 本地测试 - 使用
    uv run start-app
    ,查看run-locally技能