Skip to main content
Glama

list_recipients

Retrieve available notification recipients for a specific Honeycomb environment, including names, types, targets, and metadata, with pagination and search capabilities.

Instructions

Lists available recipients for notifications in a specific environment. This tool returns a list of all recipients available in the specified environment, including their names, types, targets, and metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYesThe Honeycomb environment
pageNoPage number (1-based)
limitNoNumber of items per page
sort_byNoField to sort by
sort_orderNoSort direction
searchNoSearch term to filter results
search_fieldsNoFields to search in (string or array of strings)

Implementation Reference

  • The handler function that executes the list_recipients tool logic: validates input, fetches recipients via API, simplifies data, and returns formatted response.
    handler: async ({ environment }: z.infer<typeof ListRecipientsSchema>) => { // Validate input parameters if (!environment) { return handleToolError(new Error("environment parameter is required"), "list_recipients"); } try { // Fetch recipients from the API const recipients = await api.getRecipients(environment); // Create a simplified response const simplifiedRecipients = recipients.map(recipient => ({ id: recipient.id, name: recipient.name, type: recipient.type, target: recipient.target || '', created_at: recipient.created_at, updated_at: recipient.updated_at, })); return { content: [ { type: "text", text: JSON.stringify(simplifiedRecipients, null, 2), }, ], metadata: { count: simplifiedRecipients.length, environment } }; } catch (error) { return handleToolError(error, "list_recipients"); } }
  • Zod schema for list_recipients tool inputs: requires 'environment', merges optional pagination parameters.
    export const ListRecipientsSchema = z.object({ environment: z.string().min(1).trim().describe("The Honeycomb environment"), }).merge(PaginationSchema).describe("Parameters for listing notification recipients in a Honeycomb environment. Recipients receive alerts from triggers.");
  • Registration of the list_recipients tool: created via createListRecipientsTool(api) and added to the tools array in registerTools function, which registers all tools with the MCP server via a loop.
    // Recipient tools createListRecipientsTool(api),

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/honeycombio/honeycomb-mcp'

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