id = 'thinkrank/get-connection-status'; $this->label = __( 'Get Connection Status', 'thinkrank' ); $this->description = __( 'Report ThinkRank integration health: plugin/Pro versions and active state, Abilities API availability and the count + names of registered ThinkRank abilities, MCP server toggle and endpoints, the current user and their ThinkRank capabilities, home/siteurl/REST URL scheme agreement and HTTPS state, custom database-table status, and scoring availability. Never returns API keys, OAuth tokens, or connection tokens.', 'thinkrank' ); } /** * {@inheritDoc} * * @return array */ public function get_annotations() { return [ 'readonly' => true, 'destructive' => false, 'idempotent' => true, 'priority' => 1.0, 'openWorldHint' => false, ]; } /** * {@inheritDoc} * * @return array */ public function get_input_schema() { return [ 'type' => 'object', 'additionalProperties' => false, 'properties' => self::empty_properties(), ]; } /** * {@inheritDoc} * * @return array */ public function get_output_schema() { return [ 'type' => 'object', 'properties' => [ 'plugin' => [ 'type' => 'object', 'additionalProperties' => true, ], 'abilities' => [ 'type' => 'object', 'additionalProperties' => true, ], 'mcp_server' => [ 'type' => 'object', 'additionalProperties' => true, ], 'user' => [ 'type' => 'object', 'additionalProperties' => true, ], 'urls' => [ 'type' => 'object', 'additionalProperties' => true, ], 'database' => [ 'type' => 'object', 'additionalProperties' => true, ], 'scoring' => [ 'type' => 'object', 'additionalProperties' => true, ], ], ]; } /** * Execute ability. * * @param array $input Ability input payload. * @return array */ public function execute( $input ) { return Connection_Status::report(); } }