Skip to main content
Glama

get_app_state

Retrieve the running Hillnote app's current UI state—open workspace, open document with unsaved-edit status, and QuickView panel—so edits target the right content.

Instructions

Get what the running Hillnote app is currently showing: the open workspace, the open document (with isDirty — true means the user has unsaved edits in that document. Editing it is still safe — Hillnote merges external edits into the open editor and edits to different parts combine silently — but use targeted insert_content/replace_content on the lines you mean to change, never a whole-document rewrite, and avoid the paragraph the user is typing in), and any QuickView panel document. Requires the Hillnote app to be running; the first UI call asks the user for approval inside the app.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_app_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.6/5.0
Behavior5/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 so well: it discloses the app-running prerequisite, the in-app user approval gate on first UI call, the meaning of isDirty, and the non-obvious merge semantics when editing an open document. These are exactly the behavioral facts an agent could not infer elsewhere.

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?

Front-loaded with the tool's core output, then preconditions and safety notes. The long nested parenthetical about isDirty and editing merges is dense and digressive, but each clause carries real information an agent needs before editing.

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?

For a zero-parameter state-read tool with no output schema and no annotations, the description covers what is returned, the precondition, the approval flow, and the risks around dirty documents. Nothing material is missing for correct invocation.

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?

Zero parameters, so the baseline is 4; the description adds value by explaining a returned field (isDirty) rather than input parameters. No input syntax is needed or missing.

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?

States a specific verb and resource ('Get what the running Hillnote app is currently showing') and enumerates the exact scope: open workspace, open document, QuickView panel document. An agent knows precisely what comes back without opening a schema, and it is clearly distinct from the mutation siblings like insert_content/replace_content.

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?

Gives clear operating context — call before editing, then prefer targeted insert_content/replace_content, never a whole-document rewrite, and avoid the paragraph the user is typing in. It states the precondition that the app must be running and that the first UI call prompts user approval. It stops short of naming an explicit alternative for reading state (e.g., check_preview), so 4 rather than 5.

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