Skip to main content
Glama

Get console & structured logs

get_logs
Read-onlyIdempotent

Retrieve recent console output and Dart developer logs from a running Flutter app to debug errors and trace issues. Filter by source, severity, timestamp, or text.

Instructions

Console output (Stdout/Stderr) and dart:developer logging, most recent first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
sourceNoRestrict to one log source.
sinceMsNoOnly events at/after this epoch-ms timestamp.
containsNoCase-insensitive substring filter.
minSeverityNoMinimum severity to include.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds the useful ordering behavior ('most recent first') and the source scope, but says nothing about the default limit (50), truncation, or whether results are capped/paginated. Adds some value beyond annotations but leaves behavioral gaps.

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?

One tight sentence that front-loads the content sources and ends with the ordering guarantee. Every clause earns its place with no filler.

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

Completeness3/5

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

For a 5-parameter read-only tool with no output schema, the description omits return shape, default limit behavior, and pagination/truncation semantics that an agent needs to call it correctly. The annotations cover safety, but the operational gaps remain, leaving it only minimally adequate.

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 description coverage is 80%, so the schema already documents source, sinceMs, contains, and minSeverity. The description's mention of Stdout/Stderr/Logging loosely maps to the source enum but adds no syntax or format detail for limit or the filters. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb+resource ('get_logs') and names the exact content it returns: Console output (Stdout/Stderr) and dart:developer logging. The 'most recent first' clause pins down ordering. It doesn't explicitly contrast with siblings like get_exceptions or get_network, but the log-source enumeration makes the domain clear.

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?

The description gives no when-to-use guidance, no prerequisites, and no alternatives. An agent must infer that this is for raw console/developer output versus get_exceptions for crashes or get_network for traffic. There is no explicit routing signal.

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