OpenMercantil · Capability

OpenMercantil Public API — Sources

OpenMercantil Public API — Sources. 4 operations. Lead operation: Get CNMV Records For Company. Self-contained Naftiko capability covering one Openmercantil business surface.

Run with Naftiko OpenmercantilSources

What You Can Do

GET
Getcompanycnmv — Get CNMV Records For Company
/v1/api/v1/company/{slug}/cnmv
GET
Getcompanygrants — List Company Grants From BDNS
/v1/api/v1/company/{slug}/grants
GET
Getcompanysanctions — List Company Sanctions
/v1/api/v1/company/{slug}/sanctions
GET
Getsourcesstatus — Get External Sources Status
/v1/api/v1/sources/status

MCP Tools

get-cnmv-records-company

Get CNMV Records For Company

read-only idempotent
list-company-grants-bdns

List Company Grants From BDNS

read-only idempotent
list-company-sanctions

List Company Sanctions

read-only idempotent
get-external-sources-status

Get External Sources Status

read-only idempotent

Capability Spec

openmercantil-sources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenMercantil Public API — Sources
  description: 'OpenMercantil Public API — Sources. 4 operations. Lead operation: Get CNMV Records For Company. Self-contained
    Naftiko capability covering one Openmercantil business surface.'
  tags:
  - Openmercantil
  - Sources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENMERCANTIL_API_KEY: OPENMERCANTIL_API_KEY
capability:
  consumes:
  - type: http
    namespace: openmercantil-sources
    baseUri: https://openmercantil.es
    description: OpenMercantil Public API — Sources business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-company-slug-cnmv
      path: /api/v1/company/{slug}/cnmv
      operations:
      - name: getcompanycnmv
        method: GET
        description: Get CNMV Records For Company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    - name: api-v1-company-slug-grants
      path: /api/v1/company/{slug}/grants
      operations:
      - name: getcompanygrants
        method: GET
        description: List Company Grants From BDNS
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    - name: api-v1-company-slug-sanctions
      path: /api/v1/company/{slug}/sanctions
      operations:
      - name: getcompanysanctions
        method: GET
        description: List Company Sanctions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
    - name: api-v1-sources-status
      path: /api/v1/sources/status
      operations:
      - name: getsourcesstatus
        method: GET
        description: Get External Sources Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: session
      value: '{{env.OPENMERCANTIL_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: openmercantil-sources-rest
    port: 8080
    description: REST adapter for OpenMercantil Public API — Sources. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/company/{slug}/cnmv
      name: api-v1-company-slug-cnmv
      description: REST surface for api-v1-company-slug-cnmv.
      operations:
      - method: GET
        name: getcompanycnmv
        description: Get CNMV Records For Company
        call: openmercantil-sources.getcompanycnmv
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/company/{slug}/grants
      name: api-v1-company-slug-grants
      description: REST surface for api-v1-company-slug-grants.
      operations:
      - method: GET
        name: getcompanygrants
        description: List Company Grants From BDNS
        call: openmercantil-sources.getcompanygrants
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/company/{slug}/sanctions
      name: api-v1-company-slug-sanctions
      description: REST surface for api-v1-company-slug-sanctions.
      operations:
      - method: GET
        name: getcompanysanctions
        description: List Company Sanctions
        call: openmercantil-sources.getcompanysanctions
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/sources/status
      name: api-v1-sources-status
      description: REST surface for api-v1-sources-status.
      operations:
      - method: GET
        name: getsourcesstatus
        description: Get External Sources Status
        call: openmercantil-sources.getsourcesstatus
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openmercantil-sources-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenMercantil Public API — Sources. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-cnmv-records-company
      description: Get CNMV Records For Company
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-sources.getcompanycnmv
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: list-company-grants-bdns
      description: List Company Grants From BDNS
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-sources.getcompanygrants
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: list-company-sanctions
      description: List Company Sanctions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-sources.getcompanysanctions
      with:
        slug: tools.slug
      outputParameters:
      - type: object
        mapping: $.
    - name: get-external-sources-status
      description: Get External Sources Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openmercantil-sources.getsourcesstatus
      outputParameters:
      - type: object
        mapping: $.