Skip to main content
Glama

read_logs

Fetch recent Gadget app logs via the ggt CLI to debug errors, failed actions, or webhooks; filter by time, level, text, or app-only logs.

Instructions

Read recent logs from the Gadget app (via the ggt CLI) to debug errors, failed actions or webhooks. Defaults to the last 15 minutes at info level. Needs a one-time npx ggt login on this machine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoMinimum level (default info); use "error" to find failures
limitNoMax log lines to return, newest last (default 100, max 500)
sinceNoHow far back: "15m", "2h", "1d", or an ISO timestamp (default 15m)
searchNoOnly return log lines containing this text (case-insensitive), e.g. a record ID or action name
my_logsNoOnly logs from the app's own code, hiding platform logs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does meaningful work: it discloses the CLI dependency, a mandatory one-time `npx ggt login` precondition on the machine, and the default window/level. It does not describe output shape, truncation, or failure modes, but the auth prerequisite and defaults are the operationally important facts an agent needs.

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?

Two sentences, front-loaded with what the tool does and its scope, followed by the operational prerequisite. No filler; every 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?

For a parameterless-to-invoke read tool with full schema coverage and a stated auth precondition, the description covers what an agent needs to decide and execute. The one gap is that no output schema exists, so a hint about the returned line format would have added value.

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% and every parameter already has an enum or a detailed description with units/defaults/max ('default 100, max 500', '"15m", "2h", "1d", or an ISO timestamp'). The description only restates the level and window defaults, adding no syntax or semantics beyond the schema, so baseline 3 applies.

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 ('Read recent logs from the Gadget app'), names the underlying mechanism ('via the ggt CLI'), and gives the intent ('to debug errors, failed actions or webhooks'). This distinguishes it clearly from the record/model/GraphQL siblings in the toolset.

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 supplies a clear context of use (debugging errors, failed actions, webhooks) and the schema reinforces it with 'use "error" to find failures'. It stops short of naming when-not-to-use this tool or pointing to an alternative sibling, so it is clear context rather than explicit routing.

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