Skip to main content
Glama

call

Read or modify Persephone's live object model by path to control pages, editors, files, boards, Git, and windows; omit the path to get an overview.

Instructions

Persephone (developer notepad: tabbed pages, editors, scripting) — read or act on its live object model by PATH. Start with no path to see the overview; every result comes with a hint listing what is under it, so you can discover everything from here without any guide.

Examples: (no path) → the overview: every top-level area, what it is for, and an example path path: "pages" → open pages (tabs), each with an index and id path: "page.content" → text of the active page path: "pages[0].content", value: "..." → replace a page's text path: "pages.showPage", args: [""] → activate a page path: "pages[0].editor.rowCount" → rows in a grid page path: "helpSearch", args: ["add rows"] → find where something lives path: "pages[0].$help" → long-form help for a node; safe on ANY path (a plain value returns its value, a method its signature) path: "windows" → all windows; prefix any path with windows[i]. to target one (default: the main window)

path: "main" -> main-process diagnostics and gated scripting path: "main.script.execute" -> settings-gated main-process code execution windows[i].main is invalid: main is process-wide; use root path "main".

Paths use the same names as the scripting API. Put method arguments in args and assignments in value; the path itself takes only short JSON literals like pages[2] or pages["id"]. An unknown member returns the valid member list instead of failing. To CALL a method, pass args — even when it takes none: args: []. A method path with no args only describes the method (writing the parentheses in the path, e.g. "boards.list()", calls it too).

Optional tips may appear as separate non-blocking suggestions; they are not commands.

A kind's member list is sent once per session, so a long session stops repeating it. Calling with NO path RESETS that memory as well as returning the overview — do it whenever you have lost the earlier hints (after a context compaction, for instance) and the member lists will be sent again. <path>.$help gives the same detail for one node at any time.

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

Input Schema

NameRequiredDescriptionDefault
argsNoArguments for the last segment when it is a method (JSON array). Use this for strings with quotes/newlines or any non-trivial value.
pathNoPath into the object model; omit for the overview.
hintsNoauto (default): the member list for each kind of object is sent once per session, live children always; always: repeat member lists; never: no hints.
valueNoAssign this value to the property named by the last segment (e.g. page.content). Mutually exclusive with args.
maxLengthNoBound string or structured results (default 20000); truncated results carry totalLength for strings or shown/total for collections. An image result (e.g. a screenshot) is returned whole.
timeoutMsNoHow long to wait for a call under pages[i].editor.app — a board's or a web page's own model. Raise it for an operation you know is slow (default 30000). It has no effect on any other path.
windowIndexNoTarget window index (from windows). If omitted, uses the first open window. Use windows[i].open() to reopen closed windows first.
allowNavigationNoReturn { navigated: true } if a page-model method call under pages[i].editor.app loses its document during invocation. Applies only to a page-model method call under pages[i].editor.app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.0.23

TDQS

A4.8/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 that member lists are sent once per session, that no-path resets that memory, that unknown members fail-soft by returning valid members, that timeoutMs only affects page-model paths, and that results are truncated with totalLength/shown/total. These are non-obvious behaviors an agent must know to call correctly.

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?

Purpose is front-loaded and the examples table is dense and useful, but the text is long and repeats some points (hints behavior and $help resurfacing in multiple sentences). Nearly every sentence earns its place, though there is modest redundancy between the prose and the schema descriptions.

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 an eight-parameter, unannotated, output-schema-less meta-tool, the description covers mechanics, discovery, reset behavior, and limits. Any agent could call it correctly from this definition alone, including handling truncation and navigation edge cases.

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 coverage is 100%, so the schema already documents all eight parameters; the baseline would be 3. The description adds genuine meaning beyond the schema: that method calls require args even when empty, that value and args are mutually exclusive, that paths accept only short JSON literals, and that $help is safe on any path.

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: 'read or act on its live object model by PATH'. The examples table pins down what each path returns, so an agent knows the tool is a generic path-addressed reader/mutator of Persephone's object model. No siblings exist to differentiate, but the purpose is unambiguous.

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

Usage Guidelines5/5

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

Explicitly says to start with no path for the overview, when to call $help for one node, when to reset memory by calling with no path (after context compaction), and that unknown members return valid member lists. It also states args vs value exclusivity and that args is required even when empty for method calls.

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

Deploy Server

Other Tools