ofp_policies
Fetch a sector's published policy guardrails as Rego source, listing required e-ledger fields. If none are published, returns published:false with a reason — a real answer, not an error.
Instructions
Get a sector's policy guardrails as Rego source (free), with policies[].inputs listing the record types and input fields each policy reads — e-ledger fields such as co2e_kg and direction, not canonical Open Footprint field names; a payload without them is reported unevaluable by ofp_validate. When a sector has no published guardrails this returns published:false with a reason — that is a real answer, not an error. Treat it as "no rules are published", never as "there are no constraints", and do not invent guardrails to fill the gap.
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": {
"id": "<id>"
},
"name": "ofp_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sector id, e.g. "extractives" |