Skip to main content
Glama

get_mcp_logs

Retrieve recent MCP server logs to inspect errors and activity; specify how many lines to return for troubleshooting or monitoring.

Instructions

Fetch MCP server logs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_mcp_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and delivers almost nothing: it does not state that the operation is read-only, whether output is truncated, whether logs are live-tailed or a static snapshot, what the source/freshness is, or whether access is privileged. "Fetch" weakly implies a read, but that is inference, not disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no wasted words, but here brevity comes at the cost of substance — there is no second sentence of scope or behavior that the tool plainly needs. Appropriately sized only if judged as a fragment of a larger definition.

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?

The tool is simple (one optional parameter, output schema present so return values need no prose), yet the description still omits the basics an agent needs: what gets logged, how `lines` behaves, and whether the call is a safe read. For a diagnostics tool with zero annotation and zero schema-description coverage, the one-sentence description leaves it under-specified.

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% and the single parameter `lines` (default 50) is never explained in the description — it is not stated whether it caps returned entries, is a page size, or what the maximum is. The description mentions "logs" generically, adding essentially no meaning beyond the schema's property names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/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 ("Fetch MCP server logs"), which is more than a tautology, but it gives no scope detail such as which logs (server-side vs. tool-call logs, current session vs. historical). It also does nothing to separate this tool from log-adjacent siblings like get_task_log, which the agent must distinguish by name alone.

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 when-to-use guidance, no exclusion, and no mention of any alternative such as get_task_log for task-scoped output. The agent must infer from the tool name alone that this is the server's own log stream rather than per-task logs.

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