Get Business Context
get_business_contextRetrieve business context for DB2 for i tables and entities, including row filters, column descriptions, and undeclared relations. Filter by entity or table to understand query logic and schema meaning.
Instructions
List business entities, row filters most queries need (such as leaving out deleted rows), table and column descriptions, and relations that the catalog does not declare as foreign keys. Filter by entity or table. Omit both to return every annotation loaded from MCP_CUSTOM_TOOLS. An unknown entity name falls back to names that partly match it, and when nothing matches, the result lists the loaded entity names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Table name, or SCHEMA.TABLE | |
| entity | No | Entity name, for example sales_order |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hint | No | What to call next when the filters did not match exactly | |
| count | No | ||
| error | No | ||
| success | Yes | ||
| partial_match | No | True when no entity had the requested name and data holds entities whose names partly match it | |
| available_tables | No | Every annotated SCHEMA.TABLE, when the table filter matched nothing | |
| available_entities | No | Every loaded entity name, when nothing matched the filters |