Skip to main content
Glama

build_mode

Drives Hillnote’s Build mode by switching between coding and document views, opening projects and files, and typing agent or shell instructions without executing them.

Instructions

Drive Build mode in the running Hillnote app — its coding side, with the workspace's coding projects and a code editor. Actions: enter (switch to Build mode; with project, open that project in the code editor), exit (back to the documents side), open_project, open_file (a file of a project in the code editor, optionally at a line — use it to show the user code you wrote or are talking about), send_to_terminal (type an instruction at the project's coding agent, or a shell command at a prompt in the project folder). send_to_terminal only TYPES: nothing is sent or run until the user presses Enter (with no agent open, the app's "Ask agent" dialog opens holding the request). Views open in the tab already showing them, otherwise in a new tab. Desktop app only; requires it to be running.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "build_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNosend_to_terminal: agent (default) = the project's coding agent; shell = a shell prompt in the project folder
fileNoopen_file: path inside the project (e.g. "src/App.jsx") or an absolute path inside it
lineNoopen_file: 1-based line to show
textNosend_to_terminal: the instruction for the agent, or the shell command
agentNosend_to_terminal: which coding agent (e.g. "claude", "codex"). Default: the one open in the project, else the one used last.
actionYes
projectNoProject name, folder or id. Default: the project open in the code editor. A miss lists the projects.
workspaceNoWorkspace path or name (optional — default: the workspace the app is showing; a different one is switched to first)
focusWindowNoBring the Hillnote window to the front (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so with genuinely non-obvious behavior: send_to_terminal only types and nothing runs until the user presses Enter, the "Ask agent" dialog fallback, tab reuse versus new tab, and the desktop/running-app requirement. The project-miss behavior ("a miss lists the projects") also forecloses a confusing failure mode.

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 definition is front-loaded with the purpose and then a compact action list, with the critical typing-only caveat surfaced prominently rather than buried. It is dense with parenthetical clauses, but nearly every clause conveys a distinct behavioral fact; only minor tightening is possible.

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 nine-parameter, five-action, mutating-adjacent tool with no output schema and no annotations, the description covers all actions, defaults, preconditions, and one failure mode. What remains thin is what the agent gets back from enter/exit and how errors other than a bad project name surface, which is a modest gap for a UI-driving tool.

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

Parameters4/5

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

Schema coverage is already 89%, so the baseline is 3; the description earns above that by explaining cross-parameter semantics the schema cannot, such as enter + project opening that project in the editor and open_file optionally landing on a line. Defaults and fallback chains are spelled out inline rather than left to field descriptions alone.

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 opens with a specific verb and resource ("Drive Build mode in the running Hillnote app") and immediately distinguishes it from the app's other half ("back to the documents side"), then enumerates all five actions in a single pass. An agent can tell this apart from the document-oriented siblings without opening the schema.

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?

Each action carries an inline condition for use, most notably open_file's "use it to show the user code you wrote or are talking about," which tells the agent both when and why. It also states the platform precondition (desktop only, app must be running). It stops short of naming an alternative tool for cases like checking current mode before acting, so it is not a full when/when-not treatment.

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