Skip to main content
Glama
weapp-driver-mcp

weapp-driver-mcp

by Gao12123

Read mini program console output

mp_console

Read console messages and uncaught exceptions captured since launch, with incremental since_seq reads, kind filtering, and optional clearing; dropped counts reveal lost entries.

Instructions

Read console messages and uncaught exceptions captured since the session started. Supports incremental reading with since_seq, filtering by kind, and clearing. The buffer is bounded; dropped tells you how many entries were lost before this read. Console capture starts at launch.

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": "mp_console"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoFilter to console messages or uncaught exceptions only.
clearNoDrop buffered entries after reading them.
limitNoMaximum entries to return, newest kept. Defaults to 200.
since_seqNoOnly entries after this sequence number. Pass the next_seq from a previous call to read incrementally.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and discloses key behaviors: the buffer is bounded, dropped reports lost entries, clear drops buffered entries after reading, and capture begins at launch. It does not cover permissions or full return structure, but the main behavioral traits are present.

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?

Four tight sentences front-load the core purpose and then cover incremental reading, filtering, bounded buffering, and capture start. Every sentence contributes useful information without repetition.

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?

There is no output schema and no annotations, so the description should do more to explain return values. It mentions dropped but not the shape of console entries, next_seq, or other response fields needed for reliable incremental reading.

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 all four parameters are already documented. The description reinforces incremental use of since_seq, kind filtering, and clearing, but adds little syntax or meaning beyond what the schema provides, making the baseline 3 appropriate.

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 states a specific verb and resource: 'Read console messages and uncaught exceptions', with scope 'captured since the session started'. This clearly distinguishes it from element-reading siblings like mp_element_read and mp_query.

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?

It mentions incremental reading with since_seq, filtering by kind, and clearing, but gives no explicit when-to-use or when-not-to-use guidance relative to alternatives such as mp_expect or mp_wait. Usage is implied as debugging console output, not stated.

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