databricks/app-templates/add-tools-openai
Claude Code and agent skill by databricks/app-templates
- community
Checking that the SKILL.md file is still in the repository.
Add tools to your agent and grant required permissions in databricks.yml. Use when: (1) Adding MCP servers, Genie spaces, vector search, or UC functions to agent, (2) Permission errors at runtime, (3) User says 'add tool', 'connect to', 'grant permission', (4) Configuring databricks.yml resources.
Install
npx vskill@latest install databricks/app-templates/add-tools-openaiSKILL.md
The same SKILL.md was published earlier as databricks/app-templates/add-tools-openai.
Add Tools & Grant Permissions
Profile reminder: AlldatabricksCLI commands must include the profile from.env:databricks <command> --profile <profile>
Don't have the resource yet? See create-tools skill first.
After adding any MCP server to your agent, you MUST grant the app access in `databricks.yml`.
Without this, you'll get permission errors when the agent tries to use the resource.
Workflow
Step 1: Add MCP server in agent_server/agent.py:
Step 2: Grant access in databricks.yml:
Step 3: Deploy with databricks bundle deploy (see deploy skill)
Resource Type Examples
See the examples/ directory for complete YAML snippets:
| File | Resource Type | When to Use | |
|---|---|---|---|
uc-function.yaml | Unity Catalog function | UC functions | |
uc-connection.yaml | UC connection | External MCP servers | |
vector-search.yaml | Vector search index | RAG applications | |
sql-warehouse.yaml | SQL warehouse | SQL execution | |
serving-endpoint.yaml | Model serving endpoint | Model inference | |
genie-space.yaml | Genie space | Natural language data | |
lakebase-autoscaling.yaml | Lakebase autoscaling postgres | Agent memory storage (autoscaling) | |
experiment.yaml | MLflow experiment | Tracing (already configured) | |
app.yaml | Databricks App (app-to-app) | Custom MCP servers hosted as Apps | |
custom-mcp-server.md | Custom MCP apps | Apps starting with mcp-* |
Custom MCP Servers (Databricks Apps)
Declare the target app as an app resource in databricks.yml — the bundle grants CAN_USE on deploy. Requires Databricks CLI v0.298.0+.
See examples/custom-mcp-server.md for the full flow (agent code + YAML + deploy).
MCP Error Handling
MCP tool calls can fail (network issues, permission errors, timeouts). The OpenAI Agents SDK catches tool errors by default and returns the error message to the LLM. To customize timeout behavior for MCP servers:
For local function tools, see create-tools skill > examples/local-python-tools.md for failure_error_function patterns.
Important Notes
- MLflow experiment: Already configured in template, no action needed
- Multiple resources: Add multiple entries under
resources:list - Permission types vary: Each resource type has specific permission values
- Deploy after changes: Run
databricks bundle deployafter modifyingdatabricks.yml
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-migration-from-model-serving/.claude/skills/add-tools-openai/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/databricks/app-templates/add-tools-openai)