get_object_details
Retrieve table or view columns, constraints, indexes, sequence settings, or extension metadata from system catalogs to inspect database object structure and definitions.
Instructions
Show the columns (data type, nullability, default), constraints and indexes of a table or view, the data type, start and increment of a sequence, or an extension's version, relocatable flag and schema from pg_extension.extnamespace (schema_name is not used for extension). Read from the system catalogs, so the role's privileges do not hide anything. Use list_objects to find names.
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": {
"schema_name": "<schema_name>",
"object_name": "<object_name>"
},
"name": "get_object_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | Object name | |
| object_type | No | Object type: table, view, sequence or extension (default table) | |
| schema_name | Yes | Schema name (not used for extension) |