Skip to main content
Glama
mnott
by mnott

hookmark_frontmost

Create Hookmark bookmarks for active macOS app content. Specify an app to generate hook:// URLs linking documents, emails, notes, or tasks for bidirectional connections.

Instructions

Get the hook:// URL for the active document or window in the frontmost macOS application. Brings the specified application to the foreground and creates a Hookmark bookmark for whatever is currently active in that app (document, email, note, task, etc.). Returns the hook:// URL that can be used with hookmark_connect to link it to other items. Specify the app name without the '.app' suffix, e.g. 'Finder', 'Mail', 'Obsidian', 'Bear'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYesApplication name without '.app' suffix (e.g. 'Finder', 'Mail', 'Obsidian', 'Bear', 'Xcode')
markdownNoWhen true, return the result as a Markdown link instead of a bare hook:// URL
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes key behaviors: bringing the app to the foreground, creating a bookmark, and returning a URL. However, it lacks details on error handling, permissions needed, or what happens if the app is not running or has no active document.

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 is front-loaded with the core purpose, followed by specific instructions and examples. Every sentence adds value: the first states the action, the second explains the return value usage, and the third clarifies parameter formatting. No wasted words.

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?

Given the tool's moderate complexity (2 parameters, no annotations, no output schema), the description is fairly complete. It covers the purpose, usage, and parameter semantics adequately. However, it could improve by addressing potential errors or edge cases, such as what happens if the app is not installed or has no frontmost document.

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 description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds minimal value beyond the schema, mentioning the app name format and the markdown option's purpose, but does not provide additional syntax or usage details for parameters.

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 clearly states the tool's purpose with specific verbs ('Get', 'Brings', 'creates') and resources ('hook:// URL', 'active document or window', 'Hookmark bookmark'). It distinguishes from siblings by focusing on creating a bookmark for the frontmost application rather than cloning, connecting, listing, removing, or searching existing bookmarks.

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?

The description provides clear context on when to use this tool: to get a hook:// URL for the active item in a specified macOS app, which can then be used with hookmark_connect. It mentions the app name format requirement but does not explicitly state when not to use it or name specific alternatives among siblings.

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/Hook'

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