Skip to main content
Glama
SH-G401
by SH-G401

Container App logs

azure_containerapp_logs
Read-onlyIdempotent

Retrieve recent Azure Container App logs from Log Analytics. Filter by console or system source, revision, or text to troubleshoot application failures and platform events.

Instructions

Reads recent Container App logs from the environment's Log Analytics workspace. source "console" is your containers' stdout/stderr; "system" is platform events: revision provisioning, image pulls, probe failures, crashes and scaling. Filter by revision or by text. Results are oldest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoHow many hours to look back (default 1, max 720).
limitNoMaximum lines (default 100).
searchNoOnly lines containing this text (case-insensitive).
sourceNoWhich log to read (default console).console
revisionNoOnly this revision name.
resourceIdYesResource ID of a Microsoft.App/containerApps app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered and the bar is lower. The description adds value beyond annotations by explaining source semantics, the workspace location, and the 'oldest first' ordering. It does not contradict the read-only annotation; 'Reads' is consistent with readOnlyHint=true.

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?

Three dense sentences with zero filler: purpose and workspace first, then source semantics, then filtering and ordering. The most decision-critical info (what the tool reads) is front-loaded and every sentence earns its place.

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 6-param read-only tool with 100% schema coverage and no output schema, the description covers the key agent decision points: what it reads, which source to choose, how to filter, and result ordering. Minor gap: it doesn't describe the return format, but for a log reader that is self-evident and acceptable absent an output schema.

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 the baseline is 3. The description goes beyond the schema by defining what the source enum values mean concretely ('console' = stdout/stderr; 'system' = revision provisioning, image pulls, probe failures, crashes, scaling) and by mapping 'Filter by revision or by text' to the revision/search parameters. This adds real meaning the schema lacks.

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 ('Reads recent Container App logs') plus the backing store (Log Analytics workspace). It distinguishes itself from log siblings (azure_aks_pod_logs, azure_appservice_logs, azure_logs_query) by defining the two log sources and their content, so an agent can tell what this tool uniquely provides.

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?

The description gives clear internal guidance on when to pick 'console' vs 'system' by enumerating what each contains, and explains filtering by revision/text. However, it never names or routes to alternative tools such as azure_aks_pod_logs or azure_appservice_logs, so when-not-to-use-this guidance is left to inference rather than stated explicitly.

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