Skip to main content
Glama

get_build_logs

Read-only

Retrieve a deployment's status, error message, and recent build log lines; omit deployment_id to read the project's latest deployment and use after_id to follow an in-progress build.

Instructions

Get a deployment's status, error message and build log lines.

Without deployment_id, reads the project's latest deployment. To follow a build in progress, call again with after_id set to the cursor returned. Only the last max_lines lines are returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "get_build_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
after_idNo
max_linesNo
project_idYes
deployment_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a safe read of a closed system, and the description adds real behavior on top: the default-to-latest resolution when deployment_id is absent, a polling pattern via a returned cursor, and truncation to the last max_lines lines. It does not explain what the cursor actually is (line id vs timestamp), which is the one piece an implementer still has to guess.

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 short sentences, each doing distinct work: what you get, the default deployment behavior, and the continuation/truncation rules. Nothing is restated from the schema and nothing is padding.

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?

An output schema exists, so the description rightly omits return-value detail and instead covers resolution, pagination, and truncation — the parts an agent must know to call it correctly. The remaining omission is the meaning of project_id and the exact cursor semantics, minor for a read-only log fetch.

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

Parameters4/5

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

With 0% schema description coverage the description has to carry the load, and it does for most parameters: deployment_id is optional and defaults to the project's latest, after_id is the cursor for resuming a poll, and max_lines caps the response. Only project_id and the after_id type/starting value go unexplained, leaving a small but real gap.

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 opens with a specific verb+resource ('Get a deployment's status, error message and build log lines') and adds the important scope detail that a build log differs from a runtime log by naming the build context. It does not explicitly point at the sibling get_runtime_logs, so an agent must infer the build-vs-runtime split rather than being told.

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

Usage Guidelines4/5

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

It gives clear conditions: omit deployment_id to read the project's latest deployment, and re-call with after_id to follow an in-progress build. What is missing is any explicit exclusion or alternative (e.g., when to prefer get_runtime_logs), so guidance is strong but not a full when/when-not map.

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