sessions_get_product
One product in full, including terms and restrictions.
When to use it
When the person is weighing up one specific pass or membership.
To read a membership’s billing cycle, or a product’s expiry terms, before recommending it.
Parameters
productstringrequiredProduct id, as returned by sessions_list_products.
Returns
Every tool returns two things: text for the model to read, and a structuredContent object beside it for code that would rather branch on a field.
The product in full: name, kind, price, how many sessions it covers, its billing cycle for a membership, whether it is sold out, and its description.
Example
Run this from any agent or script executing in the page.
const tools =
await document.modelContext.getTools();
const tool = tools.find(
(t) => t.name === 'sessions_get_product',
);
const result = await document.modelContext
.executeTool(tool, {
"product": "<product id>"
});10-Class Pass [<id>]
Kind: pass
Price: 200.00 CAD
Covers 10 session(s){
"product": {
"__typename": "Pass",
"id": "<id>",
"name": "10-Class Pass",
"price": 20000,
"sessionCount": 10
},
"currency": "cad"
}What the agent is told
The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.