{
  "x402Version": 2,
  "id": 39519,
  "slug": "39519",
  "resource": "https://api.magentlab.com/api/calc/cpot",
  "description": "Gélinas 2006 CPOT from four caller-assigned 0-2 items (facial_expression, body_movements, muscle_tension, plus ventilator_compliance when intubated or vocalization when extubated) using that paper's 0/1/2 descriptors. magent sums only (max 8) and does not observe the patient. No later intensity cutoffs. Not a pain diagnosis or analgesic order. Not PAINAD.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "body_movements": 0,
                "facial_expression": 0,
                "intubated": false,
                "muscle_tension": 0,
                "ventilator_compliance": 0,
                "vocalization": 0
              },
              {
                "body_movements": 0,
                "facial_expression": 0,
                "intubated": false,
                "muscle_tension": 0,
                "ventilator_compliance": 0,
                "vocalization": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "body_movements": 0,
                "citation": {
                  "authors": "Gélinas C, Fillion L, Puntillo KA, Viens C, Fortier M",
                  "doi": "10.4037/ajcc2006.15.4.420",
                  "id": "gelinas-2006",
                  "pmid": "16823021",
                  "source": "Am J Crit Care. 2006;15(4):420-427",
                  "title": "Validation of the Critical-Care Pain Observation Tool in Adult Patients"
                },
                "components": [
                  {
                    "factor": "facial_expression",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "body_movements",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "muscle_tension",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "vocalization",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "facial_expression": 0,
                "formula": "cpot",
                "formula_expression": "CPOT = facial_expression + body_movements + muscle_tension + ventilator_compliance (intubated) or vocalization (extubated); each caller-assigned 0-2; max 8",
                "intubated": false,
                "max_score": 8,
                "muscle_tension": 0,
                "score": 0,
                "vocalization": 0
              },
              {
                "body_movements": 0,
                "citation": {
                  "authors": "Gélinas C, Fillion L, Puntillo KA, Viens C, Fortier M",
                  "doi": "10.4037/ajcc2006.15.4.420",
                  "id": "gelinas-2006",
                  "pmid": "16823021",
                  "source": "Am J Crit Care. 2006;15(4):420-427",
                  "title": "Validation of the Critical-Care Pain Observation Tool in Adult Patients"
                },
                "components": [
                  {
                    "factor": "facial_expression",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "body_movements",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "muscle_tension",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "vocalization",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "facial_expression": 0,
                "formula": "cpot",
                "formula_expression": "CPOT = facial_expression + body_movements + muscle_tension + ventilator_compliance (intubated) or vocalization (extubated); each caller-assigned 0-2; max 8",
                "intubated": false,
                "max_score": 8,
                "muscle_tension": 0,
                "score": 0,
                "vocalization": 0
              }
            ],
            "path": "/api/calc/cpot"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "body_movements": {
                          "description": "Caller-assigned Gélinas 2006 CPOT body movements (integer 0-2): 0 absence of movements or normal position; 1 protection; 2 restlessness. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "facial_expression": {
                          "description": "Caller-assigned Gélinas 2006 CPOT facial expression (integer 0-2): 0 relaxed, no muscle tension; 1 tense (brow lowering, orbit tightening, levator contraction); 2 grimacing. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "intubated": {
                          "description": "true when intubated: provide ventilator_compliance and omit vocalization. false when extubated: provide vocalization and omit ventilator_compliance. magent does not observe the patient.",
                          "type": "boolean"
                        },
                        "muscle_tension": {
                          "description": "Caller-assigned Gélinas 2006 CPOT muscle tension on passive flexion/extension of upper limbs (integer 0-2): 0 relaxed; 1 tense/rigid; 2 very tense or rigid. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "ventilator_compliance": {
                          "description": "Caller-assigned Gélinas 2006 CPOT ventilator compliance when intubated=true (integer 0-2): 0 tolerating ventilator or movement; 1 coughing but still tolerating; 2 fighting ventilator. Omit when intubated=false. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "vocalization": {
                          "description": "Caller-assigned Gélinas 2006 CPOT vocalization when intubated=false (integer 0-2): 0 talking in normal tone or no sound; 1 sighing, moaning; 2 crying out, sobbing. Omit when intubated=true. magent does not observe the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "facial_expression",
                        "body_movements",
                        "muscle_tension",
                        "intubated"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "cpot",
    "pain",
    "icu",
    "neurology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:51:37.731Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:51:37.573Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "body_movements": 0,
                  "facial_expression": 0,
                  "intubated": false,
                  "muscle_tension": 0,
                  "ventilator_compliance": 0,
                  "vocalization": 0
                },
                {
                  "body_movements": 0,
                  "facial_expression": 0,
                  "intubated": false,
                  "muscle_tension": 0,
                  "ventilator_compliance": 0,
                  "vocalization": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "body_movements": 0,
                  "citation": {
                    "authors": "Gélinas C, Fillion L, Puntillo KA, Viens C, Fortier M",
                    "doi": "10.4037/ajcc2006.15.4.420",
                    "id": "gelinas-2006",
                    "pmid": "16823021",
                    "source": "Am J Crit Care. 2006;15(4):420-427",
                    "title": "Validation of the Critical-Care Pain Observation Tool in Adult Patients"
                  },
                  "components": [
                    {
                      "factor": "facial_expression",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "body_movements",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "muscle_tension",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "vocalization",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "facial_expression": 0,
                  "formula": "cpot",
                  "formula_expression": "CPOT = facial_expression + body_movements + muscle_tension + ventilator_compliance (intubated) or vocalization (extubated); each caller-assigned 0-2; max 8",
                  "intubated": false,
                  "max_score": 8,
                  "muscle_tension": 0,
                  "score": 0,
                  "vocalization": 0
                },
                {
                  "body_movements": 0,
                  "citation": {
                    "authors": "Gélinas C, Fillion L, Puntillo KA, Viens C, Fortier M",
                    "doi": "10.4037/ajcc2006.15.4.420",
                    "id": "gelinas-2006",
                    "pmid": "16823021",
                    "source": "Am J Crit Care. 2006;15(4):420-427",
                    "title": "Validation of the Critical-Care Pain Observation Tool in Adult Patients"
                  },
                  "components": [
                    {
                      "factor": "facial_expression",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "body_movements",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "muscle_tension",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "vocalization",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "facial_expression": 0,
                  "formula": "cpot",
                  "formula_expression": "CPOT = facial_expression + body_movements + muscle_tension + ventilator_compliance (intubated) or vocalization (extubated); each caller-assigned 0-2; max 8",
                  "intubated": false,
                  "max_score": 8,
                  "muscle_tension": 0,
                  "score": 0,
                  "vocalization": 0
                }
              ],
              "path": "/api/calc/cpot"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "body_movements": {
                            "description": "Caller-assigned Gélinas 2006 CPOT body movements (integer 0-2): 0 absence of movements or normal position; 1 protection; 2 restlessness. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "facial_expression": {
                            "description": "Caller-assigned Gélinas 2006 CPOT facial expression (integer 0-2): 0 relaxed, no muscle tension; 1 tense (brow lowering, orbit tightening, levator contraction); 2 grimacing. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "intubated": {
                            "description": "true when intubated: provide ventilator_compliance and omit vocalization. false when extubated: provide vocalization and omit ventilator_compliance. magent does not observe the patient.",
                            "type": "boolean"
                          },
                          "muscle_tension": {
                            "description": "Caller-assigned Gélinas 2006 CPOT muscle tension on passive flexion/extension of upper limbs (integer 0-2): 0 relaxed; 1 tense/rigid; 2 very tense or rigid. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "ventilator_compliance": {
                            "description": "Caller-assigned Gélinas 2006 CPOT ventilator compliance when intubated=true (integer 0-2): 0 tolerating ventilator or movement; 1 coughing but still tolerating; 2 fighting ventilator. Omit when intubated=false. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "vocalization": {
                            "description": "Caller-assigned Gélinas 2006 CPOT vocalization when intubated=false (integer 0-2): 0 talking in normal tone or no sound; 1 sighing, moaning; 2 crying out, sobbing. Omit when intubated=true. magent does not observe the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "facial_expression",
                          "body_movements",
                          "muscle_tension",
                          "intubated"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}