Create quota
create_quotaCap how many completes a group may fill. Demographic cell: quota_type 'gender' + gender (m/f/nb) or quota_type 'age' + age_from/age_to (bound automatically to the standard questions). Own-question cell: conditions [{qid, code}] — conditions on two different questions INTERLOCK (respondent must satisfy all). Limit is in completes.
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": {
"survey_id": "<survey_id>",
"name": "<name>",
"qlimit": "<qlimit>"
},
"name": "create_quota"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Quota name, e.g. 'Female 25-34'. | |
| age_to | No | With quota_type age. | |
| gender | No | With quota_type gender. | |
| qlimit | Yes | Maximum completes for this cell. | |
| age_from | No | With quota_type age. | |
| survey_id | Yes | Survey id (see list_surveys, or the survey_id returned by a create tool). | |
| conditions | No | Own-question conditions; 2+ questions = interlocked. | |
| quota_type | No | Demographic cell type (omit for own-question cells). |