Repository navigation
List datasource not working as expected #295
|
I connected my chat app to tableau mcp and langsmith for traceability. On our tableau cloud site we have around 100 published data sources. In environment file i have restricted datasources to only 2 with luid. When asked which datasources he has access to, it should list the datasources. But chatbot return I don't have access to any datasource. But when i tell the exact name of datasource then chatbot agree that he has access to datasource and then return answers based on datasource. I checked in Langsmith and it show, the set of allowed data sources that can be queried is limited by the server configuration. While data sources were found, they were all filtered out by the server configuration. I believe it is happening due to pagination limit. list-datasources tool first select top N/10 datasources and try to find the datasources in that list. Sometime those two datasources appear in Top 10 and it return those 2 datasources but sometimes they are out of Top N/10 due to random sort order of Top N. |
Replies: 1 comment 4 replies
|
Have you defined a value of If so, and the List Datasources REST API returns more than the limit, the remaining are chopped off, and then the datasource luid restriction is applied. If you remove the max result limit, does the issue go away? |
limitis a parameter of thelist-datasourcestool that can be provided by the LLM when it calls the tool based on the prompt; take a look at its definition.If the
limitparameter is provided, the set of datasources returned by thelist-datasourcestool will contain at most the minimum oflimitand whatever is set on theMAX_RESULT_LIMITorMAX_RESULT_LIMITSenvironment variables.