Skip to main content
Glama

gh_new_document

Opens a new empty Grasshopper definition while leaving your existing open definitions untouched.

Instructions

Open a new empty Grasshopper definition (the user's open definitions are left alone).

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": "gh_new_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.3/5.0
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, and it does disclose one meaningful behavior: the user's open definitions are left alone, i.e. this is non-destructive. Beyond that it says nothing about whether the new document becomes the active target for subsequent gh_apply/gh_solve calls, whether it replaces or coexists with the current document, or whether the optional name defaults to something.

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?

A single front-loaded sentence with a parenthetical that earns its place by conveying the non-destructive guarantee. No filler or redundant restatement of the title.

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?

For a simple one-optional-parameter creation tool with no output schema, the description covers purpose and non-destructiveness but omits the meaning of name and the resulting document state. Those omissions are small in scope but relevant to calling the tool correctly in a multi-document session.

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

Parameters2/5

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

There is one optional parameter (name) with 0% schema description coverage, so the description is the only possible source of meaning – and it says nothing about what name does, whether it titles the new document, or what the default naming is when omitted. This is the clearest gap in the definition.

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 specific verb and resource: 'Open a new empty Grasshopper definition.' An agent can immediately tell this creates a fresh document rather than mutating an existing one, which distinguishes it from mutation siblings like gh_apply, gh_bake or gh_set_slider. It stops short of explicitly naming which sibling to use instead for other document operations.

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?

Usage is only implied by the phrase 'new empty definition' – an agent can infer this is the tool for starting fresh work. There is no explicit when-to-use/when-not statement, no mention of prerequisites, and no alternatives named, so routing for edge cases is left to inference.

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