Skip to main content
Glama

list_watched

Retrieve real-time status of monitored file paths and their subscriber counts on the MCP Observer Server to manage automated file change notifications effectively.

Instructions

List all currently monitored paths and their subscriber counts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic within the call_tool_handler that executes the list_watched tool, listing all currently monitored paths and their subscriber counts.
    elif name == "list_watched": if not watched: return [ TextContent(type="text", text="No paths are currently being monitored") ] result_lines = [f"Currently monitoring {len(watched)} paths:"] for path, sessions in watched.items(): result_lines.append(f"- {path} ({len(sessions)} subscribers)") return [TextContent(type="text", text="\n".join(result_lines))]
  • Registration of the list_watched tool in the list_tools() function, including its schema.
    Tool( name="list_watched", description="List all currently monitored paths and their subscriber counts", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),
  • Input schema definition for the list_watched tool (empty object, no properties).
    Tool( name="list_watched", description="List all currently monitored paths and their subscriber counts", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),

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/hesreallyhim/mcp-observer-server'

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