BC Data docs

call

Call any tool by name

Run any tool by name with its params, validated against the tool's schema. Use describe first to see the schema. Read only.

Cost: 1 unit of your allowance (see Rate limits).

Parameters

  • tool (string, required): min length 1, max length 80
  • params (object, optional): default {}

REST

curl -X POST https://api.bcmcp.ca/v1/tools/call \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"..."}'

MCP

Call the tool call 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":"call","arguments":{"tool":"..."}}}'

What comes back

Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.

On this page