Skip to main content
Glama
PasinduGunarathne

ballerina-activemq-mcp-server

Write broker Config.toml

mq_write_config_toml
DestructiveIdempotent

Write or update the broker connection Config.toml for an existing Ballerina project, setting the [org.project] table with broker URL and optional credentials. Overwrites the existing file.

Instructions

Write or rotate the broker connection Config.toml for an existing project. Sets the [org.project] table with brokerUrl and (optionally) username/password. Note: the acknowledgement mode and transacted flag live in listener.bal (compile-time annotation), so ack_mode/transacted here are written only as documented mirror comments. Overwrites the existing Config.toml.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ack_modeNoOptional: documented mirror of the listener ack mode written as a comment (ack mode itself lives in listener.bal, not Config.toml).
org_nameYesBallerina package organisation name (e.g. "acme"). Used in Ballerina.toml and the Config.toml table header [org.project].
passwordNoBroker password (must be paired with username). Omit for an unauthenticated broker.
usernameNoBroker username (must be paired with password). Omit for an unauthenticated broker.
broker_urlNoOpenWire broker URL. Supported forms: tcp://host:61616 (default), ssl://host:61617, or failover:(tcp://h1:61616,tcp://h2:61616). Example: tcp://localhost:61616tcp://localhost:61616
transactedNoOptional: documented mirror of the transacted flag (written as a comment).
project_nameYesBallerina package / project name. Becomes the folder <bi_path>/<project_name> and the package name.
project_pathYesAbsolute or ~/%USERPROFILE%-relative path to an existing scaffolded project root (the folder containing Ballerina.toml).
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds 'Overwrites the existing Config.toml' which aligns with that. It also discloses a subtle behavior: ack_mode/transacted parameters are only written as comments, not actually affecting runtime behavior. This goes beyond the annotations and schema, providing valuable caution.

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?

The description is three sentences, each earning its place: the action, the table/parameters, and the critical caveat about ack_mode/transacted. It is front-loaded with the verb+resource and contains no fluff or repetition.

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 config-writing tool with 8 parameters, no output schema, and strong annotations, the description covers the key aspects: what is written, to which file, and the overwrite behavior. It does not describe the return value or error scenarios, but given the tool's simplicity and the rich schema, this is adequate. The caveat about ack_mode/transacted adds necessary context for correct use.

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?

The input schema covers 100% of parameters with detailed descriptions, so the baseline is 3. The description adds semantic nuance about how ack_mode and transacted are treated (as documented mirror comments), which is not fully obvious from the schema alone. This extra explanation helps the agent understand the real effect of those parameters.

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 description uses a specific verb+resource: 'Write or rotate the broker connection Config.toml for an existing project.' It clearly states what the tool does and includes an explicit 'Overwrites the existing Config.toml' warning. This distinguishes it from sibling tools like scaffold or add queue, which operate on different resources.

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?

The description notes that the tool is for an existing project and that ack_mode/transacted are only mirror comments, implying that actual ack mode should be set via mq_set_ack_mode (a sibling tool). It does not explicitly name alternatives or state 'when not to use', but the context strongly guides the user away from using this tool for setting effective ack mode.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PasinduGunarathne/wso2-bi-activemq-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server