Skip to main content
Glama

get_status

Retrieve the status of the Kibana server, including multi-space support, by specifying the target space or using the default configuration.

Instructions

Get Kibana server status with multi-space support

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spaceNoTarget Kibana space (optional, defaults to configured space)

Implementation Reference

  • The asynchronous handler function that executes the tool logic: fetches Kibana server status via kibanaClient.get('/api/status'), formats the response with space context, handles errors gracefully.
    async ({ space }): Promise<ToolResponse> => { try { const targetSpace = space || defaultSpace; const response = await kibanaClient.get('/api/status', { space }); return { content: [ { type: "text", text: `[Space: ${targetSpace}] Kibana server status: ${JSON.stringify(response, null, 2)}` } ] }; } catch (error) { console.error(`Failed to get server status: ${error}`); return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }
  • Zod input schema defining an optional 'space' parameter for targeting specific Kibana spaces.
    z.object({ space: z.string().optional().describe("Target Kibana space (optional, defaults to configured space)") }),
  • Tool registration using server.tool(), including name, description, schema, and handler function.
    "get_status", `Get Kibana server status with multi-space support`, z.object({ space: z.string().optional().describe("Target Kibana space (optional, defaults to configured space)") }), async ({ space }): Promise<ToolResponse> => { try { const targetSpace = space || defaultSpace; const response = await kibanaClient.get('/api/status', { space }); return { content: [ { type: "text", text: `[Space: ${targetSpace}] Kibana server status: ${JSON.stringify(response, null, 2)}` } ] }; } catch (error) { console.error(`Failed to get server status: ${error}`); return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } } );

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/TocharianOU/mcp-server-kibana'

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