Skip to main content
Glama

lgh_serve_start

Idempotent

Start the local HTTP Git server in the background so repos can be pushed and cloned. Returns startup output or errors if the port is already taken.

Instructions

Start the LGH HTTP server in the background by spawning "lgh serve --daemon" from the current binary. The server hosts the git endpoints that repos push to, so start it before lgh_up or before cloning from LGH. Returns the daemon's startup output, or an error with that output if the server cannot start (for example the port is already taken). Check lgh_status afterwards to confirm the PID and listen address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoPort to listen on (default: 9418)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

The description transparently communicates that it spawns a background daemon, returns startup output or an error (e.g., port already taken), and implies a persistent side effect. This matches the annotations (readOnlyHint=false, destructiveHint=false) and provides sufficient detail for expected behavior.

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 tight and well-structured, using two sentences to convey the core action, its context, and expected outputs. No redundant or vague wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

It includes when to use the tool, what to expect (startup output or error), and how to verify success (lgh_status). The absence of an output schema is acceptable given the clear narrative of returned information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter, port, is fully described with its default value and purpose. Schema coverage is 100%, and the description adds the default context, so no ambiguity remains.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (start), the resource (LGH HTTP server), and its purpose (hosts git endpoints). It distinguishes from siblings like lgh_serve_stop and lgh_status by focusing on the startup action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use this tool ('before lgh_up or before cloning from LGH') and advises checking lgh_status afterwards to confirm the PID and listen address, providing clear operational context.

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

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/JoeGlenn1213/lgh'

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