Skip to main content
Glama
lingcSun

mcp-bw-adt-api

by lingcSun

bw_datasource_get_xml

Retrieves raw DataSource XML for PUT updates. Write full XML to disk via outputPath for direct reuse in save/activate; otherwise get summary or inline XML.

Instructions

Get raw DataSource XML for PUT updates. ALWAYS prefer outputPath. With outputPath, full XML is written to disk (reuse as xmlPath in bw_datasource_save_and_activate). Without it, format='summary' returns an overview; format='xml' returns raw XML inline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOnly affects inline responses (no outputPath).
datasourceYes
outputPathNoIf provided, the full result is written to this path (under the workdir) and the tool returns only a small summary envelope { ok, outputPath, bytes, summary }. Objects/arrays are written as JSON; ONLY the bw_*_get_xml family writes the raw XML string as plain text (that file is directly reusable as xmlPath in a later save call). Other *_get tools (e.g. bw_dtp_get, bw_trfn_get) write the PARSED XML-to-JSON tree, not raw XML — use the matching bw_*_get_xml tool when you need the raw XML string. Use outputPath for large responses (XML, table data, logs, dataflow graphs). When set, tools skip inline pagination/projection so the file contains the complete payload.
sourceSystemYes
forceCacheUpdateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and it discloses the key behaviors: get operation, file output when outputPath is set, inline summary vs raw XML otherwise, and reusability of the written XML. It does not describe the default format when format is omitted or the effect of forceCacheUpdate, but these are less central than the main behavior.

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?

Three sentences with the key workflow and format decisions front-loaded. The 'ALWAYS prefer outputPath' directive is direct, and no sentence is wasted.

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

Completeness3/5

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

Core behavior is covered well, but with no annotations and no output schema, the definition still leaves forceCacheUpdate and sourceSystem undefined and doesn't state the inline default when format is absent. For a 5-parameter tool with low schema coverage, these are meaningful gaps.

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

Parameters2/5

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

Schema coverage is only 40%, and the description mostly clarifies outputPath and format, leaving the required sourceSystem and the forceCacheUpdate boolean undocumented in both schema and description. It does add concrete meaning for format (summary vs xml), but it does not compensate for the low coverage of the remaining parameters.

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

Purpose4/5

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

States a specific verb and resource ('Get raw DataSource XML') and the intended workflow ('for PUT updates'), so an agent knows this is the datasource read-for-edit tool. It doesn't explicitly contrast with sibling get_xml tools (bw_adso_get_xml, bw_trfn_get_xml, etc.), though the resource name and 'DataSource' make the target object clear.

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?

Gives a strong directive ('ALWAYS prefer outputPath') and explains the outputPath workflow: write full XML to disk and reuse it as xmlPath in bw_datasource_save_and_activate. It also states the inline format alternatives (summary vs xml) and the schema adds the explicit rule to use a bw_*_get_xml tool when raw XML is needed.

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