GetUserMCPTools
Get the MCP tools a user has been given access to.
Only an Administrator can call this route. It cannot be run as another user, who is never an Administrator. The MCP module must be enabled.
Only access given to the user directly is returned, which is the access that Update User MCP Tools changes. A tool that one of their groups gives them is not listed here, and is returned by Get Group MCP Tools for that group. A user who has no API key has no direct access, and an empty list is returned.
Each tool is returned as it appears in Get Available MCP Tools, sorted by name, ignoring case, so the two lists can be compared.
Headers
GET /api/ss/user/:id/mcp-tools HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/jsonRequest
Path Parameters
id - string | required
ID of the user. Must be a 24-character hexadecimal id.
Example
Request
Response
Access and failures
Errors are returned in error, with a count of 0 and an empty list:
Unauthorized- the caller is not an Administrator.User Not FoundorError Finding User- the user could not be found.Error Finding MCP Tools- the user's MCP tools could not be read.
Last updated