{
  "x402Version": 2,
  "id": 39446,
  "slug": "39446",
  "resource": "https://api.magentlab.com/api/calc/flacc",
  "description": "Merkel 1997 FLACC from five caller-assigned 0-2 items (face, legs, activity, cry, consolability) using that paper's 0/1/2 descriptors. magent sums only (max 10) and does not observe the child. 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": [
              {
                "activity": 0,
                "consolability": 0,
                "cry": 0,
                "face": 0,
                "legs": 0
              },
              {
                "activity": 0,
                "consolability": 0,
                "cry": 0,
                "face": 0,
                "legs": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "activity": 0,
                "citation": {
                  "authors": "Merkel SI, Voepel-Lewis T, Shayevitz JR, Malviya S",
                  "id": "merkel-1997",
                  "pmid": "9220806",
                  "source": "Pediatr Nurs. 1997;23(3):293-297",
                  "title": "The FLACC: a behavioral scale for scoring postoperative pain in young children"
                },
                "components": [
                  {
                    "factor": "face",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "legs",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "activity",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "cry",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "consolability",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "consolability": 0,
                "cry": 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.",
                "face": 0,
                "formula": "flacc",
                "formula_expression": "FLACC = face + legs + activity + cry + consolability; each caller-assigned 0-2; max 10",
                "legs": 0,
                "max_score": 10,
                "score": 0
              },
              {
                "activity": 0,
                "citation": {
                  "authors": "Merkel SI, Voepel-Lewis T, Shayevitz JR, Malviya S",
                  "id": "merkel-1997",
                  "pmid": "9220806",
                  "source": "Pediatr Nurs. 1997;23(3):293-297",
                  "title": "The FLACC: a behavioral scale for scoring postoperative pain in young children"
                },
                "components": [
                  {
                    "factor": "face",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "legs",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "activity",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "cry",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "consolability",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "consolability": 0,
                "cry": 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.",
                "face": 0,
                "formula": "flacc",
                "formula_expression": "FLACC = face + legs + activity + cry + consolability; each caller-assigned 0-2; max 10",
                "legs": 0,
                "max_score": 10,
                "score": 0
              }
            ],
            "path": "/api/calc/flacc"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "activity": {
                          "description": "Caller-assigned Merkel 1997 FLACC activity (integer 0-2): 0 lying quietly, normal position, moves easily; 1 squirming, shifting back and forth, tense; 2 arched, rigid or jerking. magent does not observe the child.",
                          "type": "integer"
                        },
                        "consolability": {
                          "description": "Caller-assigned Merkel 1997 FLACC consolability (integer 0-2): 0 content and relaxed; 1 reassured by occasional touching, hugging or being talked to, distractible; 2 difficult to console or comfort. magent does not observe the child.",
                          "type": "integer"
                        },
                        "cry": {
                          "description": "Caller-assigned Merkel 1997 FLACC cry (integer 0-2): 0 no cry (awake or asleep); 1 moans or whimpers, occasional complaint; 2 crying steadily, screams or sobs, frequent complaints. magent does not observe the child.",
                          "type": "integer"
                        },
                        "face": {
                          "description": "Caller-assigned Merkel 1997 FLACC face (integer 0-2): 0 no particular expression or smile; 1 occasional grimace/frown, withdrawn or disinterested; 2 frequent/constant quivering chin, clenched jaw. magent does not observe the child.",
                          "type": "integer"
                        },
                        "legs": {
                          "description": "Caller-assigned Merkel 1997 FLACC legs (integer 0-2): 0 normal position or relaxed; 1 uneasy, restless, tense; 2 kicking or legs drawn up. magent does not observe the child.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "face",
                        "legs",
                        "activity",
                        "cry",
                        "consolability"
                      ],
                      "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": [
    "flacc",
    "pain",
    "pediatric",
    "neurology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:51:30.659Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:51:30.53Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "activity": 0,
                  "consolability": 0,
                  "cry": 0,
                  "face": 0,
                  "legs": 0
                },
                {
                  "activity": 0,
                  "consolability": 0,
                  "cry": 0,
                  "face": 0,
                  "legs": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "activity": 0,
                  "citation": {
                    "authors": "Merkel SI, Voepel-Lewis T, Shayevitz JR, Malviya S",
                    "id": "merkel-1997",
                    "pmid": "9220806",
                    "source": "Pediatr Nurs. 1997;23(3):293-297",
                    "title": "The FLACC: a behavioral scale for scoring postoperative pain in young children"
                  },
                  "components": [
                    {
                      "factor": "face",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "legs",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "activity",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "cry",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "consolability",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "consolability": 0,
                  "cry": 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.",
                  "face": 0,
                  "formula": "flacc",
                  "formula_expression": "FLACC = face + legs + activity + cry + consolability; each caller-assigned 0-2; max 10",
                  "legs": 0,
                  "max_score": 10,
                  "score": 0
                },
                {
                  "activity": 0,
                  "citation": {
                    "authors": "Merkel SI, Voepel-Lewis T, Shayevitz JR, Malviya S",
                    "id": "merkel-1997",
                    "pmid": "9220806",
                    "source": "Pediatr Nurs. 1997;23(3):293-297",
                    "title": "The FLACC: a behavioral scale for scoring postoperative pain in young children"
                  },
                  "components": [
                    {
                      "factor": "face",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "legs",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "activity",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "cry",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "consolability",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "consolability": 0,
                  "cry": 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.",
                  "face": 0,
                  "formula": "flacc",
                  "formula_expression": "FLACC = face + legs + activity + cry + consolability; each caller-assigned 0-2; max 10",
                  "legs": 0,
                  "max_score": 10,
                  "score": 0
                }
              ],
              "path": "/api/calc/flacc"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "activity": {
                            "description": "Caller-assigned Merkel 1997 FLACC activity (integer 0-2): 0 lying quietly, normal position, moves easily; 1 squirming, shifting back and forth, tense; 2 arched, rigid or jerking. magent does not observe the child.",
                            "type": "integer"
                          },
                          "consolability": {
                            "description": "Caller-assigned Merkel 1997 FLACC consolability (integer 0-2): 0 content and relaxed; 1 reassured by occasional touching, hugging or being talked to, distractible; 2 difficult to console or comfort. magent does not observe the child.",
                            "type": "integer"
                          },
                          "cry": {
                            "description": "Caller-assigned Merkel 1997 FLACC cry (integer 0-2): 0 no cry (awake or asleep); 1 moans or whimpers, occasional complaint; 2 crying steadily, screams or sobs, frequent complaints. magent does not observe the child.",
                            "type": "integer"
                          },
                          "face": {
                            "description": "Caller-assigned Merkel 1997 FLACC face (integer 0-2): 0 no particular expression or smile; 1 occasional grimace/frown, withdrawn or disinterested; 2 frequent/constant quivering chin, clenched jaw. magent does not observe the child.",
                            "type": "integer"
                          },
                          "legs": {
                            "description": "Caller-assigned Merkel 1997 FLACC legs (integer 0-2): 0 normal position or relaxed; 1 uneasy, restless, tense; 2 kicking or legs drawn up. magent does not observe the child.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "face",
                          "legs",
                          "activity",
                          "cry",
                          "consolability"
                        ],
                        "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"
  }
}