Skip to main content
Glama

Read recent console output

read_console
Read-onlyIdempotent

Fetch recent FiveM server or client console output without running commands, filtered by channel, pattern, or substring; supports client-side sequence paging.

Instructions

Return recent console lines without running anything. For 'client', reads the devcon line buffer (live from the moment this server first connected; supports afterSeq paging). For 'server', tails FIVEM_SERVER_LOG (FXServer's redirected stdout) — the last 512 KB, filtered; afterSeq is not supported there.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax lines (default 100)
targetYes'server' = the FXServer console (UDP RCON; needs rcon_password). 'client' = the F8 console of a running FiveM Legacy client (devcon 29200/29300) — LOCAL console commands only (connect, quit, tooling); RegisterCommand chat commands are not console commands.
channelNoExact channel name, e.g. 'breeze-chat' or 'script:breeze-chat'
patternNoJS regex matched against '<channel>: <message>'
afterSeqNoclient only: lines after this sequence number (response carries nextSeq)
containsNoCase-insensitive substring of the message

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesYes
matchedYes
nextSeqYesPass as afterSeq next time (client); -1 for server
clientErrorNoWhy the client console is not live (lines may be stale)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds genuinely useful behavior the annotations cannot convey: the client buffer starts at first server connection, server output is a filtered tail of the last 512 KB, and afterSeq paging only works on the client. These data-freshness and paging constraints are exactly the non-obvious traits an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core guarantee ('without running anything') before splitting into the two target cases. Dense but every clause (buffer origin, 512 KB tail, filtering, afterSeq support) carries behavioral weight rather than padding.

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?

With an output schema present, return formatting needn't be explained, and all six params are schema-documented. The description covers the hard part — per-target data sources and paging limits — though it omits the client-vs-server routing relative to the read_client_log sibling.

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 coverage is 100%, so the schema already documents all six parameters including the 'client only' note on afterSeq. The description reinforces which parameters apply to which target but adds little syntax or format detail beyond that; baseline 3 is appropriate.

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 ('Return recent console lines') and then breaks the behavior down per 'client' and 'server' target, so an agent can tell exactly which backing buffer is read. It does not, however, distinguish itself from the sibling read_client_log, which plausibly overlaps, leaving target selection between the two to inference.

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?

'without running anything' implicitly contrasts this with the command-execution siblings (server_command, client_command), and the requirement of rcon_password for 'server' appears in the schema. But there is no explicit when-to-use/when-not guidance and no named alternative such as read_client_log or wait_for_console.

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