@@ -34,7 +34,7 @@ def build_list_keyspaces_context(_keyspaces: List[KeyspaceInfo]) -> str:
3434 ),
3535 "limitations" : (
3636 "Amazon Keyspaces doesn't support all Apache Cassandra 3.11 features. "
37- "Unsupported features include logged batches, materialized views, "
37+ "Unsupported features include materialized views, "
3838 "indexes, aggregate functions like COUNT and SUM, prepared statements "
3939 "for DDL operations, DROP COLUMN, TRUNCATE TABLE, user-defined functions, "
4040 "the inequality operator for user-defined types, or the IN keyword in "
@@ -83,6 +83,16 @@ def build_list_tables_context(_keyspace_name: str, _tables: List[TableInfo]) ->
8383 "entity they represent."
8484 ),
8585 }
86+
87+ # Add guidance for empty results
88+ if not _tables :
89+ tables_guidance ["empty_result_interpretation" ] = (
90+ "When no tables are found, this could mean either: (1) the keyspace exists "
91+ "but contains no tables, or (2) the keyspace does not exist. If you suspect "
92+ "the keyspace might not exist, use the listKeyspaces tool to verify the "
93+ "keyspace name is correct before concluding it's empty."
94+ )
95+
8696 context ['tables_guidance' ] = tables_guidance
8797
8898 return dict_to_markdown (context )
@@ -281,7 +291,7 @@ def build_amazon_keyspaces_knowledge() -> Dict[str, str]:
281291 ),
282292 "differences_from_cassandra" : (
283293 "Amazon Keyspaces doesn't support all Apache Cassandra 3.11 features. "
284- "Unsupported features include logged batches, materialized views, indexes, "
294+ "Unsupported features include materialized views, indexes, "
285295 "aggregate functions like COUNT and SUM, prepared statements for DDL "
286296 "operations, DROP COLUMN, TRUNCATE TABLE, user-defined functions, the "
287297 "inequality operator for user-defined types, or the IN keyword in INSERT "
0 commit comments