Skip to main content
Glama

Get log

get_log
Read-onlyIdempotent

Return lines of a log file of the NET Genium instance as JSON — the size of the file, the time of the last change (time of the operating system of the server), the number of lines and the selected lines in content. Without from_line the last lines of the file are returned; with from_line the lines starting at that line number, so a large log can be read page by page (next_line tells where the next page starts) and the surroundings of a line found with contains can be read. With contains only the lines containing the text are returned, each prefixed with its line number and a tab. At most 5000 lines and 200000 characters are returned at once; truncated tells that some of the selected lines were left out. With download 'true' a ZIP archive is returned instead, as an embedded MCP resource (base64 blob) after a text block with the same counts: without lines, from_line and contains it holds the whole file, otherwise the selected lines (lines then defaults to all of them and may be up to 1000000). A ZIP archive larger than 10 MB is refused; narrow the selection then. Find the name of the file with list_logs.

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

Input Schema

NameRequiredDescriptionDefault
nameYesFile name as returned by list_logs, including the subdirectory, e.g. System-2026-11.log or administrator/global.log.
linesNoOptional number of returned lines, 1 to 5000 (with download up to 1000000). Counted from the end of the file, or from from_line onwards when it is given. Defaults to 200; with download to all the selected lines.
containsNoOptional text; only the lines containing it are returned, regardless of letter case.
downloadNoOptional: 'true' returns a ZIP archive with the whole file, or with the lines selected by lines, from_line and contains.
from_lineNoOptional number of the first line to return, starting at 1 — e.g. next_line of the previous answer, or a line number returned with contains minus a few lines to read its surroundings. Omit to read the end of the file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial behavior: a 5000-line and 200000-character cap, the truncated flag, a 10 MB ZIP ceiling, and that download returns an embedded MCP resource as a base64 blob rather than text. It only stops short of describing error conditions for an unreadable file.

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?

One dense paragraph, front-loaded on the return shape before mechanics, with no filler sentences. It is long and slightly run-on, with the download clause stacking several conditions, but every clause carries operational information an agent needs.

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

Completeness5/5

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

For a 5-parameter read tool with no output schema, the description compensates by explaining the response envelope (file size, last-change time, line count, next_line, truncated) and the alternate ZIP resource form. Nothing an agent needs in order to call it correctly or interpret the result is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes further by tying parameters together: lines defaults to 200, rises to all selected lines with download (up to 1000000), from_line pairs with next_line, and contains returns lines prefixed with a line number and tab. That is meaning beyond the per-field schema text.

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?

Opens with a specific verb and resource ("Return lines of a log file of the NET Genium instance as JSON") and enumerates the returned fields. It also names the routing sibling explicitly ("Find the name of the file with list_logs"), so an agent can distinguish get_log from list_logs without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit conditional guidance: without from_line you get the tail, with from_line you page through, with contains you filter and get surroundings, with download you get a ZIP. It states when to use each mode and points at next_line for continuation and list_logs for the prerequisite file 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.

Resources