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. 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.
privateKeyYesThe editor key, or the key of a demo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description goes beyond that by disclosing the actual content categories returned (requests, prints, errors with stack traces, traffic over hour/day), which is meaningful behavioral context for a read tool with no output schema.

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 what the tool surfaces before moving to when to call it. The long first sentence is dense but every clause earns its place by enumerating distinct log content. Minor cost is the slight run-on quality of the content list.

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 job of describing what comes back, and it does so well via the content enumeration. Combined with a fully documented input schema and clear safety annotations, an agent has enough to call this correctly; only the sibling-relationship gap keeps it from a 5.

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% — level, limit, since, and privateKey all carry their own descriptions including defaults and cursor semantics. The description adds nothing about parameters, so the baseline 3 applies; the schema does all the work here.

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?

The description names a specific resource (a deployed lambda's logs) and enumerates exactly what is read: recent requests and their responses, printed output, thrown errors with stack traces, and traffic volumes. It is clear what the tool does, though it never names or contrasts with the sibling read_lambda, which an agent may reasonably confuse it with.

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?

It gives clear when-to-use framing: 'Call it after deploying to see that it works, and first when something is reported broken.' That is a concrete deployment/incident context, but no alternative tool is named for adjacent needs (e.g. read_lambda for configuration), so the routing is implied rather than explicit.

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.