State Farm · Capability

State Farm Renters Insurance API — Policies

State Farm Renters Insurance API — Policies. 2 operations. Lead operation: Bind Renters Insurance Policy. Self-contained Naftiko capability covering one State Farm business surface.

Run with Naftiko State FarmPolicies

What You Can Do

POST
Createrenterspolicy — Bind Renters Insurance Policy
/v1/renters/policies
GET
Getrenterspolicy — Get Renters Insurance Policy
/v1/renters/policies/{policynumber}

MCP Tools

bind-renters-insurance-policy

Bind Renters Insurance Policy

get-renters-insurance-policy

Get Renters Insurance Policy

read-only idempotent

Capability Spec

renters-insurance-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: State Farm Renters Insurance API — Policies
  description: 'State Farm Renters Insurance API — Policies. 2 operations. Lead operation: Bind Renters Insurance Policy.
    Self-contained Naftiko capability covering one State Farm business surface.'
  tags:
  - State Farm
  - Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STATE_FARM_API_KEY: STATE_FARM_API_KEY
capability:
  consumes:
  - type: http
    namespace: renters-insurance-policies
    baseUri: https://api.statefarm.com/v1
    description: State Farm Renters Insurance API — Policies business capability. Self-contained, no shared references.
    resources:
    - name: renters-policies
      path: /renters/policies
      operations:
      - name: createrenterspolicy
        method: POST
        description: Bind Renters Insurance Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: renters-policies-policyNumber
      path: /renters/policies/{policyNumber}
      operations:
      - name: getrenterspolicy
        method: GET
        description: Get Renters Insurance Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyNumber
          in: path
          type: string
          description: State Farm policy number
          required: true
    authentication:
      type: bearer
      token: '{{env.STATE_FARM_API_KEY}}'
  exposes:
  - type: rest
    namespace: renters-insurance-policies-rest
    port: 8080
    description: REST adapter for State Farm Renters Insurance API — Policies. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/renters/policies
      name: renters-policies
      description: REST surface for renters-policies.
      operations:
      - method: POST
        name: createrenterspolicy
        description: Bind Renters Insurance Policy
        call: renters-insurance-policies.createrenterspolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/renters/policies/{policynumber}
      name: renters-policies-policynumber
      description: REST surface for renters-policies-policyNumber.
      operations:
      - method: GET
        name: getrenterspolicy
        description: Get Renters Insurance Policy
        call: renters-insurance-policies.getrenterspolicy
        with:
          policyNumber: rest.policyNumber
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: renters-insurance-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for State Farm Renters Insurance API — Policies. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: bind-renters-insurance-policy
      description: Bind Renters Insurance Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: renters-insurance-policies.createrenterspolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-renters-insurance-policy
      description: Get Renters Insurance Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: renters-insurance-policies.getrenterspolicy
      with:
        policyNumber: tools.policyNumber
      outputParameters:
      - type: object
        mapping: $.