Definition Editor

Validation

✓ Valid

✓ All checks passed — definition is valid.

0 errors · 0 warnings · 0 info

Mock Execution

Fill required fields before execution: query

Integration Guidance

Use this definition directly in browser integrations. For production discovery, publish a manifest at /.well-known/webmcp.json.

navigator.modelContext?.registerTool?.({
  "name": "searchProducts",
  "description": "Search the product catalog by keyword, category, and result limit.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "query": {
        "type": "string",
        "description": "Search query string"
      },
      "limit": {
        "type": "number",
        "description": "Maximum number of results to return"
      },
      "category": {
        "type": "string",
        "description": "Product category filter",
        "enum": [
          "electronics",
          "books",
          "clothing",
          "home"
        ]
      }
    },
    "required": [
      "query"
    ]
  }
});
Need to build tool schemas visually?AI Tool Schema Builder →
Browse MCP servers for AI tool integration?MCP Server Directory →