Usage #
// Import the typed helper
import { getTeam } from "@hotglue/sdk/sentry";
const result = await client.execute({
...getTeam({
organization_id_or_slug: string,
team_id_or_slug: string,
}),
userId: "user_123",
});
// result is typed as GetTeamOutput
const result = await client.execute({
integration: "sentry",
tool: "get_team",
userId: "user_123",
input: {
organization_id_or_slug: string,
team_id_or_slug: 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 Get Team tool");
Input Schema #
organization_id_or_slug
string
required
Organization ID or slug
team_id_or_slug
string
required
Team ID or slug
Output Schema #
id
string
required
slug
string
required
name
string
required
This tool calls: #
GET
https://sentry.io/api/0/teams/{organization_id_or_slug}/{team_id_or_slug}/