search_expanded
Search FOLIO with plain-English questions or fact patterns by expanding them into legal synonyms and terms of art, then merging ranked results for natural-language research.
Instructions
Search FOLIO with a plain-English question or fact pattern.
An LLM rewrites the query into synonyms and legal terms of art (e.g. "my landlord won't fix the heat" -> "Implied Warranty of Habitability", "Constructive Eviction"), searches each, and merges the results by rank. Use this for natural-language or situational queries; use search_concepts when you already know the concept's name. The first call for a query takes a few seconds; repeats are cached. If the LLM is unavailable it returns plain label-search results with an empty expansions list.
Args: query: Natural-language description (e.g., "fired for reporting safety violations"). limit: Maximum results (default 10, max 50). include_definitions: Also match concept definitions (default false).
Returns: JSON object: query, expansions, expansion_source ("llm", "cache" or "none"), and results [{iri, label, definition, score, matched_via}].
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": {
"query": "<query>"
},
"name": "search_expanded"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| include_definitions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |