naftiko: "1.0.0-alpha2" info: label: "Wordnik — Word Lists" description: >- Word Lists — word-list creation surface. 1 operation that creates a new word list owned by the authenticated user. Lead operation: create a new word list. Self-contained Naftiko capability covering one Wordnik business surface. tags: - Wordnik - Dictionary - Word Lists created: "2026-05-29" modified: "2026-05-29" binds: - namespace: env keys: WORDNIK_API_KEY: WORDNIK_API_KEY WORDNIK_AUTH_TOKEN: WORDNIK_AUTH_TOKEN capability: consumes: - type: http namespace: "wordnik-word-lists" baseUri: "https://api.wordnik.com/v4" description: "Wordnik — Word Lists business capability. Self-contained, no shared references." authentication: type: apikey key: api_key value: "{{env.WORDNIK_API_KEY}}" placement: query resources: - name: "word-lists" path: "/wordLists.json" operations: - name: "createWordList" method: POST description: "Create a new word list." inputParameters: - { name: auth_token, in: header, type: string, required: true, description: "Valid user auth token." } - { name: body, in: body, type: object, required: true, description: "WordList payload." } outputRawFormat: json outputParameters: - { name: result, type: object, value: "$." } exposes: - type: rest namespace: "wordnik-word-lists-rest" port: 8080 description: "REST adapter for Wordnik — Word Lists. One Spectral-compliant resource per consumed operation, prefixed with /v1." resources: - path: "/v1/word-lists" name: "word-lists" description: "REST surface for the word-lists collection." operations: - method: POST name: "createWordList" description: "Create a new word list." call: "wordnik-word-lists.createWordList" with: auth_token: "rest.auth_token" body: "rest.body" outputParameters: - { type: object, mapping: "$." } - type: mcp namespace: "wordnik-word-lists-mcp" port: 9090 transport: http description: "MCP adapter for Wordnik — Word Lists. One tool per consumed operation, routed inline through this capability's consumes block." tools: - name: "create-word-list" description: "Create a new word list." hints: { readOnly: false, destructive: false, idempotent: false } call: "wordnik-word-lists.createWordList" with: auth_token: "tools.auth_token" body: "tools.body" outputParameters: - { type: object, mapping: "$." }