AgStack Foundation · Capability

AgStack Asset Registry API β€” Field Registration (POST)

AgStack Asset Registry API β€” Field Registration (POST). 4 operations. Lead operation: πŸ“‚ Bulk Register Field Boundaries (GeoJSON File). Self-contained Naftiko capability covering one Agstack business surface.

Run with Naftiko AgstackField Registration (POST)

What You Can Do

POST
Post — πŸ“‚ Bulk Register Field Boundaries (GeoJSON File)
/v1/register-field-boundaries-geojson
POST
Post — πŸ“ Register Field Boundary (WKT)
/v1/register-field-boundary
POST
Post — 🎯 Register a Point
/v1/register-point
POST
Post — πŸ“‚ Bulk Register Points (GeoJSON)
/v1/register-points-geojson

MCP Tools

bulk-register-field-boundaries-geojson

πŸ“‚ Bulk Register Field Boundaries (GeoJSON File)

register-field-boundary-wkt

πŸ“ Register Field Boundary (WKT)

register-point

🎯 Register a Point

bulk-register-points-geojson

πŸ“‚ Bulk Register Points (GeoJSON)

Capability Spec

asset-registry-field-registration-post.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AgStack Asset Registry API β€” Field Registration (POST)
  description: 'AgStack Asset Registry API β€” Field Registration (POST). 4 operations. Lead operation: πŸ“‚ Bulk Register Field
    Boundaries (GeoJSON File). Self-contained Naftiko capability covering one Agstack business surface.'
  tags:
  - Agstack
  - Field Registration (POST)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AGSTACK_API_KEY: AGSTACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: asset-registry-field-registration-post
    baseUri: https://api-ar.agstack.org
    description: AgStack Asset Registry API β€” Field Registration (POST) business capability. Self-contained, no shared references.
    resources:
    - name: register-field-boundaries-geojson
      path: /register-field-boundaries-geojson
      operations:
      - name: post
        method: POST
        description: πŸ“‚ Bulk Register Field Boundaries (GeoJSON File)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: register-field-boundary
      path: /register-field-boundary
      operations:
      - name: post
        method: POST
        description: πŸ“ Register Field Boundary (WKT)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: register-point
      path: /register-point
      operations:
      - name: post
        method: POST
        description: 🎯 Register a Point
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: register-points-geojson
      path: /register-points-geojson
      operations:
      - name: post
        method: POST
        description: πŸ“‚ Bulk Register Points (GeoJSON)
        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.AGSTACK_API_KEY}}'
  exposes:
  - type: rest
    namespace: asset-registry-field-registration-post-rest
    port: 8080
    description: REST adapter for AgStack Asset Registry API β€” Field Registration (POST). One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/register-field-boundaries-geojson
      name: register-field-boundaries-geojson
      description: REST surface for register-field-boundaries-geojson.
      operations:
      - method: POST
        name: post
        description: πŸ“‚ Bulk Register Field Boundaries (GeoJSON File)
        call: asset-registry-field-registration-post.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/register-field-boundary
      name: register-field-boundary
      description: REST surface for register-field-boundary.
      operations:
      - method: POST
        name: post
        description: πŸ“ Register Field Boundary (WKT)
        call: asset-registry-field-registration-post.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/register-point
      name: register-point
      description: REST surface for register-point.
      operations:
      - method: POST
        name: post
        description: 🎯 Register a Point
        call: asset-registry-field-registration-post.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/register-points-geojson
      name: register-points-geojson
      description: REST surface for register-points-geojson.
      operations:
      - method: POST
        name: post
        description: πŸ“‚ Bulk Register Points (GeoJSON)
        call: asset-registry-field-registration-post.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: asset-registry-field-registration-post-mcp
    port: 9090
    transport: http
    description: MCP adapter for AgStack Asset Registry API β€” Field Registration (POST). One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: bulk-register-field-boundaries-geojson
      description: πŸ“‚ Bulk Register Field Boundaries (GeoJSON File)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asset-registry-field-registration-post.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: register-field-boundary-wkt
      description: πŸ“ Register Field Boundary (WKT)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asset-registry-field-registration-post.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: register-point
      description: 🎯 Register a Point
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asset-registry-field-registration-post.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: bulk-register-points-geojson
      description: πŸ“‚ Bulk Register Points (GeoJSON)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asset-registry-field-registration-post.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.