Manage Keys & ServersSet per-client tool access

Set per-client tool access

Identical to the POST form — the same handler serves both verbs.

curl -X PUT "https://mythic-analytics.gulp.workers.dev/builder/mcp/tools/123e4567-e89b-12d3-a456-426614174000/access" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "location_id": "loc_abc123",
  "is_allowed": true
}'
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tool_id": "123e4567-e89b-12d3-a456-426614174000",
    "location_id": "loc_abc123",
    "is_allowed": true
  }
}
PUT
/builder/mcp/tools/{id}/access
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).
Content-Typestring
Required

The media type of the request body

Options: application/json
location_idstring

Client the rule applies to. Falls back to the location bound to the request; one of the two must be present.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

Path Parameters

Body

application/json
location_idstring

Client the rule applies to. Falls back to the location bound to the request; one of the two must be present.

Example:
loc_abc123

Responses

dataobject