Possible outcomes
- Permission required
agent:runtime(agent keys only)
When to use it
The possible outcomes of a call in this organization (sign-up, booking, information…). Use the key with set_outcome.
Input
No parameters.
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
outcomesRequired | object[] | |
outcomes[].keyRequired | string | What you pass to set_outcome |
outcomes[].labelRequired | string | |
outcomes[].descriptionRequired | string | null | |
outcomes[].successRequired | boolean | true = counts as a conversion |
Examples
Example 1: A gym's catalog
Call
{
"name": "outcome_options",
"arguments": {}
}Response
{
"outcomes": [
{
"key": "alta",
"label": "Alta",
"description": "Quiere apuntarse…",
"success": true
},
{
"key": "info_horarios",
"label": "Información de horarios",
"description": "Consulta de horarios…",
"success": false
}
]
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "outcome_options",
"arguments": {}
}
}