modelspec-dev · Schema

PolicyCheckResponse

AI Model SelectionCost Analysis

Properties

Name Type Description
build object
determinations object Which tier answered. undetermined_for_lack_of_entitlement is the whole free/paid difference, as a count, on every response.
endpoint string
export_origin string
page object
policy object The policy as parsed, which is the policy that was checked.
provenance object Every read date this answer rests on.
result array One row per (model, platform) pair. Branch on verdict: each row carries exactly one of passed, failed, undetermined.
schema_version string
service_commit string
summary object Always every row the request selects, whatever limit, offset and verdicts say.
View JSON Schema on GitHub

JSON Schema

modelspec-dev-policy-check-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modelspec-dev/json-schema/modelspec-dev-policy-check-response-schema.json",
  "title": "PolicyCheckResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modelspec-dev-openapi.yaml#/components/schemas/PolicyCheckResponse",
  "type": "object",
  "properties": {
    "build": {
      "type": "object",
      "properties": {
        "built_at": {
          "type": "string"
        },
        "commit": {
          "type": "string"
        },
        "eligibility_as_of": {
          "type": "string"
        },
        "export_schema_version": {
          "type": "string"
        }
      },
      "required": [
        "built_at",
        "commit",
        "eligibility_as_of",
        "export_schema_version"
      ]
    },
    "determinations": {
      "description": "Which tier answered. undetermined_for_lack_of_entitlement is the whole free/paid difference, as a count, on every response.",
      "type": "object",
      "properties": {
        "answered_from": {
          "type": "string"
        },
        "entitlement": {
          "description": "public_export (free: the public export only) or determinations (paid). Granted by the tier of a presented key: see x-modelspec-access.",
          "type": "string",
          "enum": [
            "public_export",
            "determinations"
          ]
        },
        "included": {
          "type": "boolean"
        },
        "store": {
          "type": "object",
          "properties": {
            "commercial_use_records": {
              "type": "integer"
            },
            "generated_on": {
              "type": [
                "string",
                "null"
              ]
            },
            "loaded": {
              "type": "boolean"
            },
            "residency_platforms": {
              "type": "integer"
            }
          },
          "required": [
            "commercial_use_records",
            "generated_on",
            "loaded",
            "residency_platforms"
          ]
        },
        "undetermined_for_lack_of_entitlement": {
          "type": "integer"
        },
        "why": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "answered_from",
        "entitlement",
        "included",
        "store",
        "undetermined_for_lack_of_entitlement",
        "why"
      ]
    },
    "endpoint": {
      "type": "string"
    },
    "export_origin": {
      "type": "string"
    },
    "page": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer"
        },
        "matching_rows": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "returned": {
          "type": "integer"
        },
        "truncated": {
          "type": "boolean"
        },
        "verdicts_shown": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "pass",
              "fail",
              "undetermined"
            ]
          }
        }
      },
      "required": [
        "limit",
        "matching_rows",
        "offset",
        "returned",
        "truncated",
        "verdicts_shown"
      ]
    },
    "policy": {
      "description": "The policy as parsed, which is the policy that was checked.",
      "type": "object",
      "properties": {
        "constraints": {
          "type": "object",
          "properties": {
            "commercial_use": {
              "type": "object",
              "properties": {
                "accept_restricted": {
                  "type": "boolean"
                },
                "required": {
                  "type": "boolean"
                }
              },
              "required": [
                "accept_restricted",
                "required"
              ]
            },
            "licence": {
              "type": "object",
              "properties": {
                "allowed": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "prohibited": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "allowed",
                "prohibited"
              ]
            },
            "origin": {
              "type": "object",
              "properties": {
                "permitted_countries": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "prohibited_countries": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "permitted_countries",
                "prohibited_countries"
              ]
            },
            "residency": {
              "type": "object",
              "required": [
                "match",
                "required_regions"
              ],
              "properties": {
                "match": {
                  "type": "string"
                },
                "required_regions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "require_no_undetermined": {
          "type": "boolean"
        }
      },
      "required": [
        "constraints",
        "name",
        "require_no_undetermined"
      ]
    },
    "provenance": {
      "description": "Every read date this answer rests on.",
      "type": "object",
      "properties": {
        "determination_read_dates": {
          "type": "object",
          "properties": {
            "commercial_use": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "residency": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "determinations_generated_on": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "determination_read_dates",
        "determinations_generated_on"
      ]
    },
    "result": {
      "description": "One row per (model, platform) pair. Branch on verdict: each row carries exactly one of passed, failed, undetermined.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PolicyRow"
      }
    },
    "schema_version": {
      "type": "string"
    },
    "service_commit": {
      "type": "string"
    },
    "summary": {
      "description": "Always every row the request selects, whatever limit, offset and verdicts say.",
      "type": "object",
      "properties": {
        "by_constraint": {
          "type": "object",
          "properties": {
            "commercial_use": {
              "type": "object",
              "properties": {
                "satisfied": {
                  "type": "integer"
                },
                "undetermined": {
                  "type": "integer"
                },
                "violated": {
                  "type": "integer"
                }
              },
              "required": [
                "satisfied",
                "undetermined",
                "violated"
              ]
            },
            "licence": {
              "type": "object",
              "properties": {
                "satisfied": {
                  "type": "integer"
                },
                "undetermined": {
                  "type": "integer"
                },
                "violated": {
                  "type": "integer"
                }
              },
              "required": [
                "satisfied",
                "undetermined",
                "violated"
              ]
            },
            "origin": {
              "type": "object",
              "properties": {
                "satisfied": {
                  "type": "integer"
                },
                "undetermined": {
                  "type": "integer"
                },
                "violated": {
                  "type": "integer"
                }
              },
              "required": [
                "satisfied",
                "undetermined",
                "violated"
              ]
            },
            "residency": {
              "type": "object",
              "properties": {
                "satisfied": {
                  "type": "integer"
                },
                "undetermined": {
                  "type": "integer"
                },
                "violated": {
                  "type": "integer"
                }
              },
              "required": [
                "satisfied",
                "undetermined",
                "violated"
              ]
            }
          }
        },
        "models_checked": {
          "type": "integer"
        },
        "models_undetermined_somewhere": {
          "type": "integer"
        },
        "models_with_a_passing_platform": {
          "description": "Counted over models, not rows: passes somewhere, not everywhere.",
          "type": "integer"
        },
        "rows": {
          "type": "integer"
        },
        "verdicts": {
          "type": "object",
          "properties": {
            "fail": {
              "type": "integer"
            },
            "pass": {
              "type": "integer"
            },
            "undetermined": {
              "type": "integer"
            }
          },
          "required": [
            "fail",
            "pass",
            "undetermined"
          ]
        }
      },
      "required": [
        "by_constraint",
        "models_checked",
        "models_undetermined_somewhere",
        "models_with_a_passing_platform",
        "rows",
        "verdicts"
      ]
    }
  },
  "required": [
    "build",
    "determinations",
    "endpoint",
    "export_origin",
    "page",
    "policy",
    "provenance",
    "result",
    "schema_version",
    "service_commit",
    "summary"
  ],
  "$defs": {
    "FailRow": {
      "type": "object",
      "properties": {
        "checks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PolicyCheck"
          }
        },
        "display_name": {
          "type": "string"
        },
        "failed": {
          "type": "object",
          "properties": {
            "also_undetermined": {
              "description": "Constraints still unknown on this row. They stay unknown if you relax the one that eliminated it.",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "also_violated": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "constraint": {
              "type": "string",
              "enum": [
                "licence",
                "origin",
                "commercial_use",
                "residency"
              ]
            },
            "eliminated_by": {
              "$ref": "#/$defs/ViolatedCheck"
            }
          },
          "required": [
            "also_undetermined",
            "also_violated",
            "constraint",
            "eliminated_by"
          ]
        },
        "model_id": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "fail"
          ]
        }
      },
      "required": [
        "checks",
        "display_name",
        "failed",
        "model_id",
        "platform",
        "provider",
        "verdict"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "passed"
            ]
          },
          {
            "required": [
              "undetermined"
            ]
          }
        ]
      }
    },
    "PassRow": {
      "type": "object",
      "properties": {
        "checks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PolicyCheck"
          }
        },
        "display_name": {
          "type": "string"
        },
        "model_id": {
          "type": "string"
        },
        "passed": {
          "type": "object",
          "properties": {
            "conditions": {
              "description": "The condition text of every conditional grant. A pass with conditions is not a bare yes.",
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "constraint",
                  "source",
                  "text"
                ],
                "properties": {
                  "constraint": {
                    "type": "string"
                  },
                  "source": {
                    "type": "object",
                    "required": [
                      "kind",
                      "quote",
                      "read_on",
                      "url"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "quote": {
                        "type": "string"
                      },
                      "read_on": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  "text": {
                    "type": "string"
                  }
                }
              }
            },
            "constraints": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "conditions",
            "constraints"
          ]
        },
        "platform": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "pass"
          ]
        }
      },
      "required": [
        "checks",
        "display_name",
        "model_id",
        "passed",
        "platform",
        "provider",
        "verdict"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "failed"
            ]
          },
          {
            "required": [
              "undetermined"
            ]
          }
        ]
      }
    },
    "PolicyCheck": {
      "oneOf": [
        {
          "$ref": "#/$defs/SatisfiedCheck"
        },
        {
          "$ref": "#/$defs/ViolatedCheck"
        },
        {
          "$ref": "#/$defs/UndeterminedCheck"
        }
      ]
    },
    "PolicyRow": {
      "oneOf": [
        {
          "$ref": "#/$defs/PassRow"
        },
        {
          "$ref": "#/$defs/FailRow"
        },
        {
          "$ref": "#/$defs/UndeterminedRow"
        }
      ]
    },
    "SatisfiedCheck": {
      "type": "object",
      "properties": {
        "constraint": {
          "type": "string",
          "enum": [
            "licence",
            "origin",
            "commercial_use",
            "residency"
          ]
        },
        "requirement": {
          "$ref": "#/$defs/Shared4ff9f6a29ddb"
        },
        "satisfied": {
          "type": "object",
          "properties": {
            "answered_from": {
              "type": "string"
            },
            "commercial_use": {
              "type": "string"
            },
            "conditional": {
              "type": "boolean"
            },
            "conditions": {
              "type": [
                "string",
                "null"
              ]
            },
            "determined_on": {
              "type": [
                "string",
                "null"
              ]
            },
            "license_type": {
              "type": "string"
            },
            "license_url": {
              "type": "string"
            },
            "matched": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "matching": {
              "type": "string"
            },
            "org_type": {
              "type": [
                "string",
                "null"
              ]
            },
            "origin_country": {
              "type": "string"
            },
            "platform": {
              "type": "string"
            },
            "published_regions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "read_on": {
              "type": "string"
            },
            "source": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string"
                },
                "quote": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "read_on": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "quote",
                "read_on",
                "url"
              ]
            }
          }
        },
        "state": {
          "type": "string",
          "enum": [
            "satisfied"
          ]
        }
      },
      "required": [
        "constraint",
        "requirement",
        "satisfied",
        "state"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "violated"
            ]
          },
          {
            "required": [
              "undetermined"
            ]
          }
        ]
      }
    },
    "Shared4ff9f6a29ddb": {
      "properties": {
        "accept_restricted": {
          "type": "boolean"
        },
        "allowed": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "match": {
          "type": "string"
        },
        "permitted_countries": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "prohibited": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "prohibited_countries": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "required": {
          "type": "boolean"
        },
        "required_regions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "UndeterminedCheck": {
      "type": "object",
      "properties": {
        "constraint": {
          "type": "string",
          "enum": [
            "licence",
            "origin",
            "commercial_use",
            "residency"
          ]
        },
        "requirement": {
          "$ref": "#/$defs/Shared4ff9f6a29ddb"
        },
        "state": {
          "type": "string",
          "enum": [
            "undetermined"
          ]
        },
        "undetermined": {
          "type": "object",
          "properties": {
            "available_in_tier": {
              "description": "paid when a paid entitlement would settle this; null when nothing can.",
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "paid",
                null
              ]
            },
            "checked": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "determined_on": {
              "type": "string"
            },
            "field": {
              "type": "string"
            },
            "license_type": {
              "nullable": true
            },
            "license_url": {
              "nullable": true
            },
            "meaning": {
              "type": "string"
            },
            "platform": {
              "type": [
                "string",
                "null"
              ]
            },
            "public_state": {
              "type": "string"
            },
            "reason": {
              "type": "string"
            },
            "resolve": {
              "type": "string"
            },
            "source": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string"
                },
                "quote": {
                  "nullable": true
                },
                "read_on": {
                  "nullable": true
                },
                "url": {
                  "nullable": true
                }
              },
              "required": [
                "kind",
                "quote",
                "read_on",
                "url"
              ]
            },
            "store_scope": {
              "type": "string"
            },
            "why": {
              "description": "Why nobody knows. Each value leads somewhere different.",
              "type": "string",
              "enum": [
                "no_platform",
                "not_determined",
                "not_on_card",
                "tier",
                "unbounded",
                "uncited"
              ]
            }
          },
          "required": [
            "available_in_tier",
            "meaning",
            "why"
          ]
        }
      },
      "required": [
        "constraint",
        "requirement",
        "state",
        "undetermined"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "satisfied"
            ]
          },
          {
            "required": [
              "violated"
            ]
          }
        ]
      }
    },
    "UndeterminedRow": {
      "type": "object",
      "properties": {
        "checks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PolicyCheck"
          }
        },
        "display_name": {
          "type": "string"
        },
        "model_id": {
          "type": "string"
        },
        "platform": {
          "type": [
            "string",
            "null"
          ]
        },
        "provider": {
          "type": "string"
        },
        "undetermined": {
          "type": "object",
          "properties": {
            "checks": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/UndeterminedCheck"
              }
            },
            "constraints": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "checks",
            "constraints"
          ]
        },
        "verdict": {
          "type": "string",
          "enum": [
            "undetermined"
          ]
        }
      },
      "required": [
        "checks",
        "display_name",
        "model_id",
        "platform",
        "provider",
        "undetermined",
        "verdict"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "passed"
            ]
          },
          {
            "required": [
              "failed"
            ]
          }
        ]
      }
    },
    "ViolatedCheck": {
      "type": "object",
      "properties": {
        "constraint": {
          "type": "string",
          "enum": [
            "licence",
            "origin",
            "commercial_use",
            "residency"
          ]
        },
        "requirement": {
          "$ref": "#/$defs/Shared4ff9f6a29ddb"
        },
        "state": {
          "type": "string",
          "enum": [
            "violated"
          ]
        },
        "violated": {
          "type": "object",
          "properties": {
            "answered_from": {
              "type": "string"
            },
            "because": {
              "type": "string"
            },
            "checked": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "commercial_use": {
              "type": "string"
            },
            "conditions": {
              "type": "string"
            },
            "determined_on": {
              "type": [
                "string",
                "null"
              ]
            },
            "documents": {
              "description": "The documents a no-commitment finding was read from, each with the date it carries. Never an empty withheld answer.",
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "read_on",
                  "url"
                ],
                "properties": {
                  "read_on": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            },
            "finding": {
              "description": "no_commitment when the paid answer is that the provider's documents name no region. Distinct from a determined empty list.",
              "type": "string"
            },
            "license_type": {
              "type": "string"
            },
            "license_url": {
              "type": "string"
            },
            "matching": {
              "type": "string"
            },
            "missing": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "org_type": {
              "nullable": true
            },
            "origin_country": {
              "type": "string"
            },
            "platform": {
              "type": "string"
            },
            "published_regions": {
              "type": "array",
              "items": {}
            },
            "read_on": {
              "type": "string"
            },
            "reason": {
              "type": "string"
            },
            "source": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "quote": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "read_on": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "required": [
            "because"
          ]
        }
      },
      "required": [
        "constraint",
        "requirement",
        "state",
        "violated"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "satisfied"
            ]
          },
          {
            "required": [
              "undetermined"
            ]
          }
        ]
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/modelspec-dev-policy-check-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.