Skip to main content
Glama

get_console_logs

Read-onlyIdempotent

Fetch Unity Editor console logs with pagination, filter by type (info, warning, error), and control stack trace to minimize token usage.

Instructions

Retrieves logs from the Unity console with pagination support to avoid token limits

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of logs to return (defaults to 50, max 500 to avoid token limits)
offsetNoStarting index for pagination (0-based, defaults to 0)
logTypeNoThe type of logs to retrieve (info, warning, error) - defaults to all logs if not specified
includeStackTraceNoWhether to include stack trace in logs. Set to false to save 80-90% tokens. Default: true

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
logsNoConsole log entries
limitNoPagination limit used
totalNoTotal number of matching logs available
offsetNoPagination offset used
messageNoHuman-readable summary or error
successNoWhether the logs were retrieved
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds context about pagination preventing token limits, which is useful but does not contradict annotations. Lacks disclosure of any additional behavior such as rate limits or return format, but output schema covers return structure.

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?

The description is a single, front-loaded sentence with no unnecessary words. Every element serves a purpose: states the action, resource, and key feature (pagination for token limits).

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?

Given the presence of a comprehensive input schema (100% coverage) and an output schema, the description adequately summarizes the tool's core purpose. It does not need to explain return values due to the output schema. Slightly missing mention of optional filtering by log type, but this is evident from the schema.

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 baseline is 3. The description only reiterates the token-saving aspect already detailed in parameter descriptions (e.g., limit, includeStackTrace). It adds no new semantic meaning beyond what the schema provides.

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 clearly states the tool retrieves logs from the Unity console with pagination support. It effectively distinguishes from siblings like 'send_console_log' (sending) and 'watch_console' (real-time monitoring) by focusing on retrieval and pagination, though it doesn't explicitly contrast with alternatives.

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?

The description implies usage when logs are needed and token limits are a concern, but provides no explicit guidance on when not to use this tool or alternatives. No prerequisites or context for selection among siblings like 'watch_console' for real-time logs.

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

Install Server

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/joel-wehr/unity-mcp'

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