Skip to main content
Glama

ensure_path

Verify a nested wiki path exists before writing, creating any missing parent nodes and the final node with a given title and kind.

Instructions

Ensure a nested page path exists.

Args: path: Slash-separated path to ensure. title: Title for the final node. kind: Kind for the final node, either page or section.

Returns: JSON-compatible final page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNopage
pathYes
titleYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but only says 'ensure ... exists' — it does not state whether missing intermediate path segments are created, whether existing nodes are left untouched, whether an existing page with a different title is overwritten, or what permissions are needed. For a mutation tool this is a substantial gap, though 'ensure' weakly implies idempotency.

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 one-line summary is front-loaded and the Args/Returns blocks are compact and scannable. Slightly more could have been said about behavior, but nothing is wasted.

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

Completeness2/5

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

An output schema exists, so the return-value note is redundant rather than missing, but for a page-creating tool with zero annotation coverage the description omits idempotency and side-effect details that an agent needs before invoking it. The inclusion of 'Returns: JSON-compatible final page' is thin and does not compensate.

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 description coverage is 0%, so the description must compensate, and it largely does: path is documented as slash-separated, title as the title for the final node, and kind as page or section for the final node. It adds real meaning beyond the bare enum/default, though it does not say how intermediate nodes are titled.

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?

The description names a specific verb+resource: ensuring a nested page path exists, and clarifies that path is slash-separated with a final node of a given kind. It is clear what the tool does, but it never distinguishes itself from siblings such as lookup_path or add_page, so an agent has no anchor for choosing between them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives like lookup_path (for checking existence) or add_page/edit_page. The reader must infer the use case entirely from the name.

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