experiment_plans_count_segment
Counts discovery companies matching the plan's search_params, stores the number as segment_size (with segment_counted_at) and recomputes the estimate, which adds a blocking segment_too_small problem when the segment cannot supply the companies the experiment needs. Free: no connects. Returns the updated plan; read estimate.feasible and estimate.problems. A plan with no criteria gets segment_size: null.
Method: POST /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/count-segment/
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": {
"sqid": "<sqid>"
},
"name": "experiment_plans_count_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes |