What to ask before finding a lawyer
get_matching_requirementsUse first when someone asks for a lawyer but the state or type of legal matter is unclear ("I need a lawyer", "help me with my landlord"). Returns the few questions still needed (state, matter type, location, timing, budget) and what was understood. Does not answer the legal question and stores nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | 5-digit ZIP code, only if the user agreed to share it | |
| city | No | ||
| court | No | ||
| state | No | US state, two-letter code or name, e.g. CA or California | |
| county | No | ||
| urgency | No | ||
| category | No | ||
| languages | No | ||
| remote_ok | No | User is willing to work with a lawyer remotely (phone or video) anywhere in the state | |
| budget_max | No | Total budget the user mentioned, in US dollars | |
| budget_min | No | ||
| priorities | No | What matters most, in order. Shifts ranking weights. | |
| client_side | No | Which side the user is on. ESQ Matching Engine has no record of which side lawyers usually represent, so results carry a warning to ask. | |
| description | No | Short description of the legal need in the user's words. Used only to pick a practice area; not stored. | |
| matter_type | No | ||
| communication | No | ||
| deadline_date | No | A deadline the USER reported (hearing, filing, response). ESQ Matching Engine does not verify or calculate deadlines. | |
| deadline_type | No | ||
| practice_area | No | Practice area, e.g. 'Landlord-Tenant Law', 'Family Law', 'Criminal Law' | |
| service_needed | No | ||
| consultation_by | No | Latest date the user wants a first consultation | |
| procedural_stage | No | ||
| subpractice_area | No | ||
| language_required | No | True if the language is essential, not just preferred | |
| billing_preference | No | ||
| min_years_licensed | No | ||
| accessibility_needs | No | ||
| payment_plan_needed | No | ||
| exclude_attorney_ids | No | ||
| max_consultation_fee | No | 0 means the user wants a free first consultation | |
| reduced_fee_eligible | No | User may qualify for pro bono, legal aid or reduced fees | |
| representation_start_by | No | Date as YYYY-MM-DD | |
| include_unconfirmed_practice_area | No | Also include licensed lawyers whose practice areas are not on record (labeled clearly) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | Yes | ||
| missing | Yes | ||
| guidance | Yes | ||
| can_search | Yes | ||
| understood | Yes | ||
| api_version | Yes | ||
| urgency_notice | Yes | ||
| preliminary_search_possible | Yes |