Gremlin · Capability

Gremlin API — failure-flags.flags

Gremlin API — failure-flags.flags. 4 operations. Lead operation: List Failure Flags by team.. Self-contained Naftiko capability covering one Gremlin business surface.

Run with Naftiko Gremlinfailure-flags.flags

What You Can Do

GET
Getfailureflagsforteam — List Failure Flags by team.
/v1/failure-flags/flags
GET
Getfailureflagforteamandname — Get Failure Flag by name.
/v1/failure-flags/flags/{name}
POST
Protectfailureflag — Protect Failure Flag by name and team.
/v1/failure-flags/flags/{name}/protect
POST
Unprotectfailureflag — Unprotect Failure Flag by name and team.
/v1/failure-flags/flags/{name}/unprotect

MCP Tools

list-failure-flags-team

List Failure Flags by team.

read-only idempotent
get-failure-flag-name

Get Failure Flag by name.

read-only idempotent
protect-failure-flag-name-and

Protect Failure Flag by name and team.

unprotect-failure-flag-name-and

Unprotect Failure Flag by name and team.

Capability Spec

gremlin-failure-flags-flags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gremlin API — failure-flags.flags
  description: 'Gremlin API — failure-flags.flags. 4 operations. Lead operation: List Failure Flags by team.. Self-contained
    Naftiko capability covering one Gremlin business surface.'
  tags:
  - Gremlin
  - failure-flags.flags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GREMLIN_API_KEY: GREMLIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: gremlin-failure-flags-flags
    baseUri: https://api.gremlin.com/v1
    description: Gremlin API — failure-flags.flags business capability. Self-contained, no shared references.
    resources:
    - name: failure-flags-flags
      path: /failure-flags/flags
      operations:
      - name: getfailureflagsforteam
        method: GET
        description: List Failure Flags by team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: teamId
          in: query
          type: string
          description: Required when using company session token.
          required: true
    - name: failure-flags-flags-name
      path: /failure-flags/flags/{name}
      operations:
      - name: getfailureflagforteamandname
        method: GET
        description: Get Failure Flag by name.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - name: teamId
          in: query
          type: string
          description: Required when using company session token.
          required: true
    - name: failure-flags-flags-name-protect
      path: /failure-flags/flags/{name}/protect
      operations:
      - name: protectfailureflag
        method: POST
        description: Protect Failure Flag by name and team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - name: teamId
          in: query
          type: string
          description: Required when using company session token.
          required: true
    - name: failure-flags-flags-name-unprotect
      path: /failure-flags/flags/{name}/unprotect
      operations:
      - name: unprotectfailureflag
        method: POST
        description: Unprotect Failure Flag by name and team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - name: teamId
          in: query
          type: string
          description: Required when using company session token.
          required: true
  exposes:
  - type: rest
    namespace: gremlin-failure-flags-flags-rest
    port: 8080
    description: REST adapter for Gremlin API — failure-flags.flags. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/failure-flags/flags
      name: failure-flags-flags
      description: REST surface for failure-flags-flags.
      operations:
      - method: GET
        name: getfailureflagsforteam
        description: List Failure Flags by team.
        call: gremlin-failure-flags-flags.getfailureflagsforteam
        with:
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/failure-flags/flags/{name}
      name: failure-flags-flags-name
      description: REST surface for failure-flags-flags-name.
      operations:
      - method: GET
        name: getfailureflagforteamandname
        description: Get Failure Flag by name.
        call: gremlin-failure-flags-flags.getfailureflagforteamandname
        with:
          name: rest.name
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/failure-flags/flags/{name}/protect
      name: failure-flags-flags-name-protect
      description: REST surface for failure-flags-flags-name-protect.
      operations:
      - method: POST
        name: protectfailureflag
        description: Protect Failure Flag by name and team.
        call: gremlin-failure-flags-flags.protectfailureflag
        with:
          name: rest.name
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/failure-flags/flags/{name}/unprotect
      name: failure-flags-flags-name-unprotect
      description: REST surface for failure-flags-flags-name-unprotect.
      operations:
      - method: POST
        name: unprotectfailureflag
        description: Unprotect Failure Flag by name and team.
        call: gremlin-failure-flags-flags.unprotectfailureflag
        with:
          name: rest.name
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gremlin-failure-flags-flags-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gremlin API — failure-flags.flags. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-failure-flags-team
      description: List Failure Flags by team.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gremlin-failure-flags-flags.getfailureflagsforteam
      with:
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: get-failure-flag-name
      description: Get Failure Flag by name.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gremlin-failure-flags-flags.getfailureflagforteamandname
      with:
        name: tools.name
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: protect-failure-flag-name-and
      description: Protect Failure Flag by name and team.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gremlin-failure-flags-flags.protectfailureflag
      with:
        name: tools.name
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: unprotect-failure-flag-name-and
      description: Unprotect Failure Flag by name and team.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gremlin-failure-flags-flags.unprotectfailureflag
      with:
        name: tools.name
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.