3 tools registered. Strongest in tool quality, weakest in shared experience. Tool selection was not measured.
lookup_decline_code, estimate_failed_payment_loss, get_pricing_model// Make the tool's effect visible on the page the person is looking at:
// update the same UI your existing human flow uses when lookup_decline_code runs,
// so the person co-browsing sees what the agent just did.
execute: async (args, { signal }) => {
const result = await performAction(args, signal);
renderResultInPage(result); // the human-visible half of the same action
return result;
}{
"name": "lookup_decline_code",
"description": "Look up a card payment decline (issuer response) code or message and get what it means, which provider and group it belongs to, and whether it is worth retrying.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "A decline code such as \"05\" or \"51\", or a message such as \"do not honor\"."
}
},
"required": [
"query"
]
},
"annotations": {
"readOnlyHint": true
}
}lookup_decline_code, estimate_failed_payment_loss, get_pricing_model// Make the tool's effect visible on the page the person is looking at:
// update the same UI your existing human flow uses when lookup_decline_code runs,
// so the person co-browsing sees what the agent just did.
execute: async (args, { signal }) => {
const result = await performAction(args, signal);
renderResultInPage(result); // the human-visible half of the same action
return result;
}