Get Table Schema
get_table_schemaRetrieve field definitions and data dictionary for a ServiceNow table, including inherited fields from parent tables, to understand schema structure.
Instructions
Get the data dictionary (field definitions) for a ServiceNow table, including inherited fields
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>"
},
"name": "get_table_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of fields to return (own fields first, then inherited) | |
| table_name | Yes | The table name to get schema for | |
| include_inherited | No | Include fields inherited from parent tables (e.g. cmdb_ci fields on cmdb_ci_server) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| table | Yes | ||
| fields | Yes | ||
| hierarchy | Yes | ||
| truncated | No | ||
| field_count | Yes |