Skip to main content
Glama
amintt2
by amintt2

Get application logs

get_application_logs
Read-only

Retrieve container log lines from a running application. Specify trailing line count and optional timestamps; returns a clear error if the app is not running.

Instructions

Last lines lines (default 100) of a running application's container logs. Fails with a clear message if the app is not running.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoTrailing lines to return.
applicationYesApplication uuid, exact name, or a unique part of its name or domain.
show_timestampsNoPrefix lines with Docker timestamps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already communicate read-only safety. The description adds useful behavioral context by stating the tool returns only trailing lines and fails clearly when the app is not running, which is beyond what annotations alone convey.

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 compact sentences front-load the core behavior and add a relevant failure note with no wasted words. The description is appropriately sized for the tool's simplicity.

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?

The description sufficiently conveys invocation conditions, failure behavior, and output scope for a simple read-only log tool. There is no output schema, so the exact response format is slightly under-specified, but this does not materially impair correct selection or calling.

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% and each parameter is already well-described in the schema. The tool description only restates the lines default and application context, adding little semantic value beyond the 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?

States a specific verb and resource: retrieving the last lines of a running application's container logs, including the default line count. This clearly distinguishes it from the sibling management/list tools, none of which are log-focused.

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?

Establishes the applicable context (running application) and explicitly describes the failure mode if the app is not running. It does not name alternatives, but no sibling tool targets application logs, so this is sufficient practical guidance.

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