Skip to main content
Glama

fetch_build_log

Read-onlyIdempotent

Retrieve build logs with line-based pagination and streaming output for efficient analysis of build output.

Instructions

Fetch a build log. Supports line-based pagination and streaming output.

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
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds behavioral context about pagination and streaming beyond annotations, but does not disclose output format or potential constraints like rate limits.

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 a single concise sentence that effectively communicates the core functionality without any unnecessary 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?

Given the 10 parameters with full schema coverage and no output schema, the description sufficiently covers the tool's purpose and key features. It could mention typical use or output format but is 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 description coverage is 100% with detailed parameter descriptions. The description adds marginal value by referencing 'line-based pagination and streaming output', but does not explain parameters beyond what the schema provides.

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 'Fetch a build log' with a specific verb and resource. It does not explicitly differentiate from sibling tools like 'download_build_artifact' but the purpose is unambiguous.

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?

The description mentions 'Supports line-based pagination and streaming output', implying use cases for paginated or streaming logs. However, it provides no explicit when-to-use or when-not-to-use guidance or alternatives.

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