Skip to main content
Glama

Read a lambda's logs

read_logs
Read-onlyIdempotent

What a deployed lambda has been doing: its recent requests and how they were answered, what it printed, the errors it threw with their stack traces, and how much traffic it has had in the last hour and day. With feature, what that feature's preview has been doing instead, kept apart from the lambda's visitors. Call it after deploying to see that it works, and first when something is reported broken.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoThe lowest level worth reading: 'info' for everything, 'warn' for problems, 'error' for failures. Left out, 'info'.
limitNoAt most this many lines, the newest. Left out, 100.
sinceNoThe cursor a previous call answered with, to read only what is new since then.
featureNoRead what this feature's preview did instead.
privateKeyYesThe editor key, or the key of a demo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / feature
      Added value: +{
      +  "description": "Read what this feature's preview did instead.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds real context beyond them: it explains the scope of returned data and that feature preview output is kept separate from the lambda's visitors, which is a non-obvious behavioral detail.

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?

Two sentences, front-loaded with the payload description before the usage cues, and no filler. The phrasing is somewhat wordy ('what a deployed lambda has been doing') but each clause carries information.

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 does the work of explaining what comes back (requests, prints, errors, traffic), and it covers the feature-preview mode. Only minor gaps remain, such as pagination/cursor behavior, which the schema partially handles.

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 level, limit, since, and feature are already documented in the schema; baseline is 3. The description adds the semantic point that feature output is 'kept apart from the lambda's visitors,' which slightly clarifies the feature parameter, but no extra syntax or default detail is supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource and enumerates what the logs contain: requests and responses, prints, errors with stack traces, and traffic volume. An agent can tell this is a log-reading tool rather than a metadata reader, though it never names the nearest sibling (read_lambda) to sharpen the distinction.

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?

Gives concrete triggers: 'Call it after deploying to see that it works, and first when something is reported broken.' That is clear when-to-use guidance, but there is no explicit when-not or named alternative (e.g., read_lambda for status/health).

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.