jiangxt2 opened a new issue, #259: URL: https://github.com/apache/doris-mcp-server/issues/259
### Motivation `doris_catalog` can already list catalogs, databases, and tables in a known database. When a user knows the catalog and table name but does not know the database, the client must enumerate databases and call `list_tables` for each one. For example, `customer_profile` may exist in both `iceberg_prod.dwd` and `iceberg_prod.ads`. The user needs to see both candidates before choosing a table. [Doris MCP tool documentation](https://github.com/apache/doris-mcp-server/blob/master/docs/capabilities/tool-domains.md#doris_catalog--metadata-navigation) ### Expected behavior - Accept a catalog and an exact table name, with an optional database filter. Use the existing Doris query identity. - Return the visible candidates from one tool call, with separate catalog, database, and table fields and a SQL-ready qualified name for each candidate. Leave selection to the caller. - For a successful empty response, report “Doris returned no visible matches.” Surface explicit errors and timeouts. Mark results as truncated if a tool limit cuts them short. ### Acceptance criteria - Two databases in one catalog contain `customer_profile`. An identity that can see both gets two candidates. An identity that can see only one gets one. Specifying a database restricts the lookup to that database. - Empty responses, explicit errors, timeouts, and truncated results are distinguishable. Doris 4.1.5 can log some metadata failures and still return results, so an empty response only describes what Doris returned. [Doris 4.1.5 error handling](https://github.com/apache/doris/blob/4.1.5-release/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java#L782-L795) - Record cold-cache latency and remote metadata request counts for one Hive or Iceberg catalog. An exact name filter can still enumerate table metadata. [Doris 4.1.5 metadata lookup](https://github.com/apache/doris/blob/4.1.5-release/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java#L678-L725) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
