SkilldexAll articles

Use examples to clarify tool argument boundaries

Pair constrained schemas with realistic cases that show which values belong in each field.

A tool schema can say that a parameter is a string without explaining whether it should contain a user-facing title, a stable ID, or a resource URI. Examples become useful when they teach the boundaries that a structurally valid tool call could still get wrong.

Pick arguments that expose ambiguity

Choose two similar records with different identifiers. Write an example that uses the stable identifier after discovery and shows where the display name belongs. Add units, time zones, and accepted formats where they affect interpretation. Basic formats and enumerations can constrain the shape as far as your runtime supports.

Include significant omissions

Show what happens when an optional date is omitted, or when a field permits null. A service may interpret omission as defaulting, while null clears an existing value. Model-facing examples should preserve that distinction and explain what the adapter does with each path.

Tie cases to contract fixtures

Run the documented request against a synthetic endpoint using the published adapter. Keep an invalid input case that should receive a specific validation response. If examples and tests drift apart, callers may learn to submit a request that the deployed integration can no longer accept.

Sources