Skip to main content
Glama

Read page errors

get_logs

Retrieve console errors, JS exceptions, and HTTP failures produced by a Twine game session to diagnose playtesting issues; clear the buffer after reading when needed.

Instructions

JS exceptions, console errors and HTTP failures this page produced. For what the agent did, use engine(include:"actions").

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_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOnly "console" exists now.
clearNoEmpty the buffer after returning what was in it (default false).
game_idNoSession id from open_game. Omit when a single game is open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden; it does disclose the categories of data returned (exceptions, console errors, HTTP failures), which is real added value. It omits whether the call is non-destructive, whether the log buffer accumulates or resets (the clear parameter implies a persistent buffer, but the description never says so), and whether errors survive navigations or are scoped to the current page or session.

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 short sentences, with the resource definition front-loaded and the disambiguation sentence second. Nothing is redundant and the alternative is given with the exact call signature, so every clause earns its place.

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 tool with no annotations, no output schema, and only three all-optional parameters, the description covers what is returned categorically but not its shape (fields per entry, ordering, timestamps, volume). Since there is no output schema, the description is the only place the return structure could be conveyed, and that gap is a genuine if modest omission.

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 kind, clear, and game_id are already fully documented in the schema, including the enum note and the open_game provenance for game_id. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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?

Names the specific resource contents: JS exceptions, console errors and HTTP failures produced by the page. It is clearly a read of page-level error logs and is distinguishable from the sibling engine tool, though the description never uses an explicit verb like 'return' or 'read' and the generic name get_logs is only partially reconciled with the 'page errors' framing.

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?

Explicitly routes the agent away from this tool when it wants the agent's own recorded actions, naming engine(include:"actions") as the alternative and the condition that selects it. It does not, however, say when this tool is preferable over observe, snapshot, or session, nor does it state any prerequisite such as needing an open game.

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