trello · Capability

Trello REST API — CustomFields

Trello REST API — CustomFields. 6 operations. Lead operation: Set a Custom Field Value on a Card. Self-contained Naftiko capability covering one Trello business surface.

Run with Naftiko TrelloCustomFields

What You Can Do

PUT
Updatecardcustomfielditem — Set a Custom Field Value on a Card
/v1/cards/{idcard}/customfield/{idcustomfield}/item
GET
Getcardcustomfielditems — Get Custom Field Items on a Card
/v1/cards/{id}/customfielditems
POST
Createcustomfield — Create a Custom Field Definition
/v1/customfields
GET
Getcustomfield — Get a Custom Field Definition
/v1/customfields/{id}
PUT
Updatecustomfield — Update a Custom Field Definition
/v1/customfields/{id}
DELETE
Deletecustomfield — Delete a Custom Field Definition
/v1/customfields/{id}

MCP Tools

set-custom-field-value-card

Set a Custom Field Value on a Card

idempotent
get-custom-field-items-card

Get Custom Field Items on a Card

read-only idempotent
create-custom-field-definition

Create a Custom Field Definition

get-custom-field-definition

Get a Custom Field Definition

read-only idempotent
update-custom-field-definition

Update a Custom Field Definition

idempotent
delete-custom-field-definition

Delete a Custom Field Definition

idempotent

Capability Spec

rest-customfields.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trello REST API — CustomFields
  description: 'Trello REST API — CustomFields. 6 operations. Lead operation: Set a Custom Field Value on a Card. Self-contained
    Naftiko capability covering one Trello business surface.'
  tags:
  - Trello
  - CustomFields
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRELLO_API_KEY: TRELLO_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-customfields
    baseUri: https://api.trello.com/1
    description: Trello REST API — CustomFields business capability. Self-contained, no shared references.
    resources:
    - name: cards-idCard-customField-idCustomField-item
      path: /cards/{idCard}/customField/{idCustomField}/item
      operations:
      - name: updatecardcustomfielditem
        method: PUT
        description: Set a Custom Field Value on a Card
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: idCard
          in: path
          type: string
          description: The ID of the card.
          required: true
        - name: idCustomField
          in: path
          type: string
          description: The ID of the custom field.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cards-id-customFieldItems
      path: /cards/{id}/customFieldItems
      operations:
      - name: getcardcustomfielditems
        method: GET
        description: Get Custom Field Items on a Card
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: customFields
      path: /customFields
      operations:
      - name: createcustomfield
        method: POST
        description: Create a Custom Field Definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: customFields-id
      path: /customFields/{id}
      operations:
      - name: getcustomfield
        method: GET
        description: Get a Custom Field Definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecustomfield
        method: PUT
        description: Update a Custom Field Definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletecustomfield
        method: DELETE
        description: Delete a Custom Field Definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: key
      value: '{{env.TRELLO_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: rest-customfields-rest
    port: 8080
    description: REST adapter for Trello REST API — CustomFields. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cards/{idcard}/customfield/{idcustomfield}/item
      name: cards-idcard-customfield-idcustomfield-item
      description: REST surface for cards-idCard-customField-idCustomField-item.
      operations:
      - method: PUT
        name: updatecardcustomfielditem
        description: Set a Custom Field Value on a Card
        call: rest-customfields.updatecardcustomfielditem
        with:
          idCard: rest.idCard
          idCustomField: rest.idCustomField
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cards/{id}/customfielditems
      name: cards-id-customfielditems
      description: REST surface for cards-id-customFieldItems.
      operations:
      - method: GET
        name: getcardcustomfielditems
        description: Get Custom Field Items on a Card
        call: rest-customfields.getcardcustomfielditems
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customfields
      name: customfields
      description: REST surface for customFields.
      operations:
      - method: POST
        name: createcustomfield
        description: Create a Custom Field Definition
        call: rest-customfields.createcustomfield
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customfields/{id}
      name: customfields-id
      description: REST surface for customFields-id.
      operations:
      - method: GET
        name: getcustomfield
        description: Get a Custom Field Definition
        call: rest-customfields.getcustomfield
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecustomfield
        description: Update a Custom Field Definition
        call: rest-customfields.updatecustomfield
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomfield
        description: Delete a Custom Field Definition
        call: rest-customfields.deletecustomfield
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-customfields-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trello REST API — CustomFields. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: set-custom-field-value-card
      description: Set a Custom Field Value on a Card
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-customfields.updatecardcustomfielditem
      with:
        idCard: tools.idCard
        idCustomField: tools.idCustomField
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-custom-field-items-card
      description: Get Custom Field Items on a Card
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-customfields.getcardcustomfielditems
      outputParameters:
      - type: object
        mapping: $.
    - name: create-custom-field-definition
      description: Create a Custom Field Definition
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-customfields.createcustomfield
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-custom-field-definition
      description: Get a Custom Field Definition
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-customfields.getcustomfield
      outputParameters:
      - type: object
        mapping: $.
    - name: update-custom-field-definition
      description: Update a Custom Field Definition
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-customfields.updatecustomfield
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-custom-field-definition
      description: Delete a Custom Field Definition
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-customfields.deletecustomfield
      outputParameters:
      - type: object
        mapping: $.