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.
npx skills add agentfront/frontmcp --skill create-toolgit clone --depth 1 https://github.com/agentfront/frontmcpWrote 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.
[](https://agentmods.dev/skills/agentfront/frontmcp/create-tool)<a href="https://agentmods.dev/skills/agentfront/frontmcp/create-tool"><img src="https://agentmods.dev/badge/skills/agentfront/frontmcp/create-tool/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.
<a href="https://agentmods.dev/skills/agentfront/frontmcp/create-tool"><img src="https://agentmods.dev/badge/skills/agentfront/frontmcp/create-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 6 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Prompt Injection · line 101 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 101 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 295 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 220 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 272 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 310 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00468 | $0.05972 |
| Opus 5.5 | $0.00187 | $0.02389 |
| Sonnet 5.5 | $0.00094 | $0.01194 |
| Haiku 4.5 | $0.00047 | $0.00597 |
Grade A, and why
create-tool scanned grade A with 1 finding 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
YES → use this.fetch(input, init?) (context propagation) How it starts
The opening of the file, as written. The whole thing — 327 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create a FrontMCP Tool
Tools are the primary way to expose executable actions to AI clients in the MCP protocol. In FrontMCP, every tool is a TypeScript class that extends ToolContext, decorated with @Tool({...}), and registered on an @App (or directly on @FrontMcp for simple servers).
This skill is the single source of truth for building tools. It owns:
- The
@Tooldecorator surface - Input / output schemas and how to derive
execute()types from them - Dependency injection, error handling, progress / notifications
- Throttling: rate-limit, concurrency, timeout
- Auth providers and the credential vault
- Platform / runtime / surface availability constraints
- Elicitation (interactive input mid-execution)
- Tool UI widgets — the
ui:block, MCP Apps / SEP-1865,.tsxFileSource, CSP,window.FrontMcpBridge - Annotations (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint) - The
examplesmetadata field - Function-style tools, remote / ESM tools
- Registration patterns
- Per-tool unit testing
For everything else — resources, prompts, agents, jobs, workflows, adapters, plugins, providers, channels — use the matching create-<thing> skill.
First time? Start with
references/quick-start.md, then jump to the example matching your scenario via the Decision Tree below.
Inherited defaults
This skill ALWAYS applies these defaults — never opt out without an audited reason:
| Default | Source | What it enforces |
|---|---|---|
inputSchema is a Zod raw shape |
rules/input-schema-is-raw-shape.md |
Plain object mapping field → Zod type. Framework wraps internally. Never z.object(...) at the top level. |
outputSchema is always defined |
rules/always-define-output-schema.md |
Prevents data leaks, enables CodeCall chaining, gives compile-time type safety. |
execute() types are derived from the schemas |
rules/derive-execute-types.md |
ToolInputOf<> / ToolOutputOf<> over the hoisted schemas. Schema is the single source of truth. |
class MyTool extends ToolContext — no generics |
rules/no-toolcontext-generics.md |
Types are auto-inferred from @Tool. Explicit generics are redundant and forbidden. |
Tool names are snake_case |
rules/snake-case-tool-names.md |
MCP protocol convention. get_weather, not getWeather. |
No try/catch around execute() |
rules/no-try-catch-around-execute.md |
The framework's flow catches and formats errors. Wrapping defeats it. |
this.fail(new McpError(…)) for business errors |
rules/use-this-fail-for-business-errors.md |
Triggers the error flow with proper JSON-RPC codes. Raw throw skips it. |
Register tools in @App({ tools }) |
rules/register-in-app.md |
Apps own modularity and lifecycle. Top-level @FrontMcp({ tools }) is the simple-server escape hatch. |
.tsx widget paths use fileURLToPath(new URL('./x.tsx', import.meta.url)) |
rules/widget-paths-anchor-with-import-meta-url.md |
Relative FileSource paths resolve against process.cwd() — the workaround is mandatory (issue #444). |
Leave ui.resourceMode unset by default |
rules/widget-resource-mode-host-detect.md |
The framework host-detects: Claude → 'inline', others → 'cdn' (issue #456). Set explicitly only to override. |
What ships with it
54 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.
- examples/01-basic-class-tool.md 5.2 KB
- examples/02-basic-function-tool.md 2.8 KB
- examples/03-tool-with-zod-shape-output.md 3.0 KB
- examples/04-tool-with-zod-schema-output.md 4.2 KB
- examples/05-tool-with-primitive-output.md 3.0 KB
- examples/06-tool-with-media-output.md 4.1 KB
- examples/08-tool-with-provider-injection.md 4.6 KB
- examples/09-tool-with-multiple-providers.md 3.9 KB
- examples/11-tool-with-fetch.md 3.6 KB
- examples/12-tool-with-fetch-and-retries.md 5.4 KB
- examples/13-tool-with-single-auth-provider.md 5.6 KB
- examples/14-tool-with-multiple-auth-providers.md 5.3 KB
- examples/15-tool-with-credential-vault.md 6.1 KB
- examples/16-tool-with-rate-limit.md 4.1 KB
- examples/17-tool-with-concurrency-and-timeout.md 4.9 KB
- examples/18-tool-with-progress-and-notify.md 4.5 KB
- examples/19-tool-with-elicitation.md 4.8 KB
- examples/20-tool-with-annotations.md 5.3 KB
- examples/21-tool-with-availability-constraints.md 5.1 KB
- examples/22-tool-with-ui-html-template.md 5.6 KB
- examples/23-tool-with-ui-filesource-tsx.md 6.4 KB
- examples/24-tool-with-ui-csp-and-bridge.md 7.1 KB
- examples/25-tool-handing-off-to-job.md 5.9 KB
- examples/26-tool-with-resource-link-output.md 4.6 KB
- examples/27-tool-with-examples-metadata.md 5.0 KB
- examples/28-tool-with-ui-served-from-a-url.md 4.8 KB
- references/annotations.md 3.8 KB
- references/auth-providers.md 13 KB
- references/availability.md 18 KB
- references/decorator-options.md 21 KB
- references/derived-types.md 4.6 KB
- references/elicitation.md 9.2 KB
- references/error-handling.md 11 KB
- references/execution-context.md 16 KB
- references/file-layout.md 4.7 KB
- references/function-style-builder.md 5.0 KB
- references/input-schema.md 8.2 KB
- references/output-schema.md 21 KB
- references/quick-start.md 3.7 KB
- references/registration.md 3.7 KB
- references/remote-and-esm.md 6.8 KB
- references/testing.md 3.9 KB
- references/throttling.md 7.8 KB
- references/ui-widgets.md 52 KB
- rules/always-define-output-schema.md 3.7 KB
- rules/derive-execute-types.md 2.4 KB
- rules/input-schema-is-raw-shape.md 1.9 KB
- rules/no-toolcontext-generics.md 1.9 KB
- rules/no-try-catch-around-execute.md 2.8 KB
- rules/register-in-app.md 2.6 KB
- rules/snake-case-tool-names.md 1.6 KB
- rules/use-this-fail-for-business-errors.md 3.9 KB
- rules/widget-paths-anchor-with-import-meta-url.md 3.8 KB
- rules/widget-resource-mode-host-detect.md 2.8 KB
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.
- yesterday Changed · +1 lines 0145cc200a24
- 20d ago Changed · +3 lines 1aa4a1f17bd2
- 24d ago Changed 16fff9247afd
- 27d ago Changed · +4 lines · +12 tokens per session e2dbe977a6e6
- 1mo ago Changed 9e1437cde29d
- 1mo ago Changed 4837b60b21f5
- 1mo ago Changed 36ea06a39139
- 2mo ago Changed 8f59e7ca0f93
- 2mo ago Changed 191d1fececcd
- 3mo ago First seen · 319 lines · 456 tokens per session scan A e6fd16c98ad3
create-tool is a skill published in the GitHub repository agentfront/frontmcp (154 stars, last pushed today), licensed Apache-2.0. It adds 468 tokens to every session and 5,972 once invoked, about $0.0019 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
create-tool compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-toolagentfront/frontmcp | Skill | 154 | today | Apache-2.0 | A | 468 | Claude Code |
| plugin-developzhinjs/zhin | Skill | 136 | yesterday | MIT | A | 70 | Claude Code, Codex |
| convert-web-appmodelcontextprotocol/ext-apps | Skill | 3.2k | 4d ago | none | A | 115 | Claude Code |
| add-app-to-servermodelcontextprotocol/ext-apps | Skill | 3.2k | 4d ago | none | A | 95 | Claude Code |
| create-mcp-appmodelcontextprotocol/ext-apps | Skill | 3.2k | 4d ago | none | A | 77 | Claude Code |
| migrate-oai-appmodelcontextprotocol/ext-apps | Skill | 3.2k | 4d ago | none | A | 80 | Claude Code |
| screenshot-to-codechainlesschain/chainlesschain | Skill | 11 | 15d ago | none | A | 24 | Claude Code |