Skip to main content
Glama

happy_start_session

Start a new AI coding session on a specified machine with optional Git worktree isolation and environment configuration for development tasks.

Instructions

Start a new Happy AI session on a machine. Use happy_list_machines to find available machines first. Use happy_list_environment_sets to see available environment presets. Optionally create a Git worktree for isolated development.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
machine_idYesThe machine ID to start the session on
directoryYesThe directory path to run the session in (base repository path if using worktree)
messageNoOptional initial message to send to start the session working
agentNoAgent type to use (default: claude)
waitNoIf true, wait for AI to finish processing initial message before returning (default: false)
environment_preset_idNoOptional ID of an environment preset to use (from happy_list_environment_sets). Preset variables are applied first, then custom variables override them.
environment_variablesNoOptional custom environment variables as key-value pairs. These override any variables from the preset.
worktreeNoOptional Git branch name for creating a worktree. If provided, creates a new branch and worktree at .dev/worktree/<name> and spawns the session there. The directory must be a Git repository.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions optional Git worktree creation for isolated development, which adds useful context beyond the basic action. However, it lacks details on permissions, rate limits, session lifecycle, or error conditions, leaving gaps for a mutation tool.

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?

The description is appropriately sized with three sentences, each earning its place: the core purpose, prerequisite tools, and optional Git worktree feature. It is front-loaded with the main action. Minor improvement could be tighter phrasing, but it avoids waste.

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

Completeness3/5

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

Given the tool's complexity (8 parameters, mutation operation) and no annotations or output schema, the description is moderately complete. It covers purpose, prerequisites, and a key optional feature, but lacks details on behavioral traits like side effects, response format, or error handling, which are important for a session-starting tool.

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 the schema already documents all 8 parameters thoroughly. The description adds minimal parameter semantics beyond the schema, only implying that 'machine_id' and 'environment_preset_id' relate to outputs from sibling tools. Baseline 3 is appropriate as the schema does the heavy lifting.

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 specific action ('Start a new Happy AI session') on a specific resource ('on a machine'), distinguishing it from siblings like happy_list_sessions (list) or happy_send_message (interact). It explicitly mentions the verb 'start' and the resource 'session', avoiding tautology with the tool name.

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?

The description provides explicit guidance on when to use this tool versus alternatives: it instructs to 'Use happy_list_machines to find available machines first' and 'Use happy_list_environment_sets to see available environment presets', naming specific sibling tools for prerequisite steps. This clearly defines the context and alternatives.

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/zhigang1992/happy-server-mcp'

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