/webmcp-browser-agents:webmcp-tool-schemasfrom webmcp-browser-agents
Design JSON Schemas for WebMCP tool inputs and outputs — proper types, constraints, nested objects, and agent-friendly documentation. Use when defining or refining tool schemas for agent consumption.
Ships in webmcp-browser-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://webmachinelearning.github.io/webmcp/ for the inputSchema specification and any constraintswebmcp inputSchema JSON Schema requirements for schema format detailsJSON Schema draft specification for the JSON Schema version used by WebMCPwebmcp tool schema best practices for community guidanceThe inputSchema in a tool definition serves two purposes:
executeWebMCP uses standard JSON Schema. Each tool's inputSchema is a JSON Schema object:
inputSchema: {
type: "object",
properties: {
paramName: { type: "string", description: "What this parameter is" },
// ...more properties
},
required: ["paramName"]
}
| JSON Schema Type | Use For | Example |
|---|---|---|
string | Text, IDs, codes | Product ID, search query, coupon code |
number | Decimal values | Price, weight, rating |
integer | Whole numbers | Quantity, page number |
boolean | True/false flags | In-stock filter, gift wrap option |
array | Lists | Product IDs, selected categories |
object | Nested structures | Address, payment details |
Always add description to properties — agents use these to decide what values to provide:
properties: {
query: {
type: "string",
description: "Search keywords for product catalog"
},
maxPrice: {
type: "number",
description: "Maximum price in USD. Omit to search all prices."
}
}
Use JSON Schema constraints to guide agent input:
minLength / maxLength for stringsminimum / maximum for numbersenum for fixed value setspattern for regex validationminItems / maxItems for arraysdefault for optional parameters with defaultsProduct search:
{
type: "object",
properties: {
query: { type: "string", description: "Search keywords" },
category: { type: "string", enum: ["electronics", "clothing", "home"] },
maxPrice: { type: "number", minimum: 0 },
sortBy: { type: "string", enum: ["relevance", "price_asc", "price_desc", "rating"] }
},
required: ["query"]
}
Add to cart:
{
type: "object",
properties: {
productId: { type: "string", description: "Product identifier" },
quantity: { type: "integer", minimum: 1, maximum: 99, default: 1 },
variant: { type: "string", description: "Size, color, or variant ID" }
},
required: ["productId"]
}
Shipping address:
{
type: "object",
properties: {
street: { type: "string" },
city: { type: "string" },
state: { type: "string" },
zipCode: { type: "string", pattern: "^[0-9]{5}(-[0-9]{4})?$" },
country: { type: "string", enum: ["US", "CA", "UK"] }
},
required: ["street", "city", "state", "zipCode", "country"]
}
While WebMCP doesn't formally specify an output schema, tools should return predictable JSON:
status or success fieldtotal, page, pageSize)code and message for failuresdescriptionenum, minimum, maximum to prevent invalid inputsFetch the WebMCP spec for the exact JSON Schema version supported and any WebMCP-specific constraints before designing schemas.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
json-schema, webmcp, tool-schemas, agent-friendly, input-validation, schema-design
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin webmcp-browser-agents14 skills in this plugin
/webmcp-authenticationImplement WebMCP authentication patterns — browser session inheritance, cookie-based auth, role-gated tool registration, and conditional tool exposure. Use when managing which tools are available based on user authentication state./webmcp-commerce-toolsImplement commerce-specific WebMCP tools — product search, cart management, checkout, returns, subscriptions, and support. Use when building agentic shopping experiences on e-commerce websites./webmcp-context-providerImplement the WebMCP provideContext API — bulk tool registration, contextual metadata, page state sharing, and dynamic context updates. Use when providing rich context and multiple tools to agents simultaneously./webmcp-declarative-formsImplement the WebMCP Declarative API — annotate HTML forms with toolname and tooldescription attributes for automatic tool extraction. Use when making existing forms agent-ready with minimal code changes./webmcp-dev-patternsApply WebMCP cross-cutting development patterns — SPA routing, error handling, performance optimization, multi-site agents, accessibility, SEO, and production deployment. Use when architecting WebMCP-enabled sites or solving cross-cutting concerns./webmcp-mcp-bridgeIntegrate WebMCP client-side tools with backend MCP servers and UCP endpoints — bridge browser-based agent interactions with server-to-server protocols. Use when connecting front-end WebMCP to existing backend API infrastructure.Other plugins' skills for the same job