Skip to main content
Glama

fetch_build_log

Retrieve build execution logs from TeamCity with pagination controls for efficient debugging and analysis of CI/CD pipeline results.

Instructions

Fetch build log with pagination (by lines)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildIdNoBuild ID (TeamCity internal id)
buildNumberNoHuman build number (e.g., 54). If provided, optionally include buildTypeId to disambiguate.
buildTypeIdNoOptional build type ID to disambiguate buildNumber
pageNo1-based page number
pageSizeNoLines per page (default 500)
startLineNo0-based start line (overrides page)
lineCountNoMax lines to return (overrides pageSize)
tailNoTail mode: return last N lines
encodingNoResponse encoding: 'text' (default) or 'stream'text
outputPathNoOptional absolute path to write streamed logs; defaults to a temp file when streaming

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