Skip to main content
Glama

Inspect managed application logs

get_application_logs
Idempotent

Inspect recent, size-bounded container logs for an owned managed app to troubleshoot issues; optionally target one Compose service. Queues a write-permitted inspection and returns logs when ready.

Instructions

Run an on-demand logs inspection of one owned managed application and return recent, size-bounded container logs for troubleshooting. If still pending after polling, retain inspection.id and call get_application_inspection with kind=logs. Optionally select one exact Compose service; omit it to inspect all services. This queues an inspection (a POST), so it needs an API key that permits write operations; a read-only key is rejected. Requires applications:read.

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": {
      "orderNo": "<orderNo>",
      "installation_id": "<installation_id>"
    },
    "name": "get_application_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
serviceNoOptional exact Compose service whose recent logs should be returned
max_bytesNoMaximum log size in bytes; defaults to 65536 and cannot exceed 131072
tail_linesNoMaximum log lines to return; defaults to 200 and cannot exceed 500
installation_idYesManaged application installation UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / installation_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4.4/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description explains WHY the write hint is false: this queues an inspection (a POST) requiring an API key that permits write operations, with read-only keys rejected, plus applications:read scope. That is exactly the kind of context annotations cannot carry. It stops short of describing the async lifecycle timing or what a truncated size-bounded result looks like.

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?

Four tight sentences with no filler: purpose and payload shape first, the pending/fallback rule second, service selection third, and the auth constraint last. Front-loading the core action before the prerequisite details makes scanning easy for an agent deciding whether to call.

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?

For a five-parameter, non-destructive POST-style tool with no output schema, the definition covers action, scope, the async continuation, and the auth prerequisite. The only gap is that the description references a returned inspection.id without saying anything about the pending/complete result shape, which matters since no output schema exists to explain it.

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%, so the schema already documents the patterns, defaults and bounds for orderNo, service, max_bytes and tail_lines. The description adds only the service omission rule and the general 'size-bounded' characterization, which largely restates what the schema defaults and maximums already convey.

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: 'Run an on-demand logs inspection of one owned managed application and return recent, size-bounded container logs for troubleshooting.' It also scopes the tool against the async continuation path by naming get_application_inspection with kind=logs, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

It states the primary condition (troubleshooting container logs of one owned application) and an explicit fallback: if the inspection is still pending after polling, retain inspection.id and call get_application_inspection with kind=logs. It also gives the selection rule for the optional service parameter: pick one exact Compose service, or omit it to inspect all services.

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

Deploy Server

Other Tools