M3ter · Capability

m3ter API — CustomField

m3ter API — CustomField. 2 operations. Lead operation: Retrieve CustomField. Self-contained Naftiko capability covering one M3ter business surface.

Run with Naftiko M3terCustomField

What You Can Do

GET
Getcustomfield — Retrieve CustomField
/v1/organizations/{orgid}/customfields
PUT
Updatecustomfields — Update CustomFields
/v1/organizations/{orgid}/customfields

MCP Tools

retrieve-customfield

Retrieve CustomField

read-only idempotent
update-customfields

Update CustomFields

idempotent

Capability Spec

m3ter-customfield.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: m3ter API — CustomField
  description: 'm3ter API — CustomField. 2 operations. Lead operation: Retrieve CustomField. Self-contained Naftiko capability
    covering one M3ter business surface.'
  tags:
  - M3ter
  - CustomField
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    M3TER_API_KEY: M3TER_API_KEY
capability:
  consumes:
  - type: http
    namespace: m3ter-customfield
    baseUri: https://api.m3ter.com
    description: m3ter API — CustomField business capability. Self-contained, no shared references.
    resources:
    - name: organizations-orgId-customfields
      path: /organizations/{orgId}/customfields
      operations:
      - name: getcustomfield
        method: GET
        description: Retrieve CustomField
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter
            service.
          required: true
      - name: updatecustomfields
        method: PUT
        description: Update CustomFields
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: UUID of the Organization. The Organization represents your company as a direct customer of the m3ter
            service.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.M3TER_API_KEY}}'
  exposes:
  - type: rest
    namespace: m3ter-customfield-rest
    port: 8080
    description: REST adapter for m3ter API — CustomField. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations/{orgid}/customfields
      name: organizations-orgid-customfields
      description: REST surface for organizations-orgId-customfields.
      operations:
      - method: GET
        name: getcustomfield
        description: Retrieve CustomField
        call: m3ter-customfield.getcustomfield
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecustomfields
        description: Update CustomFields
        call: m3ter-customfield.updatecustomfields
        with:
          orgId: rest.orgId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: m3ter-customfield-mcp
    port: 9090
    transport: http
    description: MCP adapter for m3ter API — CustomField. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: retrieve-customfield
      description: Retrieve CustomField
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: m3ter-customfield.getcustomfield
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-customfields
      description: Update CustomFields
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: m3ter-customfield.updatecustomfields
      with:
        orgId: tools.orgId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.