MCP / Tools / Story Workflows / genre_contract_query

genre_contract_query

readbetaauth: project:readapproval: automaticstatus: v1

Read, inspect the registry, or preview a Genre Movie contract without applying changes.

When to use

  • Inspect current genre settings and registry options or preview a proposed Genre Movie configuration.

When not to use

  • Use genre_contract to apply the explicitly selected configuration.

Examples

  • “Preview how changing the primary genre alters this project's planning cards.”

Anti-examples

  • Treat preview as saving the proposed configuration.

Backend capabilities

genre.contract_query

Input schema

genre_contract_query input
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
    "operation",
    "project_id"
  ],
  "properties": {
    "operation": {
      "type": "string",
      "enum": [
        "read",
        "registry",
        "preview"
      ]
    },
    "project_id": {
      "type": "integer"
    },
    "primary_genre_id": {
      "type": "string"
    },
    "secondary_genre_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 3
    },
    "enabled_card_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "disabled_card_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enabled_local_card_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "disabled_local_card_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "card_order_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enabled_overlay_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "disabled_overlay_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "operation": {
            "enum": [
              "preview",
              "apply"
            ]
          }
        }
      },
      "then": {
        "required": [
          "primary_genre_id"
        ]
      }
    }
  ],
  "additionalProperties": false
}

Output schema

genre_contract_query output
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
    "operation",
    "project_id",
    "result",
    "genre_contract_updated_at"
  ],
  "properties": {
    "operation": {
      "type": "string",
      "enum": [
        "read",
        "registry",
        "preview"
      ]
    },
    "project_id": {
      "type": "integer"
    },
    "genre_contract_updated_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Updated-at value for the genre contract if available."
    },
    "result": {
      "type": "object"
    }
  },
  "additionalProperties": true
}
← All toolsv1 · query_tool