addedInput schema / $defs
Added value: +{
+ "capability": {
+ "additionalProperties": false,
+ "properties": {
+ "connection": {
+ "pattern": "^[A-Za-z0-9_.-]{1,60}$",
+ "type": "string"
+ },
+ "icon_url": {
+ "$ref": "#/$defs/https_url"
+ },
+ "keywords": {
+ "items": {
+ "maxLength": 40,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name_zh": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "operations": {
+ "items": {
+ "$ref": "#/$defs/operation"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "price_hints": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "typical_units": {
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "label",
+ "typical_units"
+ ],
+ "type": "object"
+ },
+ "maxItems": 4,
+ "type": "array"
+ },
+ "refund_policy_url": {
+ "$ref": "#/$defs/link"
+ },
+ "slug": {
+ "pattern": "^[a-z0-9][a-z0-9-]{0,59}$",
+ "type": "string"
+ },
+ "summary": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "summary_zh": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "support_url": {
+ "$ref": "#/$defs/link"
+ },
+ "unit_name": {
+ "pattern": "^[a-z][a-z0-9_ -]{0,29}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "summary",
+ "connection",
+ "operations"
+ ],
+ "type": "object"
+ },
+ "endpoint": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "type": {
+ "const": "api"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "mcp_url"
+ ]
+ },
+ "required": [
+ "base_url"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "type": {
+ "const": "mcp"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "base_url"
+ ]
+ },
+ "required": [
+ "mcp_url"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "auth": {
+ "enum": [
+ "api_key",
+ "signed"
+ ]
+ },
+ "base_url": {
+ "$ref": "#/$defs/https_url"
+ },
+ "mcp_url": {
+ "$ref": "#/$defs/https_url"
+ },
+ "type": {
+ "enum": [
+ "api",
+ "mcp"
+ ]
+ }
+ },
+ "required": [
+ "type",
+ "auth"
+ ],
+ "type": "object"
+ },
+ "execution": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "protocol": {
+ "const": "qumge"
+ }
+ },
+ "required": [
+ "protocol"
+ ]
+ },
+ "then": {
+ "not": {
+ "required": [
+ "deadline_field"
+ ]
+ }
+ }
+ }
+ ],
+ "properties": {
+ "buyer_key_field": {
+ "$ref": "#/$defs/pointer",
+ "minLength": 1
+ },
+ "cancel": {
+ "$ref": "#/$defs/state_operation"
+ },
+ "completion_timeout_seconds": {
+ "maximum": 86400,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "deadline_field": {
+ "$ref": "#/$defs/pointer",
+ "minLength": 1
+ },
+ "delivery": {
+ "additionalProperties": false,
+ "dependentRequired": {
+ "refresh": [
+ "retention_seconds",
+ "url_fields"
+ ]
+ },
+ "properties": {
+ "refresh": {
+ "$ref": "#/$defs/state_operation"
+ },
+ "retention_seconds": {
+ "maximum": 31536000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "url_fields": {
+ "items": {
+ "$ref": "#/$defs/pointer",
+ "minLength": 1
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ },
+ "type": "object"
+ },
+ "idempotency": {
+ "additionalProperties": false,
+ "properties": {
+ "lookup": {
+ "$ref": "#/$defs/state_operation"
+ },
+ "mode": {
+ "enum": [
+ "none",
+ "native",
+ "lookup"
+ ]
+ },
+ "request_id_field": {
+ "$ref": "#/$defs/pointer",
+ "minLength": 1
+ },
+ "request_id_header": {
+ "maxLength": 100,
+ "minLength": 1,
+ "pattern": "^[A-Za-z0-9-]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "type": "object"
+ },
+ "identity": {
+ "enum": [
+ "order",
+ "buyer"
+ ]
+ },
+ "mapping": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "$ref": "#/$defs/pointer"
+ },
+ "job_id": {
+ "$ref": "#/$defs/pointer"
+ },
+ "result": {
+ "$ref": "#/$defs/pointer"
+ },
+ "states": {
+ "additionalProperties": {
+ "enum": [
+ "queued",
+ "running",
+ "succeeded",
+ "failed"
+ ]
+ },
+ "maxProperties": 50,
+ "propertyNames": {
+ "maxLength": 100,
+ "minLength": 1
+ },
+ "type": "object"
+ },
+ "status": {
+ "$ref": "#/$defs/pointer"
+ },
+ "upstream_usage": {
+ "$ref": "#/$defs/pointer"
+ }
+ },
+ "type": "object"
+ },
+ "mode": {
+ "enum": [
+ "sync",
+ "async"
+ ]
+ },
+ "protocol": {
+ "enum": [
+ "native",
+ "qumge"
+ ]
+ },
+ "status": {
+ "$ref": "#/$defs/state_operation"
+ }
+ },
+ "type": "object"
+ },
+ "https_url": {
+ "maxLength": 2000,
+ "pattern": "^https://[A-Za-z0-9.-]+(:[0-9]{1,5})?(/[^\\s?#]*)?$",
+ "type": "string"
+ },
+ "link": {
+ "maxLength": 2000,
+ "pattern": "^(https://|mailto:)\\S+$",
+ "type": "string"
+ },
+ "operation": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "not": {
+ "required": [
+ "price_usd",
+ "pricing"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "description": {
+ "$ref": "#/$defs/text"
+ },
+ "description_zh": {
+ "$ref": "#/$defs/text"
+ },
+ "example_input": {},
+ "example_output": {},
+ "execution": {
+ "$ref": "#/$defs/execution"
+ },
+ "free_calls": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "input_schema": {
+ "type": "object"
+ },
+ "limitations": {
+ "$ref": "#/$defs/text"
+ },
+ "limitations_zh": {
+ "$ref": "#/$defs/text"
+ },
+ "method": {
+ "enum": [
+ "GET",
+ "POST",
+ "PUT",
+ "PATCH",
+ "DELETE"
+ ]
+ },
+ "name": {
+ "pattern": "^[A-Za-z0-9_.-]{1,60}$",
+ "type": "string"
+ },
+ "output_schema": {
+ "type": "object"
+ },
+ "path": {
+ "pattern": "^/[^*{}\\s?#]{0,499}$",
+ "type": "string"
+ },
+ "price_usd": {
+ "$ref": "#/$defs/usd"
+ },
+ "pricing": {
+ "$ref": "#/$defs/pricing"
+ },
+ "title": {
+ "$ref": "#/$defs/text"
+ },
+ "title_zh": {
+ "$ref": "#/$defs/text"
+ },
+ "tool": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "when_to_use": {
+ "$ref": "#/$defs/text"
+ },
+ "when_to_use_zh": {
+ "$ref": "#/$defs/text"
+ }
+ },
+ "type": "object"
+ },
+ "pointer": {
+ "maxLength": 500,
+ "pattern": "^(?:|/(?:[^~\\s]|~[01])*)$",
+ "type": "string"
+ },
+ "pricing": {
+ "additionalProperties": false,
+ "properties": {
+ "base_fee_usd": {
+ "$ref": "#/$defs/usd_micro"
+ },
+ "currency": {
+ "const": "USD"
+ },
+ "dimensions": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "default": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "field": {
+ "maxLength": 500,
+ "minLength": 1,
+ "pattern": "^(?:|/(?:[^~\\s]|~[01])*)$",
+ "type": "string"
+ },
+ "values": {
+ "items": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 32,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ },
+ "required": [
+ "field",
+ "values"
+ ],
+ "type": "object"
+ },
+ "maxProperties": 8,
+ "propertyNames": {
+ "pattern": "^[a-z][a-z0-9_]{0,39}$"
+ },
+ "type": "object"
+ },
+ "lines": {
+ "items": {
+ "$ref": "#/$defs/pricing_line"
+ },
+ "maxItems": 16,
+ "minItems": 1,
+ "type": "array"
+ },
+ "max_charge_usd": {
+ "$ref": "#/$defs/usd_micro"
+ },
+ "minimum_charge_usd": {
+ "$ref": "#/$defs/usd_micro"
+ },
+ "settlement": {
+ "enum": [
+ "quoted",
+ "capped_actual"
+ ]
+ },
+ "version": {
+ "const": "1"
+ }
+ },
+ "required": [
+ "version",
+ "settlement",
+ "lines"
+ ],
+ "type": "object"
+ },
+ "pricing_line": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "pattern": "^[a-z][a-z0-9_]{0,39}$",
+ "type": "string"
+ },
+ "max_quantity": {
+ "maximum": 1000000000000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "meter": {
+ "$ref": "#/$defs/pricing_meter"
+ },
+ "rate_table": {
+ "items": {
+ "$ref": "#/$defs/pricing_rate"
+ },
+ "maxItems": 64,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "key",
+ "meter",
+ "max_quantity",
+ "rate_table"
+ ],
+ "type": "object"
+ },
+ "pricing_meter": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "maxLength": 500,
+ "minLength": 1,
+ "pattern": "^(?:|/(?:[^~\\s]|~[01])*)$",
+ "type": "string"
+ },
+ "id": {
+ "pattern": "^(weighted_han_codepoints|array_items|bounded_integer|requested_pixels|audio_duration_ms|image_pixels|video_duration_ms)/v1$",
+ "type": "string"
+ },
+ "options": {
+ "maxProperties": 8,
+ "type": "object"
+ },
+ "source": {
+ "enum": [
+ "input",
+ "output"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "source",
+ "field"
+ ],
+ "type": "object"
+ },
+ "pricing_rate": {
+ "additionalProperties": false,
+ "oneOf": [
+ {
+ "not": {
+ "required": [
+ "tiers"
+ ]
+ },
+ "required": [
+ "unit_price_usd",
+ "per_quantity"
+ ]
+ },
+ {
+ "not": {
+ "required": [
+ "unit_price_usd",
+ "per_quantity"
+ ]
+ },
+ "required": [
+ "tiers"
+ ]
+ }
+ ],
+ "properties": {
+ "per_quantity": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "tiers": {
+ "items": {
+ "$ref": "#/$defs/pricing_tier"
+ },
+ "maxItems": 32,
+ "minItems": 1,
+ "type": "array"
+ },
+ "unit_price_usd": {
+ "$ref": "#/$defs/usd_micro"
+ },
+ "when": {
+ "additionalProperties": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxProperties": 8,
+ "type": "object"
+ }
+ },
+ "required": [
+ "when"
+ ],
+ "type": "object"
+ },
+ "pricing_tier": {
+ "additionalProperties": false,
+ "properties": {
+ "per_quantity": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "unit_price_usd": {
+ "$ref": "#/$defs/usd_micro"
+ },
+ "up_to": {
+ "minimum": 1,
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "up_to",
+ "unit_price_usd",
+ "per_quantity"
+ ],
+ "type": "object"
+ },
+ "state_operation": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "body": {
+ "$ref": "#/$defs/template_object"
+ },
+ "method": {
+ "enum": [
+ "GET",
+ "POST"
+ ]
+ },
+ "path": {
+ "maxLength": 500,
+ "pattern": "^/(?:[^*{}\\s?#]|\\{(?:job_id|request_id)\\})*$",
+ "type": "string"
+ },
+ "query": {
+ "$ref": "#/$defs/template_object"
+ }
+ },
+ "required": [
+ "method",
+ "path"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "arguments": {
+ "$ref": "#/$defs/template_object"
+ },
+ "tool": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "template_object": {
+ "additionalProperties": {
+ "$ref": "#/$defs/template_value"
+ },
+ "maxProperties": 50,
+ "type": "object"
+ },
+ "template_value": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "pattern": "^(?:[^{}]|\\{(?:job_id|request_id)\\})*$",
+ "type": "string"
+ },
+ {
+ "type": [
+ "number",
+ "boolean",
+ "null"
+ ]
+ }
+ ]
+ },
+ "text": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "usd": {
+ "maximum": 50,
+ "minimum": 0.001,
+ "type": "number"
+ },
+ "usd_micro": {
+ "pattern": "^(?:0|[1-9][0-9]{0,5})(?:\\.[0-9]{1,6})?$",
+ "type": "string"
+ }
+}