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.

MCP toolsConnect agents
POST/api/mcp/enforce-tool-call

Parameters

NameInTypeDescription
x-blekline-workspace-tokenRequiredheaderstringScoped workspace token (blw_…) or session-authenticated browser call from the console.
toolNameRequiredbodystringMCP tool name.
argumentsRequiredbodyobjectTool arguments JSON.
clientSurfacebodystringcursor, sdk, extension, …

Responses

StatusMeaning
200allow | mask | block decision
403Blocked