CertSafari
    Databricks Certified Context Engineer Associate· Lessons

    Domain 5 · Lesson 30/45

    Overlapping MCP tool descriptions and ambiguous tool selection

    Given two MCP tool descriptions that an agent is consistently confusing, identify the overlap in their descriptions that is causing ambiguous tool selection.

    14 min read
    2.17% of exam
    8 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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.

    Listing a server's tools returns exactly the fields the model chooses from: name, description and input schemapython
    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")

    Sources12

    2.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" and process_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_products and search_faqs both 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_weather and get_weather_forecast both 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?

    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?

    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?

    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?

    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.

    How the Databricks-provided descriptions separate the two data MCPs
    MCPPublished descriptionSelection cue it gives the agent
    system.ai.genie_one_mcpRecommended 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.dbsqlRuns 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.

    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?

    Sources456

    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?

    Sources78

    Sources

    (8)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 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. 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. 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. 4.
      “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. 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. 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. 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. 8.
      “The supervisor uses the information in the description to help it coordinate agents.”
      ↩︎ Writing descriptions that settle the choice

    Ready to test yourself?

    Practise Databricks Certified Context Engineer Associate in quiz mode.

    Spotted a mistake, or was something unclear? Tell us.