Skip to main content
Glama

Get dev server logs

get_dev_logs
Read-only

Read the latest output of a project's dev server (Vite).

Returns build errors (failed imports, syntax and type errors), server errors, and other dev server output. Useful after a code change to confirm that the project still builds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoHow many of the latest lines to return, 1 to 80
project_nameYesName of the project

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The readOnlyHint annotation already signals a safe read operation. The description adds valuable behavioral detail by specifying what the logs contain (build errors, server errors, other output) and that it reads the latest lines, going beyond the bare annotation.

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 three short sentences with no filler. It front-loads the resource, then discusses return content, then the use case. Every sentence contributes to correct invocation.

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 simple read-only tool with two parameters and a documented output schema, the description sufficiently covers the resource, the purpose, the type of returned information, and a typical usage scenario. Missing details like behavior when the dev server is not running are minor given the tool's simplicity.

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%, with both parameters (lines and project_name) already clearly documented in the schema. The description adds little param-specific meaning, but that is acceptable because the schema carries the full semantic burden.

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 uses a specific verb ('Read') and resource ('latest output of a project's dev server'), and further clarifies the content by listing build errors and server errors. This makes it distinguishable from sibling tools like start_dev_server or restart_dev_server, though it does not explicitly name those alternatives.

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 a clear invocation context: 'Useful after a code change to confirm that the project still builds.' This implies when to use the tool relative to development workflows, though it does not explicitly say when not to use it or mention alternative tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources