Skip to main content
Glama

logs_tail

Read-only

Stream a project's new logs and events by long-polling: the call returns as soon as new rows arrive or waitSec elapses. Pass the returned cursor to the next call to continue. name, user, session and device match exactly.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "logs_tail"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOnly events with this name; "*" for every event (any record with a name)
userNoOnly records sent with this user id
boxIdNoOnly logs sent from this box
cursorNocursor from the previous logs_tail result; omit to start from now
deviceNoOnly records from this device
projectYesProject id (prj_...) or project name
sessionNoOnly records from this session (one app launch or page load)
waitSecNoSeconds to wait for new rows, max 25

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / boxId / description
      Previous value: -"Only logs from this box"New value: +"Only logs sent from this box"
    • changedInput schema / properties / cursor / description
      Previous value: -"From the previous logs_tail; omit to start now"New value: +"cursor from the previous logs_tail result; omit to start from now"
    • addedInput schema / properties / device
      Added value: +{
      +  "description": "Only records from this device",
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Only events with this name; \"*\" for every event (any record with a name)",
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"prj_... or name"New value: +"Project id (prj_...) or project name"
    • addedInput schema / properties / session
      Added value: +{
      +  "description": "Only records from this session (one app launch or page load)",
      +  "type": "string"
      +}
    • addedInput schema / properties / user
      Added value: +{
      +  "description": "Only records sent with this user id",
      +  "type": "string"
      +}
    • addedInput schema / properties / waitSec / default
      Added value: +20
    • changedInput schema / properties / waitSec / description
      Previous value: -"Default 20"New value: +"Seconds to wait for new rows, max 25"
    • changedInput schema / properties / waitSec / type
      Previous value: -"integer"New value: +"number"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive, and closed-world, so safety is covered. Beyond that, the description discloses non-obvious behavior: the call blocks until rows arrive or waitSec elapses, and the returned cursor is what continues the stream. It does not mention rate limits, whether rows can be dropped between calls, or the shape of returned rows.

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 short sentences, each carrying distinct information: mechanism and return timing first, continuation protocol second, match semantics third. No filler and the most decision-relevant fact (long-poll, cursor continuation) is front-loaded.

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 an 8-parameter, read-only long-polling tool with no output schema, the definition covers mechanism, blocking behavior, and stream continuation adequately. The remaining gap is the return payload — the agent learns a cursor comes back but not how rows are packaged — which matters slightly more here given there is no output schema.

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 coverage is 100%, so the schema already documents all eight parameters, and the baseline is 3. The description adds two genuinely non-obvious facts: that the cursor comes from the previous result (continuation semantics) and that name/user/session/device matching is exact rather than substring, which the schema does not state.

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 verb and resource ('Stream a project's new logs and events') and pins the mechanism ('long-polling'), which distinguishes it from a historical search tool. It does not explicitly name the sibling alternatives (logs_search, logs_errors), so differentiation is implied by the word 'new' rather than stated.

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?

The usage model is implied: call repeatedly, passing the cursor forward, to tail new rows. There is no explicit when-to-use/when-not guidance, e.g. that logs_search should be used for historical queries or logs_errors for filtering errors, so the agent must infer the boundary from the tool name.

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.