Skip to main content
Glama
BunkerWeb MCP

BunkerWeb MCP

Official

create_configs_from_files

Destructive

Create multiple BunkerWeb config snippets from base64-encoded files sharing one config type and service, with each snippet named after its file stem and invalid files reported without failing the batch.

Instructions

Create snippets from base64 files ({filename, content_base64}) sharing one type and service; each is named after its sanitized file stem and bad files are reported, not fatal. Use create_config for text. Saved to the database; the scheduler applies it later; this tool cannot confirm it is live.

Input Schema

NameRequiredDescriptionDefault
filesYesFiles to create, one snippet per file, named after the sanitized file stem
serviceNoService ID for every file; omit or 'global' for global
is_draftNoCreate as draft
config_typeYesType for every uploaded file. Custom config type, e.g. http, server-http, default-server-http, stream, server-stream, modsec, modsec-crs, crs-plugins-before, crs-plugins-after

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true) it discloses substantive behavior: partial failure is non-fatal ('bad files are reported, not fatal'), results are persisted to the database, and the scheduler applies them later so liveness cannot be confirmed. It doesn't address whether a file whose sanitized stem collides with an existing snippet overwrites it, which matters given destructiveHint=true.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the verb and resource, then the failure semantics, then the eventual-consistency caveat. No filler, and every clause carries information an agent needs before calling.

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

Completeness4/5

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

For a bulk mutation tool with no output schema, it covers the essentials: input format, naming, partial-failure reporting, and the asynchronous apply model. The remaining gap is overwrite/collision behavior on repeated file stems, which an agent would need to know before a destructive-flagged call.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented in the schema. The description reinforces the shared config_type/service semantics and the stem-based naming, but adds nothing about is_draft or the service 'global' default beyond what the schema states, so the baseline of 3 applies.

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?

States a specific verb and resource ('Create snippets from base64 files') plus the exact input shape ({filename, content_base64}), the shared type/service constraint, and the naming rule (sanitized file stem). It also explicitly distinguishes itself from the sibling create_config by routing text input there.

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

Usage Guidelines4/5

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

Explicitly names the alternative for the text case ('Use create_config for text'), which is the main selection decision an agent faces among the create_* siblings. It lacks an explicit when-not for the neighboring update_config_from_file, so the routing guidance is clear but not exhaustive.

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