Schema Affordances

Usage cues communicated through tool names, parameters and types.

A hotel shower has two unlabeled chrome knobs and one lever. You turn the left knob and get cold water on your head. Next to it, a kitchen light switch needs no explanation at all: it can only go up or down, and the plate tells you which is on. Both are interfaces. One tells you how to use it, and one makes you experiment.

The psychologist James J. Gibson coined affordance for what an object lets you do. Don Norman brought the word into design, and later added signifier for the visible cue that tells you the affordance is there. A tool schema is the agent's entire view of a tool, so every cue has to live in it: the tool name, the parameter names, the types, the enums, the defaults, the description. Those cues are the tool's schema affordances.

In practice

Here are two versions of the same parameter on a search_tickets tool:

"status": { "type": "string" }
"status": {
  "type": "string",
  "enum": ["open", "pending", "closed"],
  "default": "open",
  "description": "Ticket state. Omit to search open tickets only."
}

The first version is the unlabeled knob. The agent will try "Open", "active" or "resolved", and may get back nothing without learning why. The second version is the light switch. The enum lists every valid value, the default says what happens when the agent says nothing, and the description warns about the hidden scope. That costs about 30 more tokens, once, in the tool list.

Names carry affordances too. A tool called get_user suggests one record and no side effects. A parameter called dry_run suggests a safe preview. The agent will act on those suggestions, whether or not the implementation honors them.

Why it matters

Strong affordances shrink the gulf of invocationLexicon · 29Gulf of InvocationFriction between an agent's intent and issuing a valid call., the distance between knowing what you want and issuing a valid call. Each missing cue turns into a guess, and guesses turn into failed calls, retries and quietly wrong arguments. A weak schema charges that cost on every call that touches it.

What to do about it

H-06 Deterministic Envelopes & Schema Uniformity keeps cues consistent across tools, so limit and cursor mean the same thing everywhere and one learned pattern transfers. H-10 Poka-Yoke Boundaries turns cues into constraints: an enum the tool enforces is stronger than a description it hopes the agent reads. H-05 Align with Interface Priors picks names and shapes the model already associates with the right behavior.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.