Skip to main content
Glama

download_build_artifact

Read-onlyIdempotent

Download a build artifact from TeamCity by path, with support for base64, text, or streaming output. Specify build ID or number for precise retrieval.

Instructions

Download a single build artifact, with base64, text, or streaming output. Returns the artifact bytes or stream metadata; returns 404 if the build or path is unknown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildIdNoBuild ID (internal TeamCity ID)
buildNumberNoHuman-readable build number (requires buildTypeId)
buildTypeIdNoBuild configuration ID (required when using buildNumber)
artifactPathYesArtifact path or name
encodingNoResponse encoding: 'base64' (default), 'text', or 'stream'base64
maxSizeNoMaximum artifact size (bytes) allowed before aborting
outputPathNoOptional absolute path to write streamed content; defaults to a temp file when streaming
Behavior4/5

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

Annotations already declare read-only and idempotent. Description adds return types (bytes/stream metadata), error case (404), and encoding options. Does not disclose maxSize abort behavior but overall good context.

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 concise sentences. First sentence states core function and options; second states return and error. No redundant information. Front-loaded and efficient.

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 tool with 7 parameters (1 required) and no output schema, description covers purpose, return, error, and encoding. Missing details on maxSize abort or outputPath usage, but schema provides those. Overall adequate.

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 covers 100% of parameters with descriptions, so baseline 3. Description adds context about output formats but no new details beyond schema. Parameter meanings are already clear from schema.

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?

Clear verb 'download' and resource 'single build artifact'. Distinguishes from sibling 'download_build_artifacts' (plural) by being singular. Mentions output formats and error condition (404).

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

Usage Guidelines3/5

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

Implied usage for single artifact vs. sibling for multiple, but no explicit when-to-use or when-not-to-use. No exclusions or alternatives named. Relies on schema for parameters.

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/Daghis/teamcity-mcp'

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