Skip to main content
Glama

console_get_logs

Retrieve console logs, warnings, and uncaught exceptions captured since attachment, including file, line, and stack trace. Use the cursor to fetch only new entries since the last read.

Instructions

Read console output captured since attach: logs, warnings, uncaught exceptions with file, line and stack. Pass cursor=nextCursor from a previous call to get only what is new. Note that Chrome does not replay messages logged before DevCDP attached — reproduce the action or call page_reload to see those.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoEmpty the buffer after reading.
levelNoOnly this level.all
limitNoMaximum entries to return (most recent first in the buffer order).
sinceNoISO timestamp lower bound.
cursorNoReturn only entries with seq greater than this. 0 for everything held.
include_agentNoInclude DevCDP's own diagnostics, normally hidden so they cannot be mistaken for app errors.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses the capture semantics, the Chrome pre-attach limitation, and a workaround. It also implies a non-destructive read operation, though it does not mention that clear=true will empty the buffer or that include_agent hides DevCDP's own diagnostics.

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?

Three sentences with no filler. The core read action, incremental cursor pattern, and key limitation are front-loaded, and every sentence contributes useful operational information.

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 six-parameter tool with no annotations and no output schema, the description gives a solid picture of what is returned, how to page through results, and the major environment constraint. It leaves some output-shape details unspecified, but the essential context for correctly using the tool is present.

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 description coverage is 100%, so the baseline is 3; the description adds real value by explaining the cursor parameter as a nextCursor pattern from a previous call. It does not detail clear/level/limit/since/include_agent, but those parameters are already fully described in the input schema.

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?

The description opens with a specific verb and resource: 'Read console output captured since attach.' It also identifies the contents (logs, warnings, uncaught exceptions with file, line, and stack), which clearly distinguishes it from sibling tools like console_evaluate, console_clear, and network_get_requests.

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

Usage Guidelines4/5

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

The description gives practical usage guidance: pass cursor=nextCursor from a previous call for incremental reads, and note that pre-attach messages won't be replayed unless the action is reproduced or page_reload is called. It does not explicitly name alternative tools or provide when-not-to-use conditions, but the context is clear enough for an agent to select this tool appropriately.

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

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/Dayananda-D/Devcdp'

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