Skip to main content
Glama

Write a file into a briq

briq_files_put
DestructiveIdempotent

Upload a file (base64, 1 MB per call) into a running briq. Creates parent directories; the file stays on its disk across stops and restarts. The answer gives the SHA-256 of the bytes written, checked inside the briq when its image has sha256sum: compare it with the digest of your own copy. Base64 that was cut short is refused. A file its command needs to start belongs in files of briq_run instead: a briq whose command fails without it never gets far enough for an upload. A larger file goes as raw bytes, which a tool call cannot carry: ask the person to run briq files-put (the CLI), or fetch it from inside the briq with briq_exec (git clone, curl); briq_quota gives the largest file the raw route takes (maxFileBytes). Code on GitHub runs with a language recipe's checkout. path is in the briq's own filesystem; reference: https://briq.cloud/docs/mcp/tools#briq_files_put--briq_files_get

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "briq": "<briq>",
      "path": "<path>",
      "contentBase64": "<contentBase64>"
    },
    "name": "briq_files_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
briqYes
pathYesabsolute path inside the briq
contentBase64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses size cap, parent-directory creation, persistence across stop/restart, SHA-256 verification of bytes written, and rejection of truncated base64. What it does not state is the overwrite behavior on an existing path, which is the one place destructiveHint: true would benefit from elaboration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, size cap and verification outcome, then alternatives. Dense but every sentence carries a constraint; the large-file detour spanning CLI, briq_exec and briq_quota is the longest single digression and could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter write tool with no output schema, it covers the size limit, what the response contains (SHA-256), what happens on malformed input, persistence semantics, and the escape hatches for out-of-band files. An agent can call it correctly and interpret the result without further lookups.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (just `path`), so the description has to compensate, and it does: `path` is scoped to the briq's own filesystem, `contentBase64` gains an encoding, a 1 MB ceiling and a truncation failure mode. The `briq` identifier is left to its regex pattern, which is sufficient but unremarked.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific verb and target: 'Upload a file (base64, 1 MB per call) into a running briq.' It also differentiates from siblings by name, pointing at briq_run's `files` for startup files, briq_exec for large fetches, and briq_files_get via the docs anchor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: startup files must go in briq_run's `files` because the briq never gets far enough to accept the upload; oversized files go via the CLI or briq_exec; GitHub code uses a recipe's `checkout`. Each alternative is named with the condition that selects it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.