Skip to main content
Glama

open_in_diogenes

Open a passage, text search, or morphological search result in the running Diogenes app by building its screen URL, or return the URL without launching a browser.

Instructions

Build a URL for a screen of the user's running Diogenes app (served on localhost) and open it (in a cmux browser pane when cmux is running, otherwise the default browser): a passage in context, the results of a text search, or the results of a morphological search. Searches can be scoped only to the whole TLG or a saved corpus (use save_corpus first for an ad-hoc scope). Set open=false to just get the URL (e.g. to load it in a specific browser pane).

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

Input Schema

NameRequiredDescriptionDefault
refNopassage: a hit ref such as 'tlg,0557,002:47:1:3'.
kindYes
openNoOpen the URL in the browser (default true).
workNopassage: work number.
queryNosearch: the pattern. morph_search: the lemma.
authorNopassage: author number (alternative to ref).
corpusNosearch/morph_search: saved corpus name; default whole TLG.
locationNopassage: citation, highest level first.
lemma_betaNomorph_search: pick one lemma if ambiguous.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses the side effect (opens a browser), the environment-dependent routing (cmux pane when cmux is running, otherwise default browser), and a way to suppress the side effect via open=false. It omits failure behavior, e.g. what happens if the Diogenes app is not running or the URL cannot be built.

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?

Single front-loaded sentence establishes the action, the environment (localhost), and the three modes, followed by two sentences of constraint and option detail. Dense but every clause carries information; heavy parenthetical nesting slightly hurts scanability.

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

Completeness4/5

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

For a 9-parameter tool with no output schema and no annotations, the description covers purpose, mode selection, the one hard scoping constraint, and side-effect control. The main gaps are what the tool yields when open=false (presumably a URL string) and error conditions when the local app is unavailable.

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 89%, so the baseline is 3; the description goes beyond it by mapping parameters to modes and adding a cross-parameter constraint (corpus scope limited to whole TLG or a saved corpus, requiring save_corpus first) plus the open=false return-URL mode. Much of the per-kind parameter labeling is already in the schema, so the added value is real but incremental.

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 specific compound action (build a URL for a Diogenes app screen and open it) and enumerates the three screen kinds it supports: passage in context, text search results, morph search results. It is clearly distinct from data-returning siblings like search or read_passage, though it never explicitly names a contrast sibling, keeping it just short of a 5.

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?

It gives concrete selection guidance: use save_corpus first for an ad-hoc scope because searches can only be scoped to the whole TLG or a saved corpus, and set open=false when you want the URL only (e.g. for a specific browser pane). It does not say when to prefer search/read_passage over this tool, so the when-not side is absent.

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