get-schema
Retrieve field definitions, types, and copy-field relationships for a Solr collection to validate field names and types before running searches.
Instructions
Retrieve schema information for a Solr collection.
Returns field definitions, field types, and copy-field relationships from the Schema API. Call this before search when you need valid field names or types.
Parameters:
collection: Solr collection name
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": {
"collection": "<collection>"
},
"name": "get-schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |