Skip to main content
Glama

tail_logs

Read recent log events, newest last. Narrow results by topic, level, or text to find relevant events, and pass the returned cursor back as 'since' to read only new events.

Instructions

Read recent log events, newest last. ALWAYS narrow with topic and/or level - the firehose can be thousands of events per second. Returns a cursor; pass it back as since to read only what is new since your last call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoMinimum level; ERROR is the usual choice when hunting a bug
limitNoMax events (default 50, cap 200)
sinceNoCursor from a previous call; 0 or omitted starts from the oldest kept
topicNoExact topic (cpp.clock), a prefix ending in a dot (cpp. matches all cpp streams), or * for all
traceNoFollow ONE user action across every stream by its correlation id. This is the best tool for "what happened when X was pressed" - it deliberately ignores topic.
containsNoOnly events whose text contains this (case-insensitive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it signals a read-only operation ('Read'), ordering ('newest last'), a performance hazard (firehose), and a stateful cursor contract (pass `since` back). It does not contradict any annotation and adds behavioral context beyond the bare schema.

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 sentences: purpose, one crucial usage warning, and the cursor handshake. All content is load-bearing and front-loaded; no filler.

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-parameter tool with no output schema and no annotations, the description covers the main risks (volume, cursor) and purpose. It could optionally point to list_streams for topic discovery or describe return shape, but the schema handles parameter details, making this adequate.

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 already documents all six parameters (100% coverage), so the baseline is 3. The description re-explains `since` as a cursor and recommends narrowing by topic/level, but adds little semantic detail beyond what the schema contains, so it stays at baseline.

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 opens with a specific verb and resource ('Read recent log events') and includes a distinctive ordering guarantee ('newest last'). This clearly identifies a tailing operation and separates it from search_logs and search_history by focusing on 'recent' events, though it never names a sibling explicitly.

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?

It gives an explicit operational rule ('ALWAYS narrow with topic and/or level') with a rationale (thousands of events per second), and describes a polling pattern with the cursor. However, it does not say when to prefer this over search_logs or other log-related siblings, so alternatives are left implicit.

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