Skip to main content
Glama

read_deployment_logs

Read-onlyIdempotent

Retrieve build and deploy logs for a specific deployment, with a configurable tail line count from 1 to 10,000, to diagnose failures and monitor deployment output.

Instructions

Read build and deploy logs for one deployment. tail is how many lines to request (1-10000).

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": {
      "deployment_id": "<deployment_id>"
    },
    "name": "read_deployment_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo
deployment_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds only that both build and deploy logs are returned; it says nothing about truncation, log retention windows, or behavior for an unknown or still-running deployment.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action, with no filler. It is tight, though the tail sentence is slightly redundant with the schema constraints.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the tool itself is simple with two parameters. Still missing are error/edge-case behavior and any routing cue relative to the several sibling log-reading tools.

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 0%, so the description must compensate, and it partially does by explaining tail as the number of lines requested. That largely restates the schema's min/max/default, and deployment_id receives no guidance on where to source the identifier.

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?

States a specific verb and resource: 'Read build and deploy logs for one deployment.' The scoping phrase 'for one deployment' hints at how it differs from application/compose log readers, but no sibling is named explicitly, so discrimination still relies on inference.

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?

Usage is implied by the 'one deployment' scope, but the description never says when to pick this over read_application_logs or read_compose_logs, nor any prerequisite (e.g., obtaining deployment_id from list_deployments).

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