correctional_facilities
B.C. correctional facility locations
Where B.C.'s correctional facilities are, from the province's Correctional Facilities layer on DataBC, read live: name, type (prison, youth custody or pretrial), town, address, website and position. Filter by name, town, type, or distance from a point. Facility locations only: nothing about the people held in or working at a facility, and no counts, capacity, security level or operator (the layer does not say whether a facility is federal or provincial).
Cost: 3 units of your allowance (see Rate limits).
Parameters
name(string, optional): min length 1, max length 60locality(string, optional): min length 1, max length 60type(prison,youth custody,pretrial, optional)lat(number, optional): min 47.5, max 61lon(number, optional): min -140, max -113radius_km(number, optional): min 0.5, max 200limit(integer, optional): min 1, max 50, default30
REST
curl -X POST https://api.bcmcp.ca/v1/tools/correctional_facilities \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{}'MCP
Call the tool correctional_facilities with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"correctional_facilities","arguments":{}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.