Get Table Schema
servicenow_get_table_schemaGet field definitions for any ServiceNow table, including names, types, labels, mandatory flags, and reference targets. Filter by field type or include inherited fields.
Instructions
Inspect the field definitions (schema) of any ServiceNow table.
Returns field names, types, labels, mandatory flags, max lengths, and reference targets from sys_dictionary.
Args:
table (string): Table to introspect (e.g., incident, change_request, cmdb_ci_server)
include_inherited (boolean): Include fields inherited from parent tables (default: false — own fields only)
filter_type (string): Filter by field type (e.g., 'string', 'integer', 'reference', 'boolean')
response_format: Output format
Returns: Field definitions with name, label, type, mandatory, max_length, and reference table (for reference fields)
Examples:
Explore incident fields → table="incident"
Find all reference fields on change_request → table="change_request", filter_type="reference"
Inspect a custom table → table="x_company_myapp_orders"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ServiceNow table name (e.g., incident, change_request, sys_user) | |
| filter_type | No | Filter by field type (e.g., 'string', 'reference', 'integer', 'boolean') | |
| response_format | No | Output format: 'markdown' (default) for human-readable or 'json' for structured data | markdown |
| include_inherited | No | Include parent-inherited fields (default: false) |