matomo_get_system_info
Retrieve Matomo Analytics system information including version, configuration, and server details to monitor platform status and verify API connectivity.
Instructions
Lấy thông tin hệ thống Matomo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:236-243 (schema)Tool schema definition: name 'matomo_get_system_info', description, and empty input schema (no parameters required).{ name: 'matomo_get_system_info', description: 'Lấy thông tin hệ thống Matomo', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:290-291 (registration)Switch case in CallToolRequestHandler that registers and routes 'matomo_get_system_info' calls to the handler method.case 'matomo_get_system_info': return await this.handleGetSystemInfo();
- src/index.ts:488-502 (handler)Handler function for the tool: checks Matomo connection, invokes service.getSystemInfo(), and returns JSON-formatted system info as text content.private async handleGetSystemInfo() { if (!this.matomoService) { throw new Error('Chưa kết nối đến Matomo. Vui lòng sử dụng matomo_connect trước.'); } const info = await this.matomoService.getSystemInfo(); return { content: [ { type: 'text', text: `Thông tin hệ thống:\n${JSON.stringify(info, null, 2)}`, }, ], }; }
- src/services/matomo-api.ts:187-190 (handler)Core handler logic in MatomoApiService: performs API request to Matomo's 'API.getSystemInfo' endpoint and returns the system information.async getSystemInfo(): Promise<MatomoSystemInfo> { const response = await this.makeRequest('API.getSystemInfo'); return response; }