Lunar Energy · Capability

Gridshare Partner API — Tariffs

Gridshare Partner API — Periodical and Dynamic Tariff management for retailer pricing programs.

Gridshare Partner API — Tariffs is a Naftiko capability published by Lunar Energy, one of 9 capabilities the APIs.io network indexes for this provider. It bundles 8 operations.

The capability includes 4 read-only operations and 4 state-changing operations. Lead operation: List Periodical Tariffs. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Lunar Energy, Gridshare, Partner, Tariffs, and Pricing.

Run with Naftiko Lunar EnergyGridsharePartnerTariffsPricing

MCP Tools

gridshare-partner-list-periodical-tariffs

List Periodical Tariffs

read-only idempotent
gridshare-partner-create-periodical-tariff

Create Periodical Tariff

gridshare-partner-get-periodical-tariff

Get Periodical Tariff

read-only idempotent
gridshare-partner-update-periodical-tariff

Update Periodical Tariff

idempotent
gridshare-partner-list-dynamic-tariffs

List Dynamic Tariffs

read-only idempotent
gridshare-partner-create-dynamic-tariff

Create Dynamic Tariff

gridshare-partner-get-dynamic-tariff

Get Dynamic Tariff

read-only idempotent
gridshare-partner-update-dynamic-tariff

Update Dynamic Tariff

idempotent

Capability Spec

gridshare-partner-tariffs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gridshare Partner API — Tariffs
  description: 'Gridshare Partner API — Periodical and Dynamic Tariff management for retailer pricing programs.'
  tags:
    - Lunar Energy
    - Gridshare
    - Partner
    - Tariffs
    - Pricing
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
  - namespace: env
    keys:
      GRIDSHARE_ACCESS_TOKEN: GRIDSHARE_ACCESS_TOKEN
capability:
  consumes:
    - type: http
      namespace: partner-tariffs
      baseUri: https://developer-api.partner.us.mygridshare.com
      description: Gridshare Partner Periodical and Dynamic Tariffs.
      resources:
        - name: periodicaltariffs
          path: /api/v1/periodicaltariffs
          operations:
            - name: listperiodicaltariffs
              method: GET
              description: List Periodical Tariffs
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
            - name: createperiodicaltariff
              method: POST
              description: Create Periodical Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
        - name: periodicaltariffs-tariffid
          path: /api/v1/periodicaltariffs/{tariffId}
          operations:
            - name: getperiodicaltariff
              method: GET
              description: Get Periodical Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
            - name: updateperiodicaltariff
              method: PATCH
              description: Update Periodical Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
        - name: dynamictariffs
          path: /api/v1/dynamictariffs
          operations:
            - name: listdynamictariffs
              method: GET
              description: List Dynamic Tariffs
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
            - name: createdynamictariff
              method: POST
              description: Create Dynamic Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
        - name: dynamictariffs-tariffid
          path: /api/v1/dynamictariffs/{tariffId}
          operations:
            - name: getdynamictariff
              method: GET
              description: Get Dynamic Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
            - name: updatedynamictariff
              method: PATCH
              description: Update Dynamic Tariff
              outputRawFormat: json
              outputParameters: [{ name: result, type: object, value: $. }]
      authentication:
        type: bearer
        value: '{{env.GRIDSHARE_ACCESS_TOKEN}}'
        placement: header
  exposes:
    - type: mcp
      namespace: partner-tariffs-mcp
      port: 9090
      transport: http
      description: MCP adapter for Gridshare Partner Tariffs.
      tools:
        - name: gridshare-partner-list-periodical-tariffs
          description: List Periodical Tariffs
          hints: { readOnly: true, destructive: false, idempotent: true }
          call: partner-tariffs.listperiodicaltariffs
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-create-periodical-tariff
          description: Create Periodical Tariff
          hints: { readOnly: false, destructive: false, idempotent: false }
          call: partner-tariffs.createperiodicaltariff
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-get-periodical-tariff
          description: Get Periodical Tariff
          hints: { readOnly: true, destructive: false, idempotent: true }
          call: partner-tariffs.getperiodicaltariff
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-update-periodical-tariff
          description: Update Periodical Tariff
          hints: { readOnly: false, destructive: true, idempotent: true }
          call: partner-tariffs.updateperiodicaltariff
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-list-dynamic-tariffs
          description: List Dynamic Tariffs
          hints: { readOnly: true, destructive: false, idempotent: true }
          call: partner-tariffs.listdynamictariffs
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-create-dynamic-tariff
          description: Create Dynamic Tariff
          hints: { readOnly: false, destructive: false, idempotent: false }
          call: partner-tariffs.createdynamictariff
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-get-dynamic-tariff
          description: Get Dynamic Tariff
          hints: { readOnly: true, destructive: false, idempotent: true }
          call: partner-tariffs.getdynamictariff
          outputParameters: [{ type: object, mapping: $. }]
        - name: gridshare-partner-update-dynamic-tariff
          description: Update Dynamic Tariff
          hints: { readOnly: false, destructive: true, idempotent: true }
          call: partner-tariffs.updatedynamictariff
          outputParameters: [{ type: object, mapping: $. }]