Skip to main content
Glama

Get app logs

get_app_logs
Read-onlyIdempotent

Get the most recent runtime logs for one app. Call this when an app is crashing, returning errors, or a deploy succeeded but the app misbehaves: the logs usually name the cause. At most 32 KB, the newest lines; a line says where older ones were left out.

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": {
      "app_id": "<app_id>"
    },
    "name": "get_app_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNoNumber of recent log lines to return (max 200, default 100)
app_idYesThe app id returned by list_apps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety needs no restating. The description adds genuinely useful output behavior beyond that: a 32 KB cap, newest-lines ordering, and an in-band marker line indicating where older lines were dropped. That truncation disclosure is exactly the kind of context an agent needs and cannot get from the annotations.

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 sentences, zero waste, with the operation and its scope front-loaded before the trigger conditions. The truncation caveat is placed last where it belongs, as a secondary detail rather than a distraction.

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 no output schema, the description carries the burden of describing returns and does so adequately: recent lines, newest-first, size-capped, with an explicit omission marker. It stops short of describing line format or whether the response is a single blob versus a list, but nothing essential to correct invocation is missing for a two-parameter read tool.

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 both app_id and tail documented in the schema, so the baseline is 3. The description adds only indirect meaning: 'the newest lines' and the 32 KB ceiling imply that tail results may be further limited by size, but no explicit interaction between tail and the byte cap is spelled out.

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?

The description opens with a specific verb and resource ('Get the most recent runtime logs for one app'), scoping the operation to a single app. It is immediately distinguishable from siblings such as get_app_status or get_resource_usage, which report state and metrics rather than log output.

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 concrete triggering conditions: app crashing, returning errors, or a deploy that succeeded but the app misbehaves, plus the rationale that 'the logs usually name the cause.' That is a clear when-to-use signal. It does not state when not to use it or name an alternative tool, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.