Skip to main content
Glama

next_path

Determines the right folder and next version for new edit, thumbnail, or library files before saving, and returns the user's rules for edit and thumbnail steps.

Instructions

The path for a new file: the right folder and the next version. kind=edit: /edits/-vN.mp4. kind=thumbnail: /thumbnails/-vN.png (the edit's name, plus an option word for several). kind=library: /assets//-vN.. Call it before you write any of these. For edit and thumbnail it also gives the user's rules for that step once per chat: follow them.

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": {
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "next_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
extNoFile extension. Default .mp4 for edit, .png for thumbnail; required for library.
kindYesedit, thumbnail or library.
nameYesShort name, e.g. 'webmcp-short' or 'logo-mark'. A -vN suffix is ignored.
groupNokind=library: Logos, Icons, Images, Motion, or another one-word group.
libraryNoA library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments).
sessionNoSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2026.11.11
    • changedInput schema / properties / library / description
      Previous value: -"A library: 'style:<Name>' for one of the user's styles (e.g. 'style:Magazine'; a new name makes a new style), a project name for that project's own additions, or 'comments' for the comment copilot's files (lessons, target list, style guide)."New value: +"A library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments)."
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Beyond the annotations, the description discloses that a -vN suffix is ignored when computing the next version and that user rules are returned once per chat, which is genuinely useful stateful behavior. However, annotations declare readOnlyHint=false, implying some side effect, and the description never says what that is (does it reserve a version? create a folder?). That gap is the main shortfall.

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 core statement and then organized by kind, with no filler sentences. The telegraphic 'kind=edit:' phrasing is compressed but parseable, and the closing directive is appropriately last.

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 6-parameter, 3-mode path resolver with no output schema, it covers the path formats, the call-order requirement, and the rules side effect well. It is incomplete about the non-read-only nature of the call and about how library/session/group combine into the resulting path for kind=library.

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 100%, so the schema already documents kind, name, ext, group, library and session — the baseline is 3. The description adds real value by mapping each kind value to a concrete output path template, but it is silent on group, library and session semantics, leaving that entirely to the schema.

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 states a concrete verb+resource: it resolves the path for a new file, giving the folder and the next version, and it enumerates the three kind-specific path shapes. An agent immediately knows it is a path/version resolver rather than a writer. It doesn't name sibling tools, so differentiation relies on the reader inferring it from the purpose.

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?

'Call it before you write any of these' is an explicit ordering directive, and 'For edit and thumbnail it also gives the user's rules for that step once per chat: follow them' tells the agent what to do with the extra payload. There are no named alternatives or when-not conditions, so it stops short of a 5.

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