Skip to main content
Glama

Servir o site localmente

servir_site

Serve a project folder or transformed copy locally on its own port with no cache and video support, returning the URL and test shortcuts for solo, mute, debug, and reduced modes.

Instructions

Sobe um servidor local para a pasta do projeto (ou da cópia transformada) na porta própria do projeto, sem cache e com suporte a vídeo. O servidor vive enquanto o MCP estiver aberto; para abrir fora dele use abrir-site.bat/.command. Devolve a URL e os atalhos de teste (?solo=capitulo:0.5, ?mute=1, ?debug=1, ?reduced).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portaNo
projetoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses no-cache behavior, video support, session-bound lifetime, and the return shape (URL plus test shortcuts). It omits failure modes such as what happens if the port is already occupied or if a server is already running.

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?

Three dense sentences, front-loaded with the action and followed by lifetime and return details; each sentence carries information. The parenthetical shortcut list is useful but makes the paragraph slightly heavy.

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?

No output schema exists, and the description compensates by naming the return value (URL + test URLs). With no annotations, behavior is covered adequately for a server-start tool; the residual gap is the undocumented 'porta' parameter.

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 0%, so the description must explain both parameters. It partially defines 'projeto' (project folder or transformed copy) but says nothing about the 'porta' parameter — the mention of the 'project's own port' is about the default, not about how the override argument behaves.

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 concrete verb+resource: it starts a local server for the project folder (or the transformed copy), with specific traits (project port, no cache, video support). It is clearly distinguishable from the sibling parar_site, though it never names that counterpart explicitly.

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?

Gives real lifecycle context — the server lives only while the MCP is open, and abrir-site.bat/.command is the alternative for running it outside. However, it never says when to reach for this vs. the verification siblings (verificar_site, capturar_capitulo) that presumably depend on a running server.

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