Skip to main content
Glama

get_console_errors

Retrieve captured console errors, warnings, and logs with stack traces from a TraceBug report; use paging offsets to continue reading results.

Instructions

Get the captured console output (errors, warnings, logs) with stack traces from a TraceBug bug report. Paged: 100 entries per call by default; paging.nextOffset says where to continue.

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

Input Schema

NameRequiredDescriptionDefault
fileYesThe report to read: a path to a TraceBug export file (.html), absolute or relative to the server's base directory — or just the filename, or a fragment of the filename or report title. Get exact paths from list_bug_reports.
limitNoItems per call (default 100, max 500). Long text fields are clipped to 4,000 characters.
offsetNoSkip this many items (default 0). Use the nextOffset a previous call returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.13.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Items per call (default 100, max 500). Long text fields are clipped to 4,000 characters.",
      +  "type": "number"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many items (default 0). Use the nextOffset a previous call returned.",
      +  "type": "number"
      +}
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses that results are paged at 100 entries per call and that paging.nextOffset indicates where to resume. It does not state read-only safety, permission needs, or that output is bounded (clipping is only in the schema), leaving a few 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?

Two sentences, zero filler, with the resource and its contents stated first and the paging behavior immediately after. Every clause earns its place.

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 tool with a fully documented three-parameter schema, this is close to complete: purpose, content type, and pagination are covered. It stops short of explaining what happens at the end of paging or how clipping affects long entries, but those are minor for this complexity level.

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 100%, so the schema already explains file, limit, and offset thoroughly. The description only reinforces the default page size and the nextOffset continuation pattern, adding minor value beyond the structured fields rather than compensating for any gap.

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?

The description names a specific verb and resource: retrieving captured console output (errors, warnings, logs) with stack traces from a TraceBug bug report. That scope implicitly separates it from siblings like get_network_activity and get_audit, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for console-level output and that continuation requires the nextOffset from a prior call. There is no explicit when-to-use versus when-not guidance, and the pointer to list_bug_reports for exact paths lives in the schema rather than the description.

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