policy_create
Create a scheduled crawl policy that defines which concepts and entity types to fetch, with cron timing, crawl mode, and date-range rules.
Instructions
Create a crawl policy.
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": {
"name": "<name>",
"concept_ids": "<concept_ids>",
"entity_type": "<entity_type>"
},
"name": "policy_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Crawl mode: series (one fetch per concept×entity) or per_date (default). | per_date |
| name | Yes | Unique policy name. | |
| force | No | Override POLICY_MAX_FETCHES guardrail (default False). | |
| script | No | For executor="direct": the script module name (e.g. "bulk_ingest_financials_aggregate"); mounted from a ConfigMap. | |
| enabled | No | Enable the policy (default True). | |
| executor | No | "scrapy" (default) runs the concept_crawl spider; "direct" runs a Python script (see `script`) as a k8s Job. | scrapy |
| timezone | No | Timezone for cron evaluation (default UTC). | UTC |
| cron_expr | No | 5-field cron expression (default daily at 06:00 UTC). | 0 6 * * * |
| frequency | No | Plan frequency hint: daily/weekly/monthly/quarterly/yearly (default daily). | daily |
| entity_ids | No | Optional list of entity IDs (NULL = all entities of the type). | |
| concept_ids | Yes | List of concept IDs to crawl. | |
| date_policy | No | Date range policy: {mode: since_last|trailing|explicit, days?, start?, end?}. | |
| entity_type | Yes | Entity type (fund/stock/country/...). | |
| script_args | No | For executor="direct": CLI args passed to the script (e.g. ["--start-year","2015","--end-year","2026"]). --db-url is injected automatically from the cluster env. | |
| source_filter | No | Optional list of source names to restrict to (NULL = all ranked sources). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||