DescribeMetadataSchema
Retrieve the effective metadata schema for a knowledge base so you can build valid where/filter clauses before querying. Use static schema files or auto-infer fields from sampled retrieval metadata.
Instructions
Describe the metadata schema used for filtering.
Returns a JSON string describing the effective schema for a knowledge base. Use this before
applying metadata filters via `where`, `filter`, or implicit filtering.
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": {
"knowledge_base_id": "<knowledge_base_id>"
},
"name": "DescribeMetadataSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| knowledge_base_id | Yes | The knowledge base ID to inspect. It must be a valid ID from the ListKnowledgeBases tool. | |
| metadata_schema_mode | No | Metadata schema resolution mode. 'static' uses only configured schema files; 'auto' falls back to sampling retrieval metadata to infer a schema. | auto |
| metadata_schema_auto_sample_k | No | Number of retrieval results to sample for auto schema discovery. | |
| metadata_schema_auto_sample_query | No | Query used for auto schema discovery (only when metadata_schema_mode=auto). | the |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |