Build sourcing query
build_sourcing_queryBuild a reviewable sourcing query from a natural-language brief and, optionally, a role's criteria. Always build a query before sourcing and show it to the user for review. This does not search for people. Resolve named employers with resolve_company first. To revise a reviewed query, use edit_sourcing_query instead of building again, unless the role, the brief or the kind of person wanted has changed. Use strategy archetype for people defined by what they did or were, such as founders, former military officers or career changers, rather than by employer. Requires OAuth.
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": {
"workspaceId": "<workspaceId>"
},
"name": "build_sourcing_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | A short free-text phrase describing the people to find. | |
| cities | No | Cities the candidates should be based in. | |
| roleId | No | Role whose criteria and target companies shape the query, from list_roles. Omit for a query based on the brief alone. | |
| country | No | Country the candidates should be based in. | |
| schools | No | Schools or universities the candidates attended. | |
| allRoles | No | Job titles the candidates should have held at any time. | |
| keywords | No | Up to eight specialties or skills to emphasise. | |
| strategy | No | target_companies (default) filters on the role's target employers or the named employers. archetype finds a kind of person by what they did or were, such as founders, former military officers or career changers, and ignores the role's target employers unless workedAtCompanyNames names some. Use archetype when the brief describes a background rather than an employer pool, or when the employer pool has not produced the right people. | |
| workspaceId | Yes | The workspace id returned by list_workspaces. Use 'personal' for the personal workspace. | |
| currentRoles | No | Job titles the candidates should hold now. | |
| minTenureMonths | No | Preferred minimum months in at least one role. | |
| seniorityLevels | No | Seniority levels to target. | |
| maxExperienceYears | No | Maximum total years of experience. Replaces the role's range, so set it only from a range the recruiter stated. | |
| minAvgTenureMonths | No | Preferred minimum average months per role. | |
| minExperienceYears | No | Minimum total years of experience. Replaces the role's range, so set it only from a range the recruiter stated. | |
| workedAtCompanyNames | No | Employers the candidates should have worked at, using the names returned by resolve_company. Overrides the role target companies. | |
| workedAtCompanySlugs | No | LinkedIn company slugs returned by resolve_company for the employers above. Never invent a slug. | |
| summaryOfCandidateRequirementsNotInRole | No | Any other requirement from the brief that the role criteria and the fields above do not already capture. |