What you will be able to do
- Explain why an agent's choice between two MCP tools depends almost entirely on their names, descriptions and input schemas
- Given two tool descriptions an agent keeps confusing, identify the shared claim that hides the dimension on which the tools actually differ
- Rule out distractor causes such as identical parameter names, shared omissions, output format or name similarity
- Explain why Genie and Databricks SQL MCP tools collide when their descriptions do not state scope, and rewrite a description so the selection boundary is explicit
Key concept
Description overlap — Two tool descriptions overlap when they make the same claim about what the tool does or what input it takes, and neither one names the dimension on which the tools differ. A model that picks tools from those descriptions has nothing to separate the two, so its choice between them is close to arbitrary.
1.What an agent sees when it picks a tool
An agent picks an MCP tool by reading the few lines its server publishes about it. When an agent connects to an MCP server, it gets each tool as three fields: a name, a description and an input schema. It never sees the tool's code, the table behind it or the API it calls. Those three fields make up the tool's contract, covered in A UC tool's contract: name, description and parameter schema. For this lesson, the point is that they are all the selector has. If two contracts read the same, the model has nothing to tell the tools apart.
tools = mcp_client.list_tools()
for tool in tools:
print(tool.name, tool.description, tool.inputSchema, sep="\n")Usually the description decides the choice. Tool names tend to be short and similar, and input schemas are often generic: plenty of tools take a single query string. The description is where the author says what the tool is for. Databricks APIs that accept tool definitions treat the description as guidance for the model about when to call the tool. When an agent keeps choosing the wrong tool between the same two, start with the descriptions.
This is a tool-selection form of Context confusion, where irrelevant or look-alike context leads the model to the wrong action. With tools, the look-alike content is two descriptions that make the same promise. The failure follows a pattern: the agent's mistakes go both ways between the same two tools, and they depend on how the user phrases the request. They do not depend on the data. A random 50/50 split between two tools on one kind of request is a typical sign that the descriptions overlap.
Checkpoint 1 of 7· Fill the gap
An agent picks between MCP tools using only what the server publishes about each one. This sample lists those fields. Which field completes it? It is also the field that usually decides which tool the agent picks.
tools = mcp_client.list_tools()
for tool in tools:
print(tool.name, tool. ? , tool.inputSchema, sep="\n")list_tools() returns each tool's name, description and input schema, and that is all the agent sees when it picks a tool. Names tend to be short and input schemas generic, so the description usually decides. When an agent keeps confusing two tools, look at their descriptions first.
Source: docs.databricks.com2.Finding the shared claim that causes the confusion
To find the overlap, line up the two descriptions and find the claim they both make. Then ask which dimension the user's request actually varies on, and whether either description mentions it. Usually the shared claim is the generic part, such as "moves money", "finds matching entries" or "provides weather information". The missing part is the one thing that separates the tools. Three common cases:
- Destination or direction.
transfer_funds"Moves money between two accounts for a customer" andprocess_payment"Moves money from a customer account to complete a transaction" both start with moving money out of an account. Neither says that one handles transfers between the customer's own accounts and the other pays an outside payee. So "move savings into checking" and "pay my electric bill" fit both equally well. - Data source.
search_productsandsearch_faqsboth read "Finds matching entries for a query." Neither names what it searches, the product catalogue or the FAQ content, so a stock-availability question doesn't map to either one. - Time horizon.
get_current_weatherandget_weather_forecastboth offer "weather information for a specified location." Neither says "now" or "the coming days", so "what will it be like this weekend?" matches both.
The same test rules out the usual distractors. A detail that both descriptions leave out, such as currency or Celsius versus Fahrenheit, is not the cause, because adding it to both would leave them just as alike. Identical parameter names do not merge two tools into one, because each tool is still listed separately with its own name and description. Output format does not matter either: the model chooses a tool before it sees any result. And tool selection is not alphabetical fuzzy matching on name prefixes. The model reads the descriptions and goes with whichever one seems to promise the job. The cause is always a claim both descriptions make that hides the dimension the request depends on.
Checkpoint 2 of 7· Check yourself
Two MCP tools on a support server are both described as "Looks up customer information by name." One is lookup_customer_crm and the other is lookup_customer_billing. Asked "What does Acme still owe on its invoices?", the agent picks each tool about half the time. What is causing the ambiguous selection?
The model picks a tool mainly from its description, and these two make the same claim. Neither names the data source the request depends on. A shared parameter name doesn't merge the tools, adding the same detail to both leaves them just as alike, and the agent doesn't select tools by name prefix.
“description (string, optional): Hint to the model about when to call this tool.”Source: docs.databricks.com
Checkpoint 3 of 7· Exam question
An agent has access to two MCP tools registered on the same Unity AI Gateway: - transfer_funds: "Moves money between two accounts for a customer." - process_payment: "Moves money from a customer account to complete a transaction." The agent repeatedly calls process_payment when a user asks to move savings into checking, and calls transfer_funds when a user asks to pay a bill. What is causing the ambiguous tool selection?
Correct answer: A — Both descriptions open with "Moves money ... account" and never state that one covers internal transfers while the other covers external bill payments.
- A. Correct. The shared opening phrasing and shared verb describe the same generic action without ever stating the distinguishing purpose (moving money between a customer's own accounts vs. paying a third party), so the model has no textual signal to separate the two use cases.
- B. Incorrect. Currency handling isn't mentioned in either description and isn't what the scenario shows failing — the confusion is about which tool matches internal transfers vs. bill payments, not currency support.
- C. Incorrect. The scenario describes overlapping natural-language descriptions, not identical parameter schemas; shared parameter names don't cause an LLM to merge two distinct tool entries in a function-calling list.
- D. Incorrect. Tool selection by an LLM is driven by semantic matching against the description text, not alphabetical order or name-prefix fuzzy matching of tool identifiers.
Checkpoint 4 of 7· Exam question
A retail support agent has two MCP tools: - search_products: "Finds matching entries for a query." - search_faqs: "Finds matching entries for a query." When a customer asks a product-availability question, the agent sometimes calls search_faqs instead of search_products. What in the tool descriptions is driving this ambiguous selection?
Correct answer: A — Both descriptions say the tool "finds matching entries for a query" without naming the data source, so intent can't map to catalog vs. FAQ content.
- A. Correct. Neither description states what is being searched (the product catalog vs. the FAQ knowledge base), so the two tools read as functionally identical to the model, which then has to guess.
- B. Incorrect. A shared parameter name affects how arguments are supplied, not whether the model can distinguish which tool's purpose matches the user's intent — the failure here is in the description text, not the schema.
- C. Incorrect. Verb tense in a description has no bearing on how many tools an LLM is willing to select from; this isn't a documented mechanism of tool-selection ambiguity.
- D. Incorrect. Being hosted on the same MCP server does not merge Unity Catalog permission scopes or tool identities; each registered tool retains its own description and access control entry.
Checkpoint 5 of 7· Exam question
A travel assistant agent has two tools: - get_current_weather: "Provides weather information for a specified location." - get_weather_forecast: "Provides weather information for a specified location." Asked "what will the weather be like this weekend?", the agent sometimes invokes get_current_weather instead of get_weather_forecast. What overlap in the descriptions explains this?
Correct answer: A — Both descriptions promise "weather information for a location" without stating whether it's the present moment or a multi-day forecast.
- A. Correct. The two descriptions are word-for-word identical in scope and neither mentions a time horizon, so nothing in the text tells the model that one tool answers 'right now' and the other answers 'in the coming days.'
- B. Incorrect. The scenario gives no indication of the required input format, and an input-format mismatch would cause a call error, not a wrong-tool selection between two available options.
- C. Incorrect. Missing units would affect how the response is interpreted after a tool runs, not which of two tools the agent chooses to call in the first place.
- D. Incorrect. Response format is unrelated to tool selection, which happens before either tool is invoked based on the description text alone.
Sources3
3.Genie and Databricks SQL: two data tools that collide
The overlap shows up in Databricks's own tools too. Databricks managed MCP servers include Genie and Databricks SQL, and in a sense both "answer questions about your data". If a team registers them, or wraps them in custom tools, with descriptions like "Query sales data" and "Answer questions about sales tables", the agent has two equally good-looking options for every analytics request. It might write raw SQL for a business question, or send a precise query someone already wrote to a natural-language agent.
Databricks's own descriptions avoid the collision by stating scope as intent. Genie is for business questions asked in plain language, and it answers them through a governed semantic layer. Databricks SQL is for running a specific query you already have, in development or data engineering work. The two cover the same data and differ in what the user brings: a question or a query.
| MCP | Published description | Selection cue it gives the agent |
|---|---|---|
| system.ai.genie_one_mcp | Recommended for natural-language analytics across your workspace. Answers questions with Genie One, grounded in Genie Ontology. | The user asks a business question in plain language |
| system.ai.dbsql | Runs specific SQL queries for development and data engineering on a SQL warehouse, using the caller's Unity Catalog and warehouse permissions. | The user already has a specific SQL query, or is doing development or pipeline work |
When you write your own descriptions for these tools, keep that split. Genie resolves business terms and metric definitions through Genie Ontology, which gives more accurate answers than an agent writing SQL against raw tables. A description that hides the split can quietly send business questions down the less accurate path.
Both descriptions say the tool covers revenue data, and neither says whether it takes a plain-language question or a SQL query that already exists. The request is a business question in plain language, so ask_genie should win. To fix the overlap, ask_genie's description should say it takes plain-language business questions, and run_sql's should say it runs a specific SQL statement it is given.
Checkpoint 6 of 7· Check yourself
A team wraps Genie and Databricks SQL as custom tools: sales_insights, "Answer questions about sales tables", and sales_query, "Query sales data". Business questions keep ending up as raw SQL. Which change to the descriptions removes the overlap?
Both tools cover the same data. What separates them is what the user brings: a business question or a query that already exists. Output format, parameter names and a scope note that both descriptions share leave the shared claim in place, so the agent still can't tell the tools apart.
“Use the Databricks SQL MCP server for specific SQL queries, development, and data engineering.”Source: docs.databricks.com
4.Writing descriptions that settle the choice
Once you know the hidden dimension, fix it in both descriptions. Each one says what the tool is for along that dimension, and it says when to use the other tool. Adding detail only to the tool the agent keeps missing helps a little. Stating the boundary on both sides works better, because the model compares the two descriptions against each other.
Applied to the payments pair, the rewrite reads like this. transfer_funds: "Moves money between two accounts owned by the same customer, such as savings to checking. For paying a bill or merchant, use process_payment." process_payment: "Pays an external payee (a biller or merchant) from a customer's account. For moving money between the customer's own accounts, use transfer_funds." Each description names its side of the destination split and points to the other tool. The shared phrase "moves money" no longer decides anything.
Databricks agent builders call for the same kind of description. A Genie Agent connector should come with a description that says how and when the agent should use its tools. A Supervisor Agent uses each tool's or sub-agent's description to decide where to send a task, so more detail gives better routing. The pattern carries over to any description you write:
- Name the discriminating dimension in plain words: whose accounts, which data source, which time window, question or query.
- Give one example request that belongs to this tool.
- Say which other tool to use when the request falls on the other side.
Checkpoint 7 of 7· Check yourself
You're rewriting two weather tools whose descriptions both read "Provides weather information for a specified location." Which new description for get_weather_forecast best settles the agent's choice between it and get_current_weather?
The tools differ on time horizon. The correct rewrite names that dimension, gives an example request that belongs to this tool and says when to use the other tool. Units, output fields and parameter names leave the shared claim "weather information for a location" in place, so the agent still can't tell the tools apart.
“Add a clear Description that explains how and when the agent should use the connector's tools.”Source: docs.databricks.com
Sources
(8)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“call list_tools() to get each tool's name, description, and input schema at runtime”
↩︎ What an agent sees when it picks a tool“call list_tools() to get each tool's name, description, and input schema at runtime”
↩︎ Key concept - 2.
“description (string, optional): Hint to the model about when to call this tool.”
↩︎ What an agent sees when it picks a tool“description (string, optional): Hint to the model about when to call this tool.”
↩︎ Exam trap 2“description (string, optional): Hint to the model about when to call this tool.”
↩︎ Prediction - 3.
“Call tools/list (or DatabricksMCPClient.list_tools()) to get each tool's name, description, and input schema.”
↩︎ Finding the shared claim that causes the confusion“Call tools/list (or DatabricksMCPClient.list_tools()) to get each tool's name, description, and input schema.”
↩︎ Exam trap 1 - 4.https://docs.databricks.com/aws/en/agents/mcp-toolsOfficial docs
“For business questions asked in natural language, Databricks recommends the Genie One MCP server.”
↩︎ Genie and Databricks SQL: two data tools that collide“Use the Databricks SQL MCP server for specific SQL queries, development, and data engineering.”
↩︎ Checkpoint - 5.
“run a specific query you already wrote, such as validating syntax or authoring a pipeline”
↩︎ Genie and Databricks SQL: two data tools that collide - 6.
“This produces more accurate answers than an agent writing SQL directly against raw tables.”
↩︎ Genie and Databricks SQL: two data tools that collide“This produces more accurate answers than an agent writing SQL directly against raw tables.”
↩︎ Exam trap 3 - 7.
“Add a clear Description that explains how and when the agent should use the connector's tools.”
↩︎ Writing descriptions that settle the choice - 8.
“The supervisor uses the information in the description to help it coordinate agents.”
↩︎ Writing descriptions that settle the choice