Skip to main content
Glama

list_perspectives

Retrieve all perspectives in OmniFocus to organize and manage tasks effectively using MCP OmniFocus automation capabilities.

Instructions

List all perspectives in OmniFocus.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The list_perspectives tool is registered as an MCP tool using the @mcp.tool decorator. This is the entry point handler that delegates to the omnifocus module.
    @mcp.tool def list_perspectives() -> list[str]: """List all perspectives in OmniFocus.""" return omnifocus.list_perspectives()
  • The core handler function that executes the JavaScript script to list all built-in and custom perspectives in OmniFocus via evaluate_javascript.
    def list_perspectives() -> list[str]: """List all perspectives in OmniFocus. Returns: A list containing the list of perspective names. """ script = dedent(""" (() => { let perspectives = new Array(); perspectives = perspectives.concat(Perspective.BuiltIn.all); perspectives = perspectives.concat(Perspective.Custom.all); return perspectives.map(perspective => perspective.name); })(); """) return evaluate_javascript(script)

Other Tools

Related 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/someposer/mcp-omnifocus'

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