Skip to main content
Glama

get_open_databases

Lists currently open databases in DEVONthink to help users track and manage active database sessions for document organization and access.

Instructions

Get a list of all currently open databases in DEVONthink.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_open_databases tool handler definition and implementation using JXA to interact with DEVONthink.
    export const getOpenDatabasesTool = defineTool({
      name: "get_open_databases",
      description: "Get a list of all currently open databases in DEVONthink.",
      schema: z.object({}),
      run: async (_args, executor) => {
        const script = `
    ${JXA_APP}
    var dbs = app.databases();
    var result = [];
    for (var i = 0; i < dbs.length; i++) {
      var db = dbs[i];
      result.push({
        uuid: db.uuid(),
        name: db.name(),
        path: db.path()
      });
    }
    JSON.stringify(result);
    `.trim();
    
        const { stdout } = executor.run(script);
        return JSON.parse(stdout) as Array<{
          uuid: string;
          name: string;
          path: string;
        }>;
      },
    });
Behavior3/5

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

No annotations are provided, so the description must carry the full burden. It implies a safe read operation via 'Get' and adds context about 'currently open' state, but fails to describe the return structure, format, or what constitutes an 'open' database since no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of a single, efficient sentence that front-loads the action verb. There is no redundant or wasted text; every word serves to clarify the tool's scope.

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?

While appropriate for the tool's low complexity (no input parameters), the description lacks information about return values since no output schema is provided. It should ideally describe what properties are returned for each database.

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?

The tool has zero parameters, which establishes a baseline score of 4 according to the evaluation rubric. No parameter documentation is required or present.

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?

The description uses a specific verb ('Get') and resource ('list of all currently open databases') and clearly distinguishes from sibling tool 'current_database' by emphasizing 'all' versus a single database.

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 description ('currently open' suggests runtime state), but there is no explicit guidance on when to use this versus 'current_database' or other database-related tools, and no prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnott/Devon'

If you have feedback or need assistance with the MCP directory API, please join our Discord server