SimScale · Capability

SimScale REST API — Geometry

SimScale REST API — Geometry. 3 operations. Lead operation: List Geometries. Self-contained Naftiko capability covering one Simscale business surface.

Run with Naftiko SimscaleGeometry

What You Can Do

GET
Listgeometries — List Geometries
/v1/v0/projects/{project-id}/geometries
POST
Importgeometry — Import Geometry
/v1/v0/projects/{project-id}/geometries
GET
Getgeometry — Get Geometry
/v1/v0/projects/{project-id}/geometries/{geometry-id}

MCP Tools

list-geometries

List Geometries

read-only idempotent
import-geometry

Import Geometry

get-geometry

Get Geometry

read-only idempotent

Capability Spec

simscale-geometry.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SimScale REST API — Geometry
  description: 'SimScale REST API — Geometry. 3 operations. Lead operation: List Geometries. Self-contained Naftiko capability
    covering one Simscale business surface.'
  tags:
  - Simscale
  - Geometry
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SIMSCALE_API_KEY: SIMSCALE_API_KEY
capability:
  consumes:
  - type: http
    namespace: simscale-geometry
    baseUri: https://api.simscale.com
    description: SimScale REST API — Geometry business capability. Self-contained, no shared references.
    resources:
    - name: v0-projects-project_id-geometries
      path: /v0/projects/{project_id}/geometries
      operations:
      - name: listgeometries
        method: GET
        description: List Geometries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: path
          type: string
          description: Unique project identifier
          required: true
      - name: importgeometry
        method: POST
        description: Import Geometry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: path
          type: string
          description: Unique project identifier
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v0-projects-project_id-geometries-geometry_id
      path: /v0/projects/{project_id}/geometries/{geometry_id}
      operations:
      - name: getgeometry
        method: GET
        description: Get Geometry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: path
          type: string
          required: true
        - name: geometry_id
          in: path
          type: string
          description: Unique geometry identifier
          required: true
    authentication:
      type: apikey
      key: X-API-KEY
      value: '{{env.SIMSCALE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: simscale-geometry-rest
    port: 8080
    description: REST adapter for SimScale REST API — Geometry. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v0/projects/{project-id}/geometries
      name: v0-projects-project-id-geometries
      description: REST surface for v0-projects-project_id-geometries.
      operations:
      - method: GET
        name: listgeometries
        description: List Geometries
        call: simscale-geometry.listgeometries
        with:
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: importgeometry
        description: Import Geometry
        call: simscale-geometry.importgeometry
        with:
          project_id: rest.project_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v0/projects/{project-id}/geometries/{geometry-id}
      name: v0-projects-project-id-geometries-geometry-id
      description: REST surface for v0-projects-project_id-geometries-geometry_id.
      operations:
      - method: GET
        name: getgeometry
        description: Get Geometry
        call: simscale-geometry.getgeometry
        with:
          project_id: rest.project_id
          geometry_id: rest.geometry_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: simscale-geometry-mcp
    port: 9090
    transport: http
    description: MCP adapter for SimScale REST API — Geometry. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-geometries
      description: List Geometries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: simscale-geometry.listgeometries
      with:
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.
    - name: import-geometry
      description: Import Geometry
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: simscale-geometry.importgeometry
      with:
        project_id: tools.project_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-geometry
      description: Get Geometry
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: simscale-geometry.getgeometry
      with:
        project_id: tools.project_id
        geometry_id: tools.geometry_id
      outputParameters:
      - type: object
        mapping: $.