OpenMercantil · Capability

OpenMercantil Public API — Score

OpenMercantil Public API — Score. 3 operations. Lead operation: Get Company Activity Timeseries. Self-contained Naftiko capability covering one Openmercantil business surface.

Run with Naftiko OpenmercantilScore

What You Can Do

GET
Getcompanyactivity — Get Company Activity Timeseries
/v1/api/v1/company/{slug}/activity
GET
Getcompanyscore — Get Company Score
/v1/api/v1/company/{slug}/score
GET
Getcompanytrustscore — Get Company Trust Score
/v1/api/v1/company/{slug}/trust-score

MCP Tools

get-company-activity-timeseries

Get Company Activity Timeseries

read-only idempotent
get-company-score

Get Company Score

read-only idempotent
get-company-trust-score

Get Company Trust Score

read-only idempotent

Capability Spec

openmercantil-score.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenMercantil Public API — Score
  description: 'OpenMercantil Public API — Score. 3 operations. Lead operation: Get Company Activity Timeseries. Self-contained
    Naftiko capability covering one Openmercantil business surface.'
  tags:
  - Openmercantil
  - Score
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENMERCANTIL_API_KEY: OPENMERCANTIL_API_KEY
capability:
  consumes:
  - type: http
    namespace: openmercantil-score
    baseUri: https://openmercantil.es
    description: OpenMercantil Public API — Score business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-company-slug-activity
      path: /api/v1/company/{slug}/activity
      operations:
      - name: getcompanyactivity
        method: GET
        description: Get Company Activity Timeseries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    - name: api-v1-company-slug-score
      path: /api/v1/company/{slug}/score
      operations:
      - name: getcompanyscore
        method: GET
        description: Get Company Score
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    - name: api-v1-company-slug-trust-score
      path: /api/v1/company/{slug}/trust-score
      operations:
      - name: getcompanytrustscore
        method: GET
        description: Get Company Trust Score
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: session
      value: '{{env.OPENMERCANTIL_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: openmercantil-score-rest
    port: 8080
    description: REST adapter for OpenMercantil Public API — Score. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/company/{slug}/activity
      name: api-v1-company-slug-activity
      description: REST surface for api-v1-company-slug-activity.
      operations:
      - method: GET
        name: getcompanyactivity
        description: Get Company Activity Timeseries
        call: openmercantil-score.getcompanyactivity
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/company/{slug}/score
      name: api-v1-company-slug-score
      description: REST surface for api-v1-company-slug-score.
      operations:
      - method: GET
        name: getcompanyscore
        description: Get Company Score
        call: openmercantil-score.getcompanyscore
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/company/{slug}/trust-score
      name: api-v1-company-slug-trust-score
      description: REST surface for api-v1-company-slug-trust-score.
      operations:
      - method: GET
        name: getcompanytrustscore
        description: Get Company Trust Score
        call: openmercantil-score.getcompanytrustscore
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openmercantil-score-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenMercantil Public API — Score. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-company-activity-timeseries
      description: Get Company Activity Timeseries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-score.getcompanyactivity
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: get-company-score
      description: Get Company Score
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-score.getcompanyscore
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: get-company-trust-score
      description: Get Company Trust Score
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-score.getcompanytrustscore
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.