Terrain Discovery Environment API — Metadata

Terrain Discovery Environment API — Metadata. 2 operations. Lead operation: Get File Metadata. Self-contained Naftiko capability covering one Terrain Discovery Environment Api business surface.

Run with Naftiko Terrain Discovery Environment ApiMetadata

What You Can Do

GET
Getfilemetadata — Get File Metadata
/v1/secured/filesystem/metadata
POST
Setfilemetadata — Set File Metadata
/v1/secured/filesystem/metadata

MCP Tools

get-file-metadata

Get File Metadata

read-only idempotent
set-file-metadata

Set File Metadata

Capability Spec

terrain-metadata.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Terrain Discovery Environment API — Metadata
  description: 'Terrain Discovery Environment API — Metadata. 2 operations. Lead operation: Get File Metadata. Self-contained
    Naftiko capability covering one Terrain Discovery Environment Api business surface.'
  tags:
  - Terrain Discovery Environment Api
  - Metadata
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY: TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: terrain-metadata
    baseUri: https://de.cyverse.org/terrain
    description: Terrain Discovery Environment API — Metadata business capability. Self-contained, no shared references.
    resources:
    - name: secured-filesystem-metadata
      path: /secured/filesystem/metadata
      operations:
      - name: getfilemetadata
        method: GET
        description: Get File Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: query
          type: string
          description: iRODS path of the object
          required: true
      - name: setfilemetadata
        method: POST
        description: Set File Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY}}'
  exposes:
  - type: rest
    namespace: terrain-metadata-rest
    port: 8080
    description: REST adapter for Terrain Discovery Environment API — Metadata. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/secured/filesystem/metadata
      name: secured-filesystem-metadata
      description: REST surface for secured-filesystem-metadata.
      operations:
      - method: GET
        name: getfilemetadata
        description: Get File Metadata
        call: terrain-metadata.getfilemetadata
        with:
          path: rest.path
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: setfilemetadata
        description: Set File Metadata
        call: terrain-metadata.setfilemetadata
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: terrain-metadata-mcp
    port: 9090
    transport: http
    description: MCP adapter for Terrain Discovery Environment API — Metadata. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-file-metadata
      description: Get File Metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: terrain-metadata.getfilemetadata
      with:
        path: tools.path
      outputParameters:
      - type: object
        mapping: $.
    - name: set-file-metadata
      description: Set File Metadata
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: terrain-metadata.setfilemetadata
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.