Brume · Docs

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.

Answer the first question with choice at index 0
{
  "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:

ToolAPI route check
create_workspaceTenant permission CAN_CREATE_WORKSPACE
delete_workspaceWorkspace permission CAN_DELETE_WORKSPACE
write_fileWorkspace permission CAN_EDIT_FILES for an update; CAN_CREATE_FILES for a creation
upload_fileWorkspace permission CAN_CREATE_FILES
delete_fileWorkspace 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 statusException raisedMessage sent to the agent
401BrumeErrorAuthentication failed — check BRUME_TOKEN
404BrumeNotFoundErrorNot found: <path>
409BrumeErrorConflict: <path>
422BrumeErrorValidation error: <detail> (extracted from the body)
≥ 500BrumeErrorBrume server error: <code>

Two behaviors deserve the attention of the integrator:

  • 404 is typed separately (BrumeNotFoundError). write_file uses this behavior: a PUT to a missing path raises BrumeNotFoundError, which the client catches to switch to multipart creation. A 404 is therefore not always terminal on the MCP side.
  • 422 propagates detail: the client reads detail from the body and injects it into its message so that the agent sees the exact validation cause.

Timeouts

TimeoutValueScope
HTTP request30 secondsEach individual MCP client call
run_conversation timeout300 seconds by defaultThe 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.

On this page