Gulf of Invocation
Friction between an agent's intent and issuing a valid call.
You're at a train station abroad. You know exactly what you want: one ticket to the airport, leaving in the next ten minutes. The machine wants a zone number, a fare class and a ticket type, in that order, in a language you half read. The wanting was easy. Turning it into the input the machine accepts takes four tries and a stranger's help.
Don Norman named this distance in The Design of Everyday Things: the gulf of execution, the gap between what a person intends and the actions the system lets them take. Agents face the same gap on every tool call. An agent can know precisely what it wants to do and still fail to say it in a form the tool will accept. The Guide calls the agent version the gulf of invocation.
The gulf is wide when the tool asks for things the agent doesn't have, or has in a different shape: an internal ID instead of a name, a timestamp in milliseconds instead of a date, a nested object where a string would do.
In practice
An agent is asked to book a review meeting "Thursday at 3pm with Dana." The calendar tool looks like this:
{
"name": "create_event",
"parameters": {
"start": { "type": "integer" },
"duration": { "type": "integer" },
"attendees": { "type": "array", "items": { "type": "string" } }
}
}
Notice how much the schema leaves unsaid. Is start in seconds or milliseconds, and in which time zone? Is duration in minutes? Do attendees take names, emails or user IDs? The agent's intent is clear. Each of those questions is a separate chance to guess wrong, and some wrong guesses (a meeting at 3am UTC) succeed silently.
Why it matters
A wide gulf of invocation costs turns first: rejected calls, retries, lookups to convert a name into an ID. The worse case is a call that's valid but wrong. A schema that accepts any integer will accept the wrong integer. Then the problem crosses over to the other side of the loop, where the agent has to notice from the output that it booked the wrong time.
What to do about it
H-05 Align with Interface Priors narrows the gulf by accepting inputs in the forms models already produce fluently, such as ISO 8601 dates and email addresses. H-10 Poka-Yoke Boundaries rejects ambiguous or out-of-range arguments at the call, before they become actions. When a call does fail, H-11 Errors as Steering Prompts makes the error show the exact valid form, so the second try lands. H-09 Executable, Just-in-Time Micro-Docs puts one worked example next to the schema, which often closes the gulf in a single line.
Related
- The gulf of interpretationLexicon · 30Gulf of InterpretationDifficulty judging from tool output whether an action succeeded. is the return trip: judging from the output whether the call did what was intended.
- Schema affordancesLexicon · 31Schema AffordancesUsage cues communicated through tool names, parameters and types. are the cues in names, types and enums that tell the agent how to cross this gulf.
- Inference distanceLexicon · 33Inference DistanceProbabilistic effort of accurately generating arguments across token span. measures one part of the crossing: how far the agent has to reach, and how precisely, to produce each argument.