Usage #
// Import the typed helper
import { getProject } from "@hotglue/sdk/sentry";
const result = await client.execute({
...getProject({
organization_id_or_slug: string,
project_id_or_slug: string,
}),
userId: "user_123",
});
// result is typed as GetProjectOutput
const result = await client.execute({
integration: "sentry",
tool: "get_project",
userId: "user_123",
input: {
organization_id_or_slug: string,
project_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 Project tool");
Input Schema #
organization_id_or_slug
string
required
Organization ID or slug
project_id_or_slug
string
required
Project ID or slug
Output Schema #
id
string
required
slug
string
required
name
string
required
platform
string
dateCreated
string
status
string
This tool calls: #
GET
https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/