Filter records of a given object type using a structured JSON filter. Supports result modes: "ids" (default), "count" (total count only), "summary" (IDs plus basic entity details).
The `filter` argument must always be a JSON-serialized object.
Filters are capped at max depth 3, 8 predicates, 5 child filters per and/or group, and 2 sort fields.
Use this tool after identifying the correct object type and field paths.
For structured criteria, first call `describe_object_fields` unless you already have the exact field path from a prior tool result. Do not invent common field names such as `title`, `name`, `application_id`, or `overall_recommendation` unless that exact field path was returned for the selected object type.
Use the value form that matches the field and tool behavior:
- **Field paths**: Use the complete field path returned by `describe_object_fields`, including prefixes such as `feedback_form.`, `candidate.`, or `interview.`. Never shorten a returned field path to only the final segment.
- **Label-based selectable fields**: For fields such as tags, statuses, users, teams, and similar selectable values, use the human-readable label where supported. The system automatically resolves labels to IDs for supported fields.
- **Reference fields**: For many reference fields, including many fields named like `*_id`, the system may support either:
- a resolved ID, or
- a human-readable title/label.
- **Prefer IDs when available**: If you already resolved the referenced entity and have its ID, prefer using the ID for reliability and disambiguation.
- **Score fields**: Fields whose `Value type` is Score require numeric values: 4 = Strong Yes, 3 = Yes, 2 = No, 1 = Strong No, 0 = No score provided. Do not pass labels like "Strong Yes" to Score fields.
- **Literal fields**: For normal string, number, boolean, or date fields, use the literal value in the appropriate format.
- Follow the chosen field's `Value type` line from `describe_object_fields`. Do not infer the value form from the field name alone.
- **Filter errors**: If an error says "Did you mean", retry once with one of the suggested complete field paths before changing tools or object types.
## Expensive queries
- Text matching on \`resume_full_text\` across all candidates, and org-wide counts with no job, stage, or date scope, can be too slow to run. Add a selective filter alongside them.
- If a call fails because the query was too expensive, do not repeat the same filter. Narrow it, or tell the user the request is too broad.
## Sorting
Use `sort` with field paths from `describe_object_fields` for latest, earliest, highest, lowest, or alphabetical requests.
## Filter format examples
Every filter is one object with a top-level \`"operator"\` — put the operator in the \`"operator"\` key, never as a key nested under the field.
- Field operators — \`{ "operator": "<op>", "field": "<field_path>", "value": <value> }\`:
- "equals": \`{ "operator": "equals", "field": "status", "value": "Active" }\`
- "similarTo" (fuzzy text match — the default for free-text like names, schools, companies; tolerates typos): \`{ "operator": "similarTo", "field": "name", "value": "john" }\`
- "contains" / "starts" / "ends" (literal string matching; use "contains" only when the user explicitly asks for exact substring containment): \`{ "operator": "contains", "field": "name", "value": "john" }\`
- "greater" / "less" / "greaterOrEqual" / "lessOrEqual" (numbers only): \`{ "operator": "greaterOrEqual", "field": "years_of_experience", "value": 2 }\`
- "empty" (no value): \`{ "operator": "empty", "field": "primary_personal_email_address" }\`
- "daterange": \`{ "operator": "daterange", "field": "created_at", "value": { ... } }\` — see **Date range filters** below.
- Logical operators:
- \`{ "operator": "and", "filters": [<filter>, ...] }\`
- \`{ "operator": "or", "filters": [<filter>, ...] }\`
- \`{ "operator": "not", "filter": <filter> }\`
Do not nest the operator under the field: \`{ "name": { "contains": "peter" } }\` is wrong. Always use the flat operator/field/value shape shown above.
**Example**: Find active applications for a job:
```json
{
"operator": "and",
"filters": [
{ "operator": "equals", "field": "job_id", "value": "<job_id>" },
{ "operator": "equals", "field": "status", "value": "Active" }
]
}
```
**Date range filters** — for \`"operator": "daterange"\`, \`value\` is one of these shapes (dates are \`YYYY-MM-DD\` strings; never epoch/ISO timestamps, and not keys like \`from\`/\`to\`/\`gte\`/\`after\`):
- \`{ "type": "Since", "date": "YYYY-MM-DD" }\` — from the date through today, inclusive. For future records, use \`Between\` with an explicit end date
- \`{ "type": "Before", "date": "YYYY-MM-DD" }\` — before the date
- \`{ "type": "On", "date": "YYYY-MM-DD" }\` — exactly on the date
- \`{ "type": "Between", "start": "YYYY-MM-DD", "end": "YYYY-MM-DD" }\` — absolute window
- \`{ "type": "Previous", "unit": "1 DAY"|"1 WEEK"|"1 MONTH"|"3 MONTH"|"1 YEAR" }\` — rolling window ending now
**Example**: Applications created within an explicit date window:
\`\`\`json
{ "operator": "daterange", "field": "submitted_at", "value": { "type": "Between", "start": "2026-03-27", "end": "2026-06-25" } }
\`\`\`
When a request is about the current user, use the value "@me" on the relevant user field. The server resolves "@me" to the authenticated user, so you don't need to know their name or Ashby ID. This works on any user field, such as "involves", "hiring_manager", "recruiter", "assigned_reviewer", or other fields whose values are Ashby users. To scope to a different person, pass that user's name as the value instead.
**Example**: Find applications where the current user is involved:
```json
{
"operator": "equals",
"field": "involves",
"value": "@me"
}
```
**Example**: Find AI screening interviews (`objectType`: `ai_screening_interview`) waiting for the current user's review:
```json
{
"operator": "and",
"filters": [
{ "operator": "equals", "field": "assigned_reviewer", "value": "@me" },
{ "operator": "equals", "field": "reviewed", "value": false }
]
}
```
filter_records