Every line in a tool schema is compiled, rejected, or quietly demoted — and only one of those is enforcement.
Write minimum: 100 on a strict tool and one of three things happens: the API refuses the whole request, the SDK silently deletes the constraint and pastes it into the field description, or nothing at all checks it and you never find out. Those are not three bugs — they are the three buckets every keyword you write falls into, and the difference between the first and the third is the difference between a guarantee and a comment. The design skill that matters in late 2026 is sorting your own schema into those buckets before you ship it, because a constraint in the wrong bucket reads exactly like one in the right bucket.
Step 1The schema has two readers, and only one of them can be compelled.
A tool schema is consumed twice. The model reads the whole thing as prose — field names, types, descriptions, examples — and conforms to it probabilistically, before any validator runs. That is still the cheapest intervention you have: a field named iso_date with a one-line description beats a field named date policed by a regex the model never sees. But a second reader arrived, and it is not probabilistic. When you set strict: true, the platform compiles your schema into a grammar and masks the model's token sampling so that schema-invalid output cannot be emitted — constrained decoding, applied to tool arguments.
The grammar reader is far more literal and far less forgiving than the prose reader. It understands a deliberately small dialect of JSON Schema and has no opinion whatsoever about your field names or your descriptions. Anthropic's strict tool use documents exactly two guarantees: the tool input follows your input_schema, and the tool name is always a real one. Everything else you believed your schema enforced is being enforced, if at all, by the first reader — the one that is usually right.
Step 2Three buckets: compiled, rejected, demoted.
Sort every keyword you write into one of three fates. Compiled means the grammar makes violation impossible. On Anthropic as of December 2026 that is: the basic types; enum and const (strings, numbers, booleans and nulls only); anyOf and allOf within limits; $ref, $defs and definitions; default; required and additionalProperties (which must be false); ten string formats including date, uri and uuid; a usable subset of pattern; and array minItems — but only for the values 0 and 1.
Rejected means the request fails loudly, which is the second-best outcome and genuinely fine. Numeric constraints (minimum, maximum, multipleOf), string-length constraints (minLength, maxLength), oneOf, not, recursive schemas and external $ref all return a 400 with details. You find out at the first request, in development, and you fix it.
Demoted is the dangerous one, and you opt into it by doing the convenient thing. The SDK helpers do not pass your unsupported constraint through to be rejected; they rewrite the schema. The constraint is stripped from the wire format and appended to the field's description instead — minimum: 100 is sent as a plain integer, and the description gains the text {minimum: 100}. Some helpers then re-check the response against the removed constraint on the way back; the TypeScript jsonSchemaOutputFormat() helper does not validate responses at all, so a violated minimum passes through without a word. Your schema file still says 100. Nothing in the system agrees that it means anything.
# Bucket 1 — compiled. The grammar cannot emit anything else. {"status": {"enum": ["open", "closed"]}} # Bucket 2 — rejected. 400 at the first request, in dev. Fine. {"amount": {"type": "integer", "minimum": 100}} # Bucket 3 — demoted by the SDK. Ships. Enforces nothing. {"amount": {"type": "integer", "description": "cents {minimum: 100}"}}
The audit is mechanical: delete every keyword the compiler drops and re-read what is left. That remainder is your contract. Everything you deleted is documentation — which is a perfectly good thing to be, as long as nothing in your threat model was relying on it.
Step 3"Make illegal states unrepresentable" is rationed now, not free.
The type-driven advice still holds: prefer an enum to a free string, and a discriminated union ({type: "email", address} versus {type: "sms", phone}) to a flat object with mutually exclusive optional fields the model can fill both of or neither. What changed is that expressiveness now has a published price. Anthropic caps a single request at 20 strict tools, 24 optional parameters, and 16 union-typed parameters — and those are combined totals across every strict schema in the request, not per tool. The documentation makes the trap explicit: four strict tools with six optional parameters each reaches the 24-parameter ceiling, though no individual tool looks remotely complex. Union types are singled out as the expensive ones, because they create exponential compilation cost.
Past those explicit caps sit internal limits on compiled grammar size, which return a 400 reading "Schema is too complex for compilation", plus a hard 180-second compilation timeout as a final stop-gap. So a schema can satisfy every published limit and still be too big — a failure mode that arrives when you add the twelfth tool, not when you write the clever union.
The worked example is sitting in Anthropic's own documentation, and it is the whole lesson in one field. To express "between one and ten passengers" in a strict tool, the docs write {"type": "integer", "enum": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]} — not minimum: 1, maximum: 10. The enum is the bound, spelled in the only dialect the grammar speaks. A bound written the obvious way is rejected; the same bound written as an enumeration is compiled and unbreakable.
That translation only works while the range is small and discrete. There is no enum for "a positive integer" or "a string under 280 characters" — those bounds cannot be compiled by anyone, and they belong in your validator, permanently. Do not let the ergonomics of strict mode persuade you that the backstop is now optional.
Step 4Required vs optional is a risk decision that is now also a budget line.
The instinct to make fields optional "to be flexible" was always a delegation: optional means the model decides, and it decides fast, under ambiguity, sometimes wrong. Anything safety-relevant — the account being charged, the destination of a write, a confirmation flag — should be required and explicit so the model has to state intent rather than inherit a default it never considered. An optional field with no default on a side-effecting tool remains the worst of both worlds: the model often omits it and the tool then guesses or fails.
Strict mode adds a second, independent reason to reach the same verdict. Each optional parameter roughly doubles a portion of the grammar's state space, which is why Anthropic's own guidance for shrinking a too-complex schema is to make parameters required and have the model supply the default explicitly. The convenience knob and the safety knob now turn the same way, which is a rare gift.
There is one consequence almost nobody plans for. Under structured outputs, property order in the response is not your schema's order: required properties are emitted first, then optional ones, each group in schema order. If anything downstream — a diff, a signature, a golden-file test — depends on key order, mark every property required or teach your parser the reordering. This is the kind of detail that produces a test failure three weeks after a schema edit that looked cosmetic.
Step 5Descriptions and examples are where a demoted constraint has to go and live.
Because the prose reader is the only one that sees them, descriptions carry every constraint the grammar refused. The highest-leverage tool edits are still one-line field descriptions that disambiguate — "amount in cents, not dollars"; "UTC, ISO-8601"; "must be an ID returned by search, not a name" — and a 2025 ecosystem study found 97% of MCP tool descriptions had at least one quality issue, with 56% carrying unclear purpose statements. Write the description as if it were the prompt, because for this reader it is.
Examples are now a structured field rather than something you smuggle into prose, and they come with their own arithmetic and their own hole. Each example costs roughly 100 input tokens for a few flat values and about 200 for one with nested objects, on every request that carries the tool. And while the API usually rejects an example that violates its own schema, the documentation records one case where it does not: when the schema contains a pattern, the check is skipped and the model is shown the invalid example anyway. A pattern therefore compiles your constraint and disables the validation of your teaching material in the same stroke. Examples in the tool definition works through what they can teach that no type can.
Put every demoted bound in two places and only two: the field description, where the model will read it, and your own validator, where it is actually enforced. Writing it in the schema and nowhere else is how a bound becomes decoration.
Step 6What the grammar cannot promise, and where the check that can has to live.
Schema conformance is not the same claim as "the response matches your schema", and the gaps are documented. A refusal arrives as stop_reason: "refusal" with a 200 status code, billed for the tokens generated, and its output need not match your schema at all — so the happy path and the refusal path differ by a field you have to check rather than an exception you can catch. Asking a property for the model's step-by-step reasoning can itself trigger a reasoning_extraction refusal, which makes "add a rationale field" a riskier edit than it looks. A max_tokens cut-off yields a valid prefix of an invalid document. And grammars apply only to the model's direct output — not to tool results, and not to thinking, where grammar state resets between sections so the model can reason freely and still land in your shape.
The sharpest one has no error at all. Enum capitalization is not guaranteed. The documentation's own example gives an enum of ["Conversation Topic 1", "Conversation Topic 2", "Conversation topic 3"] and notes the model may return "Conversation Topic 3" — capital T, a value in no enum entry — completing normally, with no error and no special stop reason. This applies to structured outputs and strict tool use alike. Compare enum values case-insensitively, and never mint two enum values that differ only in case.
One last thing the schema is, that nothing in its syntax tells you: a separate retention class. Compiled grammars are cached for up to 24 hours from last use, in storage held apart from message content, which is why strict tool use is zero-data-retention-qualified for prompts and responses while the schema itself is explicitly excluded from the PHI protections those get. The guidance is blunt — keep protected health information out of property names, enum values, const values and pattern regexes. A schema that enumerates your patient cohort to make the grammar tighter has moved regulated data into a cache with different rules, and it did it in the name of type safety.
Ship the schema as the instruction set and the enforcement boundary it can actually be: compile the discrete constraints, let the rest be rejected loudly in development, and keep one validator that re-checks everything the grammar dropped plus the four things it never promised — refusals, truncation, enum casing, and values that are well-typed and still wrong. Constrain to delete error classes, not to show off the type system — if a tighter schema makes the common call harder to express, or spends a budget you needed for the tool next to it, you have optimized the wrong thing.