Skip to main content
Glama
BauplanLabs

Bauplan MCP Server

Official
by BauplanLabs

code_run

Run a data pipeline by providing source code files and a branch reference, with optional parameters, returning a job ID and success/failure status.

Instructions

Run a pipeline from provided source code files as a dictionary and a data ref, returning a job ID and success/failure to the caller.

Args: project_files: Dictionary mapping file names to source code as strings. Must contain bauplan_project.yml and .sql/.py files. ref: The ref or branch name from which to run the project. parameters: Parameters for templating DAGs. Keys are parameter names, values must be simple types (str, int, float, bool). Default: None.

Returns: RunState: Object indicating success/failure with job Id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_filesYes
refYes
parametersNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
job_idNo
Behavior3/5

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

No annotations provided, so description carries burden. Discloses constraints (must contain bauplan_project.yml and .sql/.py files) and return characteristics (job ID suggesting asynchrony). Does not mention side effects, permissions, or failure 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?

Description is concise, well-structured with a brief intro and clear Args/Returns sections. Front-loaded with purpose, no wasted words.

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?

Covers key aspects: inputs, constraints, output as RunState. Given moderate complexity and presence of output schema, missing edge case behavior (e.g., missing required files) but overall sufficient.

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

Parameters5/5

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

Schema description coverage is 0%, but description fully compensates with detailed explanations for all three parameters: project_files (dictionary, required files), ref (branch name), parameters (templating, simple types, default). Adds constraints and purpose beyond schema types.

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?

The description clearly states the tool runs a pipeline from source code files, specifying verb 'Run' and resource 'pipeline from source code files'. It distinguishes from siblings like 'project_run' but does not explicitly differentiate.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'project_run' or 'run_query'. Description lacks context for selection without explicit exclusions.

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/BauplanLabs/bauplan-mcp-server'

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