List Organizations

Return a list of organizations available to the authenticated session

Usage #

// Import the typed helper
import { listOrganizations } from "@hotglue/sdk/sentry";
const result = await client.execute({
...listOrganizations({
owner: bool,
query: string,
sortBy: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListOrganizationsOutput
const result = await client.execute({
integration: "sentry",
tool: "list_organizations",
userId: "user_123",
input: {
owner: bool,
query: string,
sortBy: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["sentry"],
userId: "user_123",
}),
});
await agent.generate("run the List Organizations tool");

Input Schema #

owner bool

Filter to organizations where authenticated user is owner

query string

Search query for filtering organizations

sortBy string

Order results by members, projects, or events

values: members, projects, events
cursor string

Pagination cursor

This tool calls: #

GET https://sentry.io/api/0/organizations/