Skip to main content
Glama

read_application_logs

Read-onlyIdempotent

Retrieve an application's container logs to troubleshoot runtime issues, with optional tail, time range, and text search filters.

Instructions

Read an application's container logs, not its build logs.

since is 'all' or a duration like 10s, 5m, 2h, or 1d. search is an optional plain string of letters, numbers, spaces, dots, underscores, and hyphens.

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": {
      "application_id": "<application_id>"
    },
    "name": "read_application_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo
sinceNoall
searchNo
application_idYesapplicationId from list_applications or get_project.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered and the description rightly doesn't repeat it. What it adds beyond that is the log-stream scope (container, not build) and the accepted formats for since and search; it says nothing about truncation, log retention, or what happens when no logs exist.

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?

The purpose and its exclusion come first, followed by compact parameter notes; there is no filler. The line break inside the description is slightly awkward, but every sentence carries information an agent needs.

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?

With an output schema and rich annotations supplied, the description doesn't need to explain return values or safety, and it correctly focuses on stream scope and input formats. The remaining hole is tail plus any note on log volume limits, which a caller would want before requesting a large read.

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 coverage is only 25% — application_id is documented in the schema and the description compensates for two of the three remaining params by spelling out since's "all"/duration syntax and search's permitted character set. The tail parameter, which controls how many lines are returned, is never explained in either place, leaving the most operationally important knob undefined.

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 definition leads with a specific verb and resource ("Read an application's container logs") and immediately scopes it against a plausible wrong target ("not its build logs"). It does not, however, distinguish itself from the log-reading siblings read_deployment_logs or read_compose_logs, so an agent must still infer which log stream belongs to an application.

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 only implied: the reader learns this is for container logs rather than build logs, but there is no statement of when to reach for this tool versus read_deployment_logs or read_compose_logs, and no prerequisites such as needing a deployed/running app. The bulk of the text is parameter formatting rather than routing guidance.

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