Skip to main content
Glama

tail_logs

Retrieve recent log entries to inspect tool invocations, pack assemblies, and governance actions. Use this to monitor activity and tune focus and governance behavior.

Instructions

Return the most recent lines from the persistent usage/debug log.

The log at ~/.contextforge/logs/contextforge.log (rotating) captures tool invocations, pack assemblies (with dropped counts, sizes, timings), entity creates, links, governance attachments, resolves, suggestions, context writes, and workspace binds. This is the primary signal for understanding real usage and tuning focus/governance behavior.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNonumber of lines to return (default 50).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations were provided, so the description carries the full burden. It discloses the log location (~/.contextforge/logs/contextforge.log), that it's rotating, and enumerates the log content types. However, it doesn't mention that this is a read-only/non-destructive operation explicitly, nor does it describe the output format or what a tail operation entails beyond returning lines. Decent coverage but could add that it's a safe read in a persistent location.

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?

The description is two paragraphs, front-loaded with the core action in the first sentence, then enriched with valuable context about log location, rotating nature, and content types. Every sentence adds value — the log path is actionable, the rotating note explains why the tail is bounded, and the content enumeration tells the agent what signals it can extract. No filler or redundancy.

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 simple read operation with one well-documented parameter and an output schema present, the description is quite complete. It covers the log location, rotation behavior, content types, and the diagnostic purpose. The only gap is not stating the return format explicitly, but the presence of an output schema helps offset that. This is a strong, self-sufficient description for a tool of this complexity.

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%, and the single parameter (n, default 50) is well-documented in the schema itself with 'number of lines to return (default 50).' The description doesn't add much beyond what the schema already states about the parameter, so baseline 3 is appropriate. No parameter-specific enrichment in the description is needed given full schema coverage.

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?

The description clearly states the verb (tail/return most recent lines) and the resource (persistent usage/debug log), and even details what log entries capture (tool invocations, pack assemblies, etc.). It also explains WHY the log matters (primary signal for tuning focus/governance behavior), which distinguishes it from the write-oriented sibling tools like append_context or upsert_context.

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 explains that this is the primary diagnostic signal for understanding real usage and tuning focus/governance behavior, giving clear context for when to use it. It doesn't explicitly name alternatives to exclude, but the purpose is distinct enough among siblings (most siblings are write operations, search, or entity management, whereas this is a read/diagnostic tool). Missing an explicit 'use X instead when...' but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/srmackey/context-forge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server