Inspect a database
inspect_databaseRead MMDB metadata and sample field paths, types, and examples. Use this to choose fields, filter paths, or a summarize_network group_by field. Sampling starts at the first network record, so observed fields are not a complete schema.
Instructions
Read MMDB metadata and sample field paths, types, and examples. Use this to choose fields, filter paths, or a summarize_network group_by field. Sampling starts at the first network record, so observed fields are not a complete schema. Use verify_database to check file integrity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Exact filename of a loaded database from list_databases. | |
| sample_size | No | Maximum network records to sample. Larger samples may reveal more fields. Sampling can stop early at internal field limits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| database | Yes | ||
| metadata | Yes | ||
| sample_limit | Yes | Requested record sampling limit. Field traversal limits may stop sampling earlier. | |
| sampled_records | Yes | Network records sampled in database order, not a statistically representative sample. | |
| schema_complete | Yes | Always false. A field absent from this sample may exist in other records. | |
| fields_truncated | Yes | True when field traversal limits or unaddressable keys omitted fields. Does not indicate whether all records were sampled. |