typed-schema-demo

typed-schema-demo is a skill for Claude Code, Codex from dcc-mcp/dcc-mcp-core. It costs 55 tokens per session (429 once invoked), scanned A, original, MIT.

A reference showing how Python type annotations and dataclasses can generate JSON input and output schemas automatically. A schema describes the fields and data shapes that a tool accepts and returns.

In plain words
What is it for?
Use it when authoring typed Python handlers whose tool schemas should be published automatically, including output schemas for MCP sessions.
Why use it?
It avoids writing those JSON descriptions by hand and helps clients validate tool data. It also shows how to register the resulting tool with an MCP server, a system that lets applications call tools through a standard protocol.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when authoring typed Python handlers whose tool schemas should be published automatically, including output schemas for MCP sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dcc-mcp/dcc-mcp-core/typed-schema-demo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dcc-mcp/dcc-mcp-core --skill typed-schema-demo
Clone the repo
git clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-core

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typed-schema-demo

README.md
[![agentmods](https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo/github.svg)](https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo)
Your own site
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typed-schema-demo

Your own site · 80×15
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00429
Opus 5 $0.00028 $0.00215
Sonnet 5 $0.00011 $0.00086
Haiku 4.5 $0.00006 $0.00043

Measured 12d ago against content hash 750fa0b466c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

typed-schema-demo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/demo.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/typed-schema-demo/SKILL.md · 50 lines

What it actually says

Typed Schema Demo (issue #242)

This skill demonstrates the dcc_mcp_core.schema helpers landed for issue #242: authors write a typed handler and tool_spec_from_callable derives both inputSchema and outputSchema from the annotations, with no dependency on pydantic, jsonschema, or attrs.

What to look at

  • scripts/demo.py — one handler using a dataclass input and a dataclass output. The derived schemas are structurally compatible with pydantic's model_json_schema() so callers can swap in pydantic later without migrating agents or cached schemas.

How to wire it into a server

The demo module builds a ToolSpec that is ready for dcc_mcp_core._tool_registration.register_tools(server, [spec]). Inside an adapter (e.g. Maya/Blender), register it during bootstrap:

from dcc_mcp_core._tool_registration import register_tools
from typed_schema_demo.scripts.demo import spec

register_tools(server, [spec], dcc_name="python")

When the negotiated MCP session is 2025-06-18, the gateway publishes outputSchema alongside inputSchema so clients can validate the structuredContent payload our handler returns.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 50 lines · 55 tokens per session scan A 750fa0b466c2

Subscribe to this mod's changes

typed-schema-demo is a skill published in the GitHub repository dcc-mcp/dcc-mcp-core (44 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 429 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

artclaw-tool-creator

A guided tool for creating custom tools in the ArtClaw system, which connects an AI assistant with digital-content applications. It can package an existing skill, generate a script, or combine tools, then preview and save the result.

IvanYangYangXi/artclaw_bridge · 41 tokens

houdini-simulation

A Houdini guide for building smoke, fire, rigid-body, fluid, and cloth simulations. It covers the usual node steps for setting up, solving, processing, and caching these effects.

IvanYangYangXi/artclaw_bridge · 75 tokens

sd-node-ops

A Substance Designer guide for creating, connecting, and configuring nodes in material graphs, which are step-by-step networks that produce textures.

IvanYangYangXi/artclaw_bridge · 67 tokens

blender-viewport-capture

A Blender viewport capture tool, where the viewport is the window showing a 3D scene while you work. It saves an OpenGL or rendered preview screenshot for visual inspection.

IvanYangYangXi/artclaw_bridge · 85 tokens

houdini-node-ops

A Houdini guide for creating and connecting nodes and setting their parameters. Houdini is a 3D application that builds many models and effects as connected processing steps called nodes.

IvanYangYangXi/artclaw_bridge · 61 tokens

ue5-blueprint-workflow

UE5.6/UE5.7 Blueprint graph workflow for feature implementation, input events, node wiring, and graph validation. Use when requests involve adding Blueprint logic, keyboard input behavior, function chains, event graph edits, or pin-level connection guidance.

IvanYangYangXi/artclaw_bridge · 58 tokens