Skip to main content
Glama

list_logs

Destructive

Discover all log files available on the server. Returns an array of file entries with paths, sizes, and line counts ordered by path.

Instructions

List all log files the server has been configured to expose. Returns an array of file entries ordered by path.

When to use

Call this first to discover which log files are available before calling read_log, search_log, or log_info. If you do not know the exact path of a log file, always call list_logs first.

Response

Array of objects, each with:

  • path — absolute path on the server

  • size_bytes — file size in bytes

  • last_modified — last-modified timestamp (RFC3339)

  • line_count — total number of lines

  • readable — whether the file is accessible by the server process

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already indicate destructiveHint=true, but description does not elaborate on why it's destructive or any side effects. Response format is useful but not behavioral. Some value added, but no hidden traits disclosed beyond annotations.

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?

Well-structured with clear sections. Every sentence adds value, no fluff. Concise yet informative.

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 simple 0-parameter list tool, description covers purpose, usage guidance, and response format thoroughly. No missing aspects given the tool's complexity.

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?

No parameters, so schema coverage is irrelevant. Baseline 4 applies; description does not need to add param info and doesn't miss anything.

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?

Clearly states 'List all log files the server has been configured to expose' with verb and resource. Distinguishes from sibling tools like read_log and search_log.

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?

Explicitly instructs to call this first before using read_log, search_log, or log_info, and to use it when path is unknown. Provides clear when-to-use guidance.

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/kascada/logmcp'

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