Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Declares tool-use schemas, validates model JSON on receive, and retries once on parse failure for reliable structured output.
73% 100%+27 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 16 of 22 without it.
We have a lightweight classifier that outputs a single boolean JSON field `{"is_spam": true}` reviewed directly by human moderators. Is it necessary to build full tool calling schemas for this task?
Acknowledges that unconstrained JSON or prompted JSON is acceptable for simple, low-stakes single-scalar fields with human review.
3 of 3 safety checks passed
Prompted JSON — "reply as JSON" in the system prompt — fails on ~2-8% of calls in the wild: stray prose before the object, trailing commas, unescaped quotes, code fences. That failure rate is fine for a demo and fatal for a loop that runs a thousand times.
Tool use with schema (best) — declare a tool with a JSON Schema for its input. Force the model to call that tool. The API validates the arguments against the schema before you see them. Malformed JSON never leaves the model. Use this whenever the downstream is a real parser.
JSON mode / response_format (good) — where supported. Guarantees a valid JSON object at the top level; does not guarantee schema conformance. Cheap upgrade over prompted-JSON.
Prompted JSON with strict rules (fallback) — for models/tiers without tool use. Say "output ONLY the JSON object, no code fences, no prose", give an example, and validate on receive. Assume ~5% failure and handle it.
call → parse → if fail: retry once with the parse error appended → parse → if fail: hard fail
"severity": "high|medium|low" not "severity": "...".additionalProperties: true without a reason. If the model can add fields, it will, and they'll be inconsistent.{"answer": "yes"}).Otherwise use tool_use.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.