Skip to main content
Glama

Inspect managed application logs

get_application_logs
Idempotent

Run an on-demand logs inspection of an owned managed application to return recent, size-bounded container logs for troubleshooting; optionally target one Compose service.

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.

Input Schema

TableJSON 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. First observedv2.3.16

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds critical context beyond them: the tool is a POST that queues an inspection despite its 'get_' name, it requires an API key permitting write operations, and requires the applications:read scope. This is exactly the gotcha an agent would otherwise miss from the read-flavored name.

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?

Front-loaded with the core action, then the pending-follow-up, the service scoping, and the auth caveat. Four dense sentences with little waste, though the auth/permission sentences could be tightened slightly.

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 return-value burden and does describe the return as 'recent, size-bounded container logs,' plus the async inspection.id/polling flow. Response shape details (fields of the inspection result) remain unspecified, but the operational flow is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaning for `service` (one exact Compose service; omit to inspect all services) and signals the size-bounding behavior behind `max_bytes`/`tail_lines`, though it adds no detail for orderNo or installation_id 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+resource: 'Run an on-demand logs inspection of one owned managed application and return recent, size-bounded container logs.' It scopes the operation (single owned application, size-bounded logs) and implicitly distinguishes itself from the sibling get_application_inspection, which it references for the pending follow-up path.

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?

Explicitly tells the agent what to do next when the operation is pending ('retain inspection.id and call get_application_inspection with kind=logs') and names the alternative tool by name. It also states when to supply the `service` parameter vs omit it, and gives the auth precondition (write-permitting key required, read-only key rejected).

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