Resolve entity name to ID
resolve_entityTurn a school, district, or college name into the ID used for data filters. Returns matching candidates with city and level; supply a state FIPS code for schools and districts to avoid ambiguity.
Instructions
Resolve a school/district/college NAME to the ID used in get_data filters.
Returns CANDIDATES with their city and level, not one authoritative answer — names repeat, so the right row is the one whose city and level fit what the user meant. Type words ("Elementary", "High", "ISD") are ignored when matching, which is what lets natural phrasings reach the directory's abbreviations ("Lakewood Elementary" finds "LAKEWOOD EL").
Schools and districts require fips: without it this asks which state rather
than guessing, since "Homestead High" exists in CA, WI, IN and FL.
COST: downloads a whole state's directory, so the first call for a state often takes 10-30s and later ones are cached. Resolve names in the same state together.
Args: name: Name to search for; distinctive words matter most. entity_type: "school", "district", or "college" fips: State FIPS code (6 = California). Required for schools and districts. See lookup_codes(format_name="fips"). max_results: Maximum candidates to return (default 15)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fips | No | ||
| name | Yes | ||
| entity_type | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |