Skip to main content
Glama

Read app logs

get_app_logs
Read-onlyIdempotent

Read recent log lines from the live version of a function app. An app that serves files has no process and answers that it has no logs. Function logs are not captured yet either, and the answer says so: until they are, have the function catch its own errors and return them in the response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many rows to return. Defaults to 50.
sinceNoRFC 3339 timestamp to read from.
app_idYesThe app id, as returned by search_apps or create_app. Starts with app_.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"The next_since cursor from a previous answer, such as c:412, or an RFC 3339 timestamp. A bare number is neither and is refused."New value: +"RFC 3339 timestamp to read from."
  2. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"RFC 3339 timestamp to read from."New value: +"The next_since cursor from a previous answer, such as c:412, or an RFC 3339 timestamp. A bare number is neither and is refused."
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds valuable behavioral context: unexpected responses for file-serving apps and function apps, plus a recommended fallback behavior, which goes beyond what annotations state.

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?

The description is compact and front-loaded: the first sentence states the core action clearly, and the next two sentences add necessary caveats and a workaround. Every sentence carries useful information without redundancy.

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 read-only log tool with no output schema, the description covers the main operation, edge cases, and fallback guidance. It omits details about the exact return shape, but that is less critical given the annotations and the clarity of the core use case.

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?

The input schema covers 100% of parameters with clear descriptions, including defaults and constraints. The tool description does not add significant parameter-level meaning beyond the schema, so the baseline score of 3 is appropriate.

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 states a specific verb and resource: 'Read recent log lines from the live version of a function app.' This clearly differentiates it from sibling tools like read_app_file or read_app_version, which handle files or version metadata rather than logs.

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?

The description provides practical guidance about when logs will or will not be available: apps serving files have no process, and function logs are not captured yet. It also gives an actionable workaround (have the function catch its own errors), though it does not name alternative tools because none exist for logs.

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.