MCP tools reference
The 18 tools of the Brume MCP server, their parameters and returns, the permissions enforced by API routes, and the client error mapping.
In brief
The MCP server exposes 18 tools: 1 for tenants, 3 for workspaces, 5 for files, 8 for skills, and 1 for conversations. Each result is returned as MCP text content, using JSON for objects and lists.
This page is authoritative on values. To connect a client, see MCP.
Tool catalog
Parameters in bold are required. Others are optional; their default value is shown when one exists.
auto_choices maps a question’s string index to {choice_index: integer | null, free_text: string | null}. Without a prepared answer, an agent question ends the call with an error.
{
"workspace_id": "0192f3a4-...",
"message": "Run the summary skill on the latest report.",
"timeout": 600,
"auto_choices": {
"0": { "choice_index": 0, "free_text": null }
}
}Permissions enforced by API routes
The MCP server forwards calls to API routes, which enforce permissions. These five mutation tools trigger the following checks:
| Tool | API route check |
|---|---|
create_workspace | Tenant permission CAN_CREATE_WORKSPACE |
delete_workspace | Workspace permission CAN_DELETE_WORKSPACE |
write_file | Workspace permission CAN_EDIT_FILES for an update; CAN_CREATE_FILES for a creation |
upload_file | Workspace permission CAN_CREATE_FILES |
delete_file | Workspace permission CAN_DELETE_FILES |
Other calls also follow their route’s role and resource checks. Whitelist tools notably enforce the right to edit skills or the referent role accepted by the route. See Roles and permissions for the complete matrix.
File mutations under /.skills/ return use_edit_skill and direct the caller to the dedicated skill tools.
Return format
The server serializes objects and lists as indented JSON, and strings as-is, in a single TextContent. A Brume client error becomes an MCP INTERNAL_ERROR with its message.
MCP client errors
The MCP client (python -m brume.mcp, configured by BRUME_URL and BRUME_TOKEN) calls the REST API with the same JWT. On each response, it maps the status to a typed exception before returning control to the agent:
| API status | Exception raised | Message sent to the agent |
|---|---|---|
401 | BrumeError | Authentication failed — check BRUME_TOKEN |
404 | BrumeNotFoundError | Not found: <path> |
409 | BrumeError | Conflict: <path> |
422 | BrumeError | Validation error: <detail> (extracted from the body) |
≥ 500 | BrumeError | Brume server error: <code> |
Two behaviors deserve the attention of the integrator:
404is typed separately (BrumeNotFoundError).write_fileuses this behavior: aPUTto a missing path raisesBrumeNotFoundError, which the client catches to switch to multipart creation. A404is therefore not always terminal on the MCP side.422propagatesdetail: the client readsdetailfrom the body and injects it into its message so that the agent sees the exact validation cause.
Timeouts
| Timeout | Value | Scope |
|---|---|---|
| HTTP request | 30 seconds | Each individual MCP client call |
run_conversation timeout | 300 seconds by default | The application-level run of the conversation |
2xx statuses pass without an exception; an unlisted status also passes without raising an exception, with the raw body rendered as is. A long conversation is not cut off by the transport timeout: the two are separate.