Prepare a user’s message before acting on it
prepare_promptThe inbound half of the Translation Bridge loop. Takes the user’s raw message (possibly ambiguous, fragmented, or underspecified) plus their ReceiverProfile, and returns the recovered intent, a canonical translation to act on, ambiguity level, and — profile-aware — whether to clarify or commit. Call this before acting on any ambiguous user request. Scope note: its detectors are lexical/structural (vague signals, ambiguous references) — for the commit-vs-clarify DECISION, route_intent (with your own proposed readings) is the authority; when they disagree, follow route_intent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "prepare_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | Risk category for the ambiguity threshold. | advice |
| text | Yes | The user’s raw message. | |
| profile | No | The user’s ReceiverProfile from calibrate_profile. Shapes clarify-vs-commit behavior. |