Skip to main content
Glama

gh_apply

Builds a wise.ghjson definition on the canvas atomically, resolving every component and wire before adding anything and reporting all errors in one undoable solve.

Instructions

Build a wise.ghjson definition on the canvas atomically: every component and wire is resolved first, nothing is added if anything fails, all errors are reported, one undo step, one solve. Returns refs (definition id -> instance GUID).

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": {
      "path": "<path>"
    },
    "name": "gh_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
solveNo
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior4/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 does substantial work: it discloses transactional resolution of every component and wire, rollback on any failure, full error reporting, a single undo step, and a single solve. It does not say how it interacts with existing canvas content or how auth/permissions factor in.

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?

A single front-loaded sentence that packs the atomicity guarantee first, then side effects, then return value. Slightly dense jargon ('wise.ghjson') but no wasted clauses.

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?

The return shape (definition id to instance GUID) is described even without an output schema, which is helpful. However, gaps remain for a mutation tool with no annotations: whether apply merges into or replaces existing canvas content, and the meaning/limits of timeout, are unaddressed.

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 coverage is 0%, so the description should compensate; 'one solve' hints at the purpose of the solve flag, but path and timeout are never explained in the description. Only partial compensation for three undocumented parameters.

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?

Names a specific verb and resource: builds a wise.ghjson definition on the canvas, with the distinguishing property 'atomically' spelled out. It does not explicitly contrast with siblings such as ghjson_validate or gh_new_document, so an agent gets the purpose but no direct sibling routing.

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 implied by the atomic-build semantics (use when you want all-or-nothing application of a ghjson definition), but there is no explicit when-to-use/when-not statement and no named alternative for non-atomic or validation-only flows.

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