Skip to main content
Glama

tail

Read the latest log lines for a Codex Worker job by job ID, optionally limiting output to a set number of lines.

Instructions

Read the latest job log lines

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": {
      "job_id": "<job_id>"
    },
    "name": "tail"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only operation but says nothing about whether the job must be running or completed, whether the call blocks or streams, what happens for an unknown job_id, or how many lines are returned by default — all material for a log-tail tool.

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?

A single short sentence with the key concept front-loaded and zero wasted wording. Its brevity is appropriate in form, though it is thin on substance rather than padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no annotations and no output schema, the description is still missing essentials: the default line count, behavior on invalid or missing jobs, and the shape of what comes back. It is a starting label rather than a complete operating definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so both parameters are undocumented in structured form. The description only hints at the concept of "lines" and says nothing about job_id being the required identifier or about the default, maximum, or units of the lines parameter.

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 pairs a specific verb ("Read") with a specific resource ("job log lines") and adds a scope qualifier ("latest"), so an agent can tell it retrieves recent log output. It does not, however, differentiate itself from plausible siblings such as get or history, leaving the agent to guess how it differs from a general read or historical log tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no when-not-to-use condition, and no named alternative. At best the word "latest" implies this is for inspecting recent output, but the agent gets no instruction on when to choose this over get or history.

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