get_schema
Retrieve the field names and data types for a specified stream in OpenObserve. Use it to understand the structure of logs, metrics, or traces before querying.
Instructions
Get the field names and types for a stream
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": {
"stream": "<stream>"
},
"name": "get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | Yes | Stream name | |
| stream_type | No | Type of stream | logs |