Wolfram|Alpha · Capability

Wolfram|Alpha Simple API — Queries

Wolfram|Alpha Simple API — Queries. 1 operations. Lead operation: Wolfram|Alpha Get Simple Image Result. Self-contained Naftiko capability covering one Wolfram Alpha business surface.

Run with Naftiko Wolfram AlphaQueries

What You Can Do

GET
Querysimpleapi — Wolfram|Alpha Get Simple Image Result
/v1/simple

MCP Tools

wolfram-alpha-get-simple-image-result

Wolfram|Alpha Get Simple Image Result

read-only idempotent

Capability Spec

simple-queries.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wolfram|Alpha Simple API — Queries
  description: 'Wolfram|Alpha Simple API — Queries. 1 operations. Lead operation: Wolfram|Alpha Get Simple Image Result. Self-contained
    Naftiko capability covering one Wolfram Alpha business surface.'
  tags:
  - Wolfram Alpha
  - Queries
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WOLFRAM_ALPHA_API_KEY: WOLFRAM_ALPHA_API_KEY
capability:
  consumes:
  - type: http
    namespace: simple-queries
    baseUri: https://api.wolframalpha.com/v1
    description: Wolfram|Alpha Simple API — Queries business capability. Self-contained, no shared references.
    resources:
    - name: simple
      path: /simple
      operations:
      - name: querysimpleapi
        method: GET
        description: Wolfram|Alpha Get Simple Image Result
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appid
          in: query
          type: string
          description: Wolfram|Alpha AppID for authentication.
          required: true
        - name: i
          in: query
          type: string
          description: URL-encoded input query string.
          required: true
        - name: layout
          in: query
          type: string
          description: Content presentation style. Values are divider (default) or labelbar.
        - name: background
          in: query
          type: string
          description: Image background color as HTML color name, hex value, or RGB value.
        - name: foreground
          in: query
          type: string
          description: Text color. Values are black (default) or white.
        - name: fontsize
          in: query
          type: integer
          description: Font size in points for rendered text. Default is 14.
        - name: width
          in: query
          type: integer
          description: Image width in pixels. Default is 500.
        - name: units
          in: query
          type: string
          description: Measurement system preference. Values are metric or imperial.
        - name: timeout
          in: query
          type: integer
          description: Maximum processing time in seconds. Default is 5.
    authentication:
      type: apikey
      key: appid
      value: '{{env.WOLFRAM_ALPHA_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: simple-queries-rest
    port: 8080
    description: REST adapter for Wolfram|Alpha Simple API — Queries. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/simple
      name: simple
      description: REST surface for simple.
      operations:
      - method: GET
        name: querysimpleapi
        description: Wolfram|Alpha Get Simple Image Result
        call: simple-queries.querysimpleapi
        with:
          appid: rest.appid
          i: rest.i
          layout: rest.layout
          background: rest.background
          foreground: rest.foreground
          fontsize: rest.fontsize
          width: rest.width
          units: rest.units
          timeout: rest.timeout
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: simple-queries-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wolfram|Alpha Simple API — Queries. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: wolfram-alpha-get-simple-image-result
      description: Wolfram|Alpha Get Simple Image Result
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: simple-queries.querysimpleapi
      with:
        appid: tools.appid
        i: tools.i
        layout: tools.layout
        background: tools.background
        foreground: tools.foreground
        fontsize: tools.fontsize
        width: tools.width
        units: tools.units
        timeout: tools.timeout
      outputParameters:
      - type: object
        mapping: $.