add-tools

Register MCP tools in agent_server/agent.py and grant Databricks resource permissions.

Updated May 10, 2026
One-click install
npx skills add https://github.com/keqingli1129/agent-langgraph-one --skill add-tools-keqingli1129
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-tools
Source: https://github.com/keqingli1129/agent-langgraph-one/tree/main/.claude/skills/add-tools
Command: npx skills add https://github.com/keqingli1129/agent-langgraph-one --skill add-tools-keqingli1129

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents agent runtime failures by helping you properly register new MCP tools in your agent code and grant the required permissions in databricks.yml.

Core Features & Use Cases

  • Integrates MCP server tools: Shows how to add MCP servers to agent_server/agent.py and fetch their tool definitions.
  • Grants Databricks access: Guides you to add the corresponding resources (e.g., Genie spaces, UC functions, vector search, SQL warehouses, serving endpoints) to databricks.yml with the correct permission.
  • Improves reliability and recovery: Covers handling MCP tool errors so failures return useful messages to the LLM instead of crashing the agent.
  • Addresses common configuration pitfalls: Emphasizes matching databricks.yml value_from references to existing resource names to avoid misconfiguration.

Quick Start

Add the MCP server integration in agent_server/agent.py, grant the matching resource in databricks.yml under resources.apps.<app>.resources, then deploy and restart the app using databricks bundle deploy followed by databricks bundle run agent_langgraph.

Frequently Asked Questions about add-tools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add MCP servers to a Databricks agent?

To add MCP servers to a Databricks agent, update agent_server/agent.py to fetch tool definitions, add corresponding resource entries to databricks.yml with correct permissions, then deploy using databricks bundle deploy and run agent_langgraph.

Why does my Databricks agent encounter permission errors at runtime?

Databricks agent permission errors at runtime occur when databricks.yml lacks correct resource entries or permissions for tools like Genie, vector search, or UC functions. Grant access by adding corresponding resources under resources.apps.<app>.resources.

How do I handle MCP tool errors so they don't crash my agent?

To handle MCP tool errors and prevent agent crashes, enable the handle_tool_error option when registering tools. This returns useful error messages to the LLM instead of crashing the agent application.

What databricks.yml resources do I need for vector search and Genie spaces?

For vector search and Genie spaces, add corresponding resource entries under resources.apps.<app>.resources in databricks.yml. Ensure value_from references match existing resource names to avoid misconfiguration.

Can I use SQL execution and serving endpoints with Databricks MCP tools?

Yes, you can use SQL execution and serving endpoints with Databricks MCP tools. Register them in agent_server/agent.py and grant required permissions in databricks.yml before deploying the bundle.

What are common configuration pitfalls when adding MCP tools to Databricks?

A common configuration pitfall when adding MCP tools to Databricks is mismatching databricks.yml value_from references to existing resource names. Ensure resource names align correctly to avoid runtime misconfiguration.