PolyAPI · Capability

PolyAPI Platform API

PolyAPI is a modern enterprise middleware platform that provides a unified REST API for managing cloud service resources including functions, variables, webhooks, triggers, jobs, schemas, and environments. Built using AI and Kubernetes-native technology, it accelerates development and simplifies the operation of integrations, orchestrations, and microservices.

Run with Naftiko PolyapiAPI

What You Can Do

GET
Listapifunctions — PolyAPI List API functions
/functions/api
POST
Createapifunction — PolyAPI Create an API function
/functions/api
GET
Getapifunction — PolyAPI Get an API function
/functions/api/{functionId}
PATCH
Updateapifunction — PolyAPI Update an API function
/functions/api/{functionId}
DELETE
Deleteapifunction — PolyAPI Delete an API function
/functions/api/{functionId}
POST
Executeapifunction — PolyAPI Execute an API function
/functions/api/{functionId}/execute
GET
Listserverfunctions — PolyAPI List server functions
/functions/server
POST
Createserverfunction — PolyAPI Create a server function
/functions/server
GET
Getserverfunction — PolyAPI Get a server function
/functions/server/{functionId}
PATCH
Updateserverfunction — PolyAPI Update a server function
/functions/server/{functionId}
DELETE
Deleteserverfunction — PolyAPI Delete a server function
/functions/server/{functionId}
POST
Executeserverfunction — PolyAPI Execute a server function
/functions/server/{functionId}/execute
GET
Listclientfunctions — PolyAPI List client functions
/functions/client
POST
Createclientfunction — PolyAPI Create a client function
/functions/client
GET
Getclientfunction — PolyAPI Get a client function
/functions/client/{functionId}
PATCH
Updateclientfunction — PolyAPI Update a client function
/functions/client/{functionId}
DELETE
Deleteclientfunction — PolyAPI Delete a client function
/functions/client/{functionId}
GET
Listwebhooks — PolyAPI List webhooks
/webhooks
POST
Createwebhook — PolyAPI Create a webhook
/webhooks
GET
Getwebhook — PolyAPI Get a webhook
/webhooks/{webhookId}
PATCH
Updatewebhook — PolyAPI Update a webhook
/webhooks/{webhookId}
DELETE
Deletewebhook — PolyAPI Delete a webhook
/webhooks/{webhookId}
POST
Triggerwebhook — PolyAPI Trigger a webhook
/webhooks/{webhookId}/trigger
GET
Listvariables — PolyAPI List variables
/variables
POST
Createvariable — PolyAPI Create a variable
/variables
GET
Getvariable — PolyAPI Get a variable
/variables/{variableId}
PATCH
Updatevariable — PolyAPI Update a variable
/variables/{variableId}
DELETE
Deletevariable — PolyAPI Delete a variable
/variables/{variableId}
GET
Listtriggers — PolyAPI List triggers
/triggers
POST
Createtrigger — PolyAPI Create a trigger
/triggers
GET
Gettrigger — PolyAPI Get a trigger
/triggers/{triggerId}
PATCH
Updatetrigger — PolyAPI Update a trigger
/triggers/{triggerId}
DELETE
Deletetrigger — PolyAPI Delete a trigger
/triggers/{triggerId}
GET
Listjobs — PolyAPI List jobs
/jobs
POST
Createjob — PolyAPI Create a job
/jobs
GET
Getjob — PolyAPI Get a job
/jobs/{jobId}
PATCH
Updatejob — PolyAPI Update a job
/jobs/{jobId}
DELETE
Deletejob — PolyAPI Delete a job
/jobs/{jobId}
GET
Listschemas — PolyAPI List schemas
/schemas
POST
Createschema — PolyAPI Create a schema
/schemas
GET
Getschema — PolyAPI Get a schema
/schemas/{schemaId}
PATCH
Updateschema — PolyAPI Update a schema
/schemas/{schemaId}
DELETE
Deleteschema — PolyAPI Delete a schema
/schemas/{schemaId}
GET
Listenvironments — PolyAPI List environments
/environments
GET
Getenvironment — PolyAPI Get an environment
/environments/{environmentId}
GET
Listconversations — PolyAPI List conversations
/assistants/{slug}/conversations
POST
Createconversation — PolyAPI Create a conversation
/assistants/{slug}/conversations
GET
Getconversation — PolyAPI Get a conversation
/assistants/{slug}/conversations/{conversationSlug}
DELETE
Deleteconversation — PolyAPI Delete a conversation
/assistants/{slug}/conversations/{conversationSlug}

MCP Tools

listapifunctions

PolyAPI List API functions

read-only idempotent
createapifunction

PolyAPI Create an API function

getapifunction

PolyAPI Get an API function

read-only idempotent
updateapifunction

PolyAPI Update an API function

deleteapifunction

PolyAPI Delete an API function

idempotent
executeapifunction

PolyAPI Execute an API function

listserverfunctions

PolyAPI List server functions

read-only idempotent
createserverfunction

PolyAPI Create a server function

getserverfunction

PolyAPI Get a server function

read-only idempotent
updateserverfunction

PolyAPI Update a server function

deleteserverfunction

PolyAPI Delete a server function

idempotent
executeserverfunction

PolyAPI Execute a server function

listclientfunctions

PolyAPI List client functions

read-only idempotent
createclientfunction

PolyAPI Create a client function

getclientfunction

PolyAPI Get a client function

read-only idempotent
updateclientfunction

PolyAPI Update a client function

deleteclientfunction

PolyAPI Delete a client function

idempotent
listwebhooks

PolyAPI List webhooks

read-only idempotent
createwebhook

PolyAPI Create a webhook

getwebhook

PolyAPI Get a webhook

read-only idempotent
updatewebhook

PolyAPI Update a webhook

deletewebhook

PolyAPI Delete a webhook

idempotent
triggerwebhook

PolyAPI Trigger a webhook

listvariables

PolyAPI List variables

read-only idempotent
createvariable

PolyAPI Create a variable

getvariable

PolyAPI Get a variable

read-only idempotent
updatevariable

PolyAPI Update a variable

deletevariable

PolyAPI Delete a variable

idempotent
listtriggers

PolyAPI List triggers

read-only idempotent
createtrigger

PolyAPI Create a trigger

gettrigger

PolyAPI Get a trigger

read-only idempotent
updatetrigger

PolyAPI Update a trigger

deletetrigger

PolyAPI Delete a trigger

idempotent
listjobs

PolyAPI List jobs

read-only idempotent
createjob

PolyAPI Create a job

getjob

PolyAPI Get a job

read-only idempotent
updatejob

PolyAPI Update a job

deletejob

PolyAPI Delete a job

idempotent
listschemas

PolyAPI List schemas

read-only idempotent
createschema

PolyAPI Create a schema

getschema

PolyAPI Get a schema

read-only idempotent
updateschema

PolyAPI Update a schema

deleteschema

PolyAPI Delete a schema

idempotent
listenvironments

PolyAPI List environments

read-only idempotent
getenvironment

PolyAPI Get an environment

read-only idempotent
listconversations

PolyAPI List conversations

read-only idempotent
createconversation

PolyAPI Create a conversation

getconversation

PolyAPI Get a conversation

read-only idempotent
deleteconversation

PolyAPI Delete a conversation

idempotent

Capability Spec

polyapi-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PolyAPI Platform API
  description: PolyAPI is a modern enterprise middleware platform that provides a unified REST API for managing cloud service
    resources including functions, variables, webhooks, triggers, jobs, schemas, and environments. Built using AI and Kubernetes-native
    technology, it accelerates development and simplifies the operation of integrations, orchestrations, and microservices.
  tags:
  - Polyapi
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: polyapi
    baseUri: https://na1.polyapi.io
    description: PolyAPI Platform API HTTP API.
    authentication:
      type: bearer
      token: '{{POLYAPI_TOKEN}}'
    resources:
    - name: functions-api
      path: /functions/api
      operations:
      - name: listapifunctions
        method: GET
        description: PolyAPI List API functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapifunction
        method: POST
        description: PolyAPI Create an API function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-api-functionid
      path: /functions/api/{functionId}
      operations:
      - name: getapifunction
        method: GET
        description: PolyAPI Get an API function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapifunction
        method: PATCH
        description: PolyAPI Update an API function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteapifunction
        method: DELETE
        description: PolyAPI Delete an API function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-api-functionid-execute
      path: /functions/api/{functionId}/execute
      operations:
      - name: executeapifunction
        method: POST
        description: PolyAPI Execute an API function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-server
      path: /functions/server
      operations:
      - name: listserverfunctions
        method: GET
        description: PolyAPI List server functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createserverfunction
        method: POST
        description: PolyAPI Create a server function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-server-functionid
      path: /functions/server/{functionId}
      operations:
      - name: getserverfunction
        method: GET
        description: PolyAPI Get a server function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateserverfunction
        method: PATCH
        description: PolyAPI Update a server function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteserverfunction
        method: DELETE
        description: PolyAPI Delete a server function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-server-functionid-execute
      path: /functions/server/{functionId}/execute
      operations:
      - name: executeserverfunction
        method: POST
        description: PolyAPI Execute a server function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-client
      path: /functions/client
      operations:
      - name: listclientfunctions
        method: GET
        description: PolyAPI List client functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createclientfunction
        method: POST
        description: PolyAPI Create a client function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: functions-client-functionid
      path: /functions/client/{functionId}
      operations:
      - name: getclientfunction
        method: GET
        description: PolyAPI Get a client function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateclientfunction
        method: PATCH
        description: PolyAPI Update a client function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteclientfunction
        method: DELETE
        description: PolyAPI Delete a client function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: webhooks
      path: /webhooks
      operations:
      - name: listwebhooks
        method: GET
        description: PolyAPI List webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhook
        method: POST
        description: PolyAPI Create a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: webhooks-webhookid
      path: /webhooks/{webhookId}
      operations:
      - name: getwebhook
        method: GET
        description: PolyAPI Get a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatewebhook
        method: PATCH
        description: PolyAPI Update a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletewebhook
        method: DELETE
        description: PolyAPI Delete a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: webhooks-webhookid-trigger
      path: /webhooks/{webhookId}/trigger
      operations:
      - name: triggerwebhook
        method: POST
        description: PolyAPI Trigger a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: variables
      path: /variables
      operations:
      - name: listvariables
        method: GET
        description: PolyAPI List variables
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createvariable
        method: POST
        description: PolyAPI Create a variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: variables-variableid
      path: /variables/{variableId}
      operations:
      - name: getvariable
        method: GET
        description: PolyAPI Get a variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatevariable
        method: PATCH
        description: PolyAPI Update a variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletevariable
        method: DELETE
        description: PolyAPI Delete a variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: triggers
      path: /triggers
      operations:
      - name: listtriggers
        method: GET
        description: PolyAPI List triggers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtrigger
        method: POST
        description: PolyAPI Create a trigger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: triggers-triggerid
      path: /triggers/{triggerId}
      operations:
      - name: gettrigger
        method: GET
        description: PolyAPI Get a trigger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatetrigger
        method: PATCH
        description: PolyAPI Update a trigger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletetrigger
        method: DELETE
        description: PolyAPI Delete a trigger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: jobs
      path: /jobs
      operations:
      - name: listjobs
        method: GET
        description: PolyAPI List jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createjob
        method: POST
        description: PolyAPI Create a job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: jobs-jobid
      path: /jobs/{jobId}
      operations:
      - name: getjob
        method: GET
        description: PolyAPI Get a job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatejob
        method: PATCH
        description: PolyAPI Update a job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletejob
        method: DELETE
        description: PolyAPI Delete a job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: schemas
      path: /schemas
      operations:
      - name: listschemas
        method: GET
        description: PolyAPI List schemas
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createschema
        method: POST
        description: PolyAPI Create a schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: schemas-schemaid
      path: /schemas/{schemaId}
      operations:
      - name: getschema
        method: GET
        description: PolyAPI Get a schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateschema
        method: PATCH
        description: PolyAPI Update a schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteschema
        method: DELETE
        description: PolyAPI Delete a schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environments
      path: /environments
      operations:
      - name: listenvironments
        method: GET
        description: PolyAPI List environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environments-environmentid
      path: /environments/{environmentId}
      operations:
      - name: getenvironment
        method: GET
        description: PolyAPI Get an environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: assistants-slug-conversations
      path: /assistants/{slug}/conversations
      operations:
      - name: listconversations
        method: GET
        description: PolyAPI List conversations
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
          description: The assistant slug identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createconversation
        method: POST
        description: PolyAPI Create a conversation
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
          description: The assistant slug identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: assistants-slug-conversations-conversationslug
      path: /assistants/{slug}/conversations/{conversationSlug}
      operations:
      - name: getconversation
        method: GET
        description: PolyAPI Get a conversation
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
          description: The assistant slug identifier.
        - name: conversationSlug
          in: path
          type: string
          required: true
          description: The conversation slug identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteconversation
        method: DELETE
        description: PolyAPI Delete a conversation
        inputParameters:
        - name: slug
          in: path
          type: string
          required: true
          description: The assistant slug identifier.
        - name: conversationSlug
          in: path
          type: string
          required: true
          description: The conversation slug identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    port: 8080
    namespace: polyapi-rest
    description: REST adapter for PolyAPI Platform API.
    resources:
    - path: /functions/api
      name: listapifunctions
      operations:
      - method: GET
        name: listapifunctions
        description: PolyAPI List API functions
        call: polyapi.listapifunctions
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/api
      name: createapifunction
      operations:
      - method: POST
        name: createapifunction
        description: PolyAPI Create an API function
        call: polyapi.createapifunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/api/{functionId}
      name: getapifunction
      operations:
      - method: GET
        name: getapifunction
        description: PolyAPI Get an API function
        call: polyapi.getapifunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/api/{functionId}
      name: updateapifunction
      operations:
      - method: PATCH
        name: updateapifunction
        description: PolyAPI Update an API function
        call: polyapi.updateapifunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/api/{functionId}
      name: deleteapifunction
      operations:
      - method: DELETE
        name: deleteapifunction
        description: PolyAPI Delete an API function
        call: polyapi.deleteapifunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/api/{functionId}/execute
      name: executeapifunction
      operations:
      - method: POST
        name: executeapifunction
        description: PolyAPI Execute an API function
        call: polyapi.executeapifunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server
      name: listserverfunctions
      operations:
      - method: GET
        name: listserverfunctions
        description: PolyAPI List server functions
        call: polyapi.listserverfunctions
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server
      name: createserverfunction
      operations:
      - method: POST
        name: createserverfunction
        description: PolyAPI Create a server function
        call: polyapi.createserverfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server/{functionId}
      name: getserverfunction
      operations:
      - method: GET
        name: getserverfunction
        description: PolyAPI Get a server function
        call: polyapi.getserverfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server/{functionId}
      name: updateserverfunction
      operations:
      - method: PATCH
        name: updateserverfunction
        description: PolyAPI Update a server function
        call: polyapi.updateserverfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server/{functionId}
      name: deleteserverfunction
      operations:
      - method: DELETE
        name: deleteserverfunction
        description: PolyAPI Delete a server function
        call: polyapi.deleteserverfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/server/{functionId}/execute
      name: executeserverfunction
      operations:
      - method: POST
        name: executeserverfunction
        description: PolyAPI Execute a server function
        call: polyapi.executeserverfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/client
      name: listclientfunctions
      operations:
      - method: GET
        name: listclientfunctions
        description: PolyAPI List client functions
        call: polyapi.listclientfunctions
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/client
      name: createclientfunction
      operations:
      - method: POST
        name: createclientfunction
        description: PolyAPI Create a client function
        call: polyapi.createclientfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/client/{functionId}
      name: getclientfunction
      operations:
      - method: GET
        name: getclientfunction
        description: PolyAPI Get a client function
        call: polyapi.getclientfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/client/{functionId}
      name: updateclientfunction
      operations:
      - method: PATCH
        name: updateclientfunction
        description: PolyAPI Update a client function
        call: polyapi.updateclientfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /functions/client/{functionId}
      name: deleteclientfunction
      operations:
      - method: DELETE
        name: deleteclientfunction
        description: PolyAPI Delete a client function
        call: polyapi.deleteclientfunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks
      name: listwebhooks
      operations:
      - method: GET
        name: listwebhooks
        description: PolyAPI List webhooks
        call: polyapi.listwebhooks
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks
      name: createwebhook
      operations:
      - method: POST
        name: createwebhook
        description: PolyAPI Create a webhook
        call: polyapi.createwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks/{webhookId}
      name: getwebhook
      operations:
      - method: GET
        name: getwebhook
        description: PolyAPI Get a webhook
        call: polyapi.getwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks/{webhookId}
      name: updatewebhook
      operations:
      - method: PATCH
        name: updatewebhook
        description: PolyAPI Update a webhook
        call: polyapi.updatewebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks/{webhookId}
      name: deletewebhook
      operations:
      - method: DELETE
        name: deletewebhook
        description: PolyAPI Delete a webhook
        call: polyapi.deletewebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks/{webhookId}/trigger
      name: triggerwebhook
      operations:
      - method: POST
        name: triggerwebhook
        description: PolyAPI Trigger a webhook
        call: polyapi.triggerwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /variables
      name: listvariables
      operations:
      - method: GET
        name: listvariables
        description: PolyAPI List variables
        call: polyapi.listvariables
        outputParameters:
        - type: object
          mapping: $.
    - path: /variables
      name: createvariable
      operations:
      - method: POST
        name: createvariable
        description: PolyAPI Create a variable
        call: polyapi.createvariable
        outputParameters:
        - type: object
          mapping: $.
    - path: /variables/{variableId}
      name: getvariable
      operations:
      - method: GET
        name: getvariable
        description: PolyAPI Get a variable
        call: polyapi.getvariable
        outputParameters:
        - type: object
          mapping: $.
    - path: /variables/{variableId}
      name: updatevariable
      operations:
      - method: PATCH
        name: updatevariable
        description: PolyAPI Update a variable
        call: polyapi.updatevariable
        outputParameters:
        - type: object
          mapping: $.
    - path: /variables/{variableId}
      name: deletevariable
      operations:
      - method: DELETE
        name: deletevariable
        description: PolyAPI Delete a variable
        call: polyapi.deletevariable
        outputParameters:
        - type: object
          mapping: $.
    - path: /triggers
      name: listtriggers
      operations:
      - method: GET
        name: listtriggers
        description: PolyAPI List triggers
        call: polyapi.listtriggers
        outputParameters:
        - type: object
          mapping: $.
    - path: /triggers
      name: createtrigger
      operations:
      - method: POST
        name: createtrigger
        description: PolyAPI Create a trigger
        call: polyapi.createtrigger
        outputParameters:
        - type: object
          mapping: $.
    - path: /triggers/{triggerId}
      name: gettrigger
      operations:
      - method: GET
        name: gettrigger
        description: PolyAPI Get a trigger
        call: polyapi.gettrigger
        outputParameters:
        - type: object
          mapping: $.
    - path: /triggers/{triggerId}
      name: updatetrigger
      operations:
      - method: PATCH
        name: updatetrigger
        description: PolyAPI Update a trigger
        call: polyapi.updatetrigger
        outputParameters:
        - type: object
          mapping: $.
    - path: /triggers/{triggerId}
      name: deletetrigger
      operations:
      - method: DELETE
        name: deletetrigger
        description: PolyAPI Delete a trigger
        call: polyapi.deletetrigger
        outputParameters:
        - type: object
          mapping: $.
    - path: /jobs
      name: listjobs
      operations:
      - method: GET
        name: listjobs
        description: PolyAPI List jobs
        call: polyapi.listjobs
        outputParameters:
        - type: object
          mapping: $.
    - path: /jobs
      name: createjob
      operations:
      - method: POST
        name: createjob
        description: PolyAPI Create a job
        call: polyapi.createjob
        outputParameters:
        - type: object
          mapping: $.
    - path: /jobs/{jobId}
      name: getjob
      operations:
      - method: GET
        name: getjob
        description: PolyAPI Get a job
        call: polyapi.getjob
        outputParameters:
        - type: object
          mapping: $.
    - path: /jobs/{jobId}
      name: updatejob
      operations:
      - method: PATCH
        name: updatejob
        description: PolyAPI Update a job
        call: polyapi.updatejob
        outputParameters:
        - type: object
          mapping: $.
    - path: /jobs/{jobId}
      name: deletejob
      operations:
      - method: DELETE
        name: deletejob
        description: PolyAPI Delete a job
        call: polyapi.deletejob
        outputParameters:
        - type: object
          mapping: $.
    - path: /schemas
      name: listschemas
      operations:
      - method: GET
        name: listschemas
        description: PolyAPI List schemas
        call: polyapi.listschemas
        outputParameters:
        - type: object
          mapping: $.
    - path: /schemas
      name: createschema
      operations:
      - method: POST
        name: createschema
        description: PolyAPI Create a schema
        call: polyapi.createschema
        outputParameters:
        - type: object
          mapping: $.
    - path: /schemas/{schemaId}
      name: getschema
      operations:
      - method: GET
        name: getschema
        description: PolyAPI Get a schema
        call: polyapi.getschema
        outputParameters:
        - type: object
          mapping: $.
    - path: /schemas/{schemaId}
      name: updateschema
      operations:
      - method: PATCH
        name: updateschema
        description: PolyAPI Update a schema
        call: polyapi.updateschema
        outputParameters:
        - type: object
          mapping: $.
    - path: /schemas/{schemaId}
      name: deleteschema
      operations:
      - method: DELETE
        name: deleteschema
        description: PolyAPI Delete a schema
        call: polyapi.deleteschema
        outputParameters:
        - type: object
          mapping: $.
    - path: /environments
      name: listenvironments
      operations:
      - method: GET
        name: listenvironments
        description: PolyAPI List environments
        call: polyapi.listenvironments
        outputParameters:
        - type: object
          mapping: $.
    - path: /environments/{environmentId}
      name: getenvironment
      operations:
      - method: GET
        name: getenvironment
        description: PolyAPI Get an environment
        call: polyapi.getenvironment
        outputParameters:
        - type: object
          mapping: $.
    - path: /assistants/{slug}/conversations
      name: listconversations
      operations:
      - method: GET
        name: listconversations
        description: PolyAPI List conversations
        call: polyapi.listconversations
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /assistants/{slug}/conversations
      name: createconversation
      operations:
      - method: POST
        name: createconversation
        description: PolyAPI Create a conversation
        call: polyapi.createconversation
        with:
          slug: rest.slug
        outputParameters:
        - type: object
          mapping: $.
    - path: /assistants/{slug}/conversations/{conversationSlug}
      name: getconversation
      operations:
      - method: GET
        name: getconversation
        description: PolyAPI Get a conversation
        call: polyapi.getconversation
        with:
          slug: rest.slug
          conversationSlug: rest.conversationSlug
        outputParameters:
        - type: object
          mapping: $.
    - path: /assistants/{slug}/conversations/{conversationSlug}
      name: deleteconversation
      operations:
      - method: DELETE
        name: deleteconversation
        description: PolyAPI Delete a conversation
        call: polyapi.deleteconversation
        with:
          slug: rest.slug
          conversationSlug: rest.conversationSlug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    port: 9090
    namespace: polyapi-mcp
    transport: http
    description: MCP adapter for PolyAPI Platform API for AI agent use.
    tools:
    - name: listapifunctions
      description: PolyAPI List API functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polyapi.listapifunctions
      outputParameters:
      - type: object
        mapping: $.
    - name: createapifunction
      description: PolyAPI Create an API function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.createapifunction
      outputParameters:
      - type: object
        mapping: $.
    - name: getapifunction
      description: PolyAPI Get an API function
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polyapi.getapifunction
      outputParameters:
      - type: object
        mapping: $.
    - name: updateapifunction
      description: PolyAPI Update an API function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.updateapifunction
      outputParameters:
      - type: object
        mapping: $.
    - name: deleteapifunction
      description: PolyAPI Delete an API function
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: polyapi.deleteapifunction
      outputParameters:
      - type: object
        mapping: $.
    - name: executeapifunction
      description: PolyAPI Execute an API function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.executeapifunction
      outputParameters:
      - type: object
        mapping: $.
    - name: listserverfunctions
      description: PolyAPI List server functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polyapi.listserverfunctions
      outputParameters:
      - type: object
        mapping: $.
    - name: createserverfunction
      description: PolyAPI Create a server function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.createserverfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: getserverfunction
      description: PolyAPI Get a server function
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polyapi.getserverfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: updateserverfunction
      description: PolyAPI Update a server function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.updateserverfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: deleteserverfunction
      description: PolyAPI Delete a server function
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: polyapi.deleteserverfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: executeserverfunction
      description: PolyAPI Execute a server function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: polyapi.executeserverfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: listclientfunctions
      description: PolyAPI List client functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: polyapi.listclientfunctions
      outputParameters:
      - type: object
        mapping: $.
    - name: createclientfunction
      description: PolyAPI Create a client function
      hints:
        readOnly: false
        destruc

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/polyapi/refs/heads/main/capabilities/polyapi-capability.yaml