TheMealDB · Capability

TheMealDB API — Lookup

TheMealDB API — Lookup. 2 operations. Lead operation: TheMealDB Lookup Meal Details by ID. Self-contained Naftiko capability covering one Themealdb business surface.

Run with Naftiko ThemealdbLookup

What You Can Do

GET
Lookupmealbyid — TheMealDB Lookup Meal Details by ID
/v1/lookup-php
GET
Getrandommeal — TheMealDB Get a Random Meal
/v1/random-php

MCP Tools

themealdb-lookup-meal-details-id

TheMealDB Lookup Meal Details by ID

read-only idempotent
themealdb-get-random-meal

TheMealDB Get a Random Meal

read-only idempotent

Capability Spec

themealdb-lookup.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TheMealDB API — Lookup
  description: 'TheMealDB API — Lookup. 2 operations. Lead operation: TheMealDB Lookup Meal Details by ID. Self-contained
    Naftiko capability covering one Themealdb business surface.'
  tags:
  - Themealdb
  - Lookup
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THEMEALDB_API_KEY: THEMEALDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: themealdb-lookup
    baseUri: https://www.themealdb.com/api/json/v1/1
    description: TheMealDB API — Lookup business capability. Self-contained, no shared references.
    resources:
    - name: lookup.php
      path: /lookup.php
      operations:
      - name: lookupmealbyid
        method: GET
        description: TheMealDB Lookup Meal Details by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: i
          in: query
          type: string
          description: Meal ID to look up
          required: true
    - name: random.php
      path: /random.php
      operations:
      - name: getrandommeal
        method: GET
        description: TheMealDB Get a Random Meal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: themealdb-lookup-rest
    port: 8080
    description: REST adapter for TheMealDB API — Lookup. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/lookup-php
      name: lookup-php
      description: REST surface for lookup.php.
      operations:
      - method: GET
        name: lookupmealbyid
        description: TheMealDB Lookup Meal Details by ID
        call: themealdb-lookup.lookupmealbyid
        with:
          i: rest.i
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/random-php
      name: random-php
      description: REST surface for random.php.
      operations:
      - method: GET
        name: getrandommeal
        description: TheMealDB Get a Random Meal
        call: themealdb-lookup.getrandommeal
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: themealdb-lookup-mcp
    port: 9090
    transport: http
    description: MCP adapter for TheMealDB API — Lookup. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: themealdb-lookup-meal-details-id
      description: TheMealDB Lookup Meal Details by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: themealdb-lookup.lookupmealbyid
      with:
        i: tools.i
      outputParameters:
      - type: object
        mapping: $.
    - name: themealdb-get-random-meal
      description: TheMealDB Get a Random Meal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: themealdb-lookup.getrandommeal
      outputParameters:
      - type: object
        mapping: $.