curl -sS -X POST "https://app.blekline.com/api/mcp/enforce-tool-call" \
-H "Content-Type: application/json" \
-H "x-blekline-workspace-token: $BLEKLINE_WORKSPACE_TOKEN" \
-d '{"toolName":"shell_exec","arguments":{"cmd":"pwd"},"clientSurface":"sdk"}'Enforce Tool Call
Evaluate MCP tool calls against workspace tool policy before execution.
POST
/api/mcp/enforce-tool-callParameters
| Name | In | Type | Description |
|---|---|---|---|
x-blekline-workspace-tokenRequired | header | string | Scoped workspace token (blw_…) or session-authenticated browser call from the console. |
toolNameRequired | body | string | MCP tool name. |
argumentsRequired | body | object | Tool arguments JSON. |
clientSurface | body | string | cursor, sdk, extension, … |
Responses
| Status | Meaning |
|---|---|
200 | allow | mask | block decision |
403 | Blocked |