Server definition
- Hash
- sha256:03268fd911cbbb70b6c8a37529359f1b4c1d4aefdd42baa096889191dc71e3ac
- What it is
- What a remote MCP server returned when asked what it offers: 4 tools
The blob, as servednamed by its sha256
{
"instructions": null,
"tools": [
{
"description": "Report the audited anonymous AtCoder read surface and explicitly unsupported operations.",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "oj_capabilities",
"outputSchema": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"languages": {
"items": {
"additionalProperties": false,
"properties": {
"displayName": {
"minLength": 1,
"type": "string"
},
"languageKey": {
"minLength": 1,
"type": "string"
},
"platformLanguageId": {
"minLength": 1,
"type": "string"
}
},
"required": [
"languageKey",
"platformLanguageId",
"displayName"
],
"type": "object"
},
"type": "array"
},
"operations": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"auth": {
"enum": [
"none",
"oauth2",
"api_key",
"session_cookie",
"browser"
],
"type": "string"
},
"checkedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"compliance": {
"enum": [
"official",
"unofficial",
"restricted",
"unknown"
],
"type": "string"
},
"name": {
"enum": [
"searchProblems",
"fetchProblem",
"importProblem",
"fetchProfile",
"listSubmissions",
"localRun",
"platformRun",
"prepareSubmission",
"commitSubmission",
"pollSubmission"
],
"type": "string"
},
"reason": {
"minLength": 1,
"type": "string"
},
"risk": {
"enum": [
"R0_public_read",
"R1_private_read",
"R2_local_execute",
"R3_prepare_write",
"R4_real_submit"
],
"type": "string"
},
"status": {
"enum": [
"available",
"auth_required",
"unsupported",
"disabled_by_policy",
"degraded"
],
"type": "string"
},
"toolName": {
"minLength": 1,
"type": "string"
},
"transport": {
"enum": [
"remote_http",
"local_stdio"
],
"type": "string"
}
},
"required": [
"name",
"status",
"transport",
"auth",
"risk",
"compliance",
"checkedAt"
],
"type": "object"
},
"propertyNames": {
"enum": [
"searchProblems",
"fetchProblem",
"importProblem",
"fetchProfile",
"listSubmissions",
"localRun",
"platformRun",
"prepareSubmission",
"commitSubmission",
"pollSubmission"
],
"type": "string"
},
"required": [
"searchProblems",
"fetchProblem",
"importProblem",
"fetchProfile",
"listSubmissions",
"localRun",
"platformRun",
"prepareSubmission",
"commitSubmission",
"pollSubmission"
],
"type": "object"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"protocolVersion": {
"minLength": 1,
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"providerVersion": {
"minLength": 1,
"type": "string"
},
"schemaVersion": {
"const": "oj.capabilities/v1",
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
}
},
"required": [
"schemaVersion",
"providerId",
"providerVersion",
"platform",
"protocolVersion",
"operations",
"languages",
"source"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"request.invalid",
"capability.unsupported",
"policy.blocked",
"auth.required",
"auth.invalid",
"auth.forbidden",
"challenge.required",
"resource.not_found",
"rate_limited",
"network.timeout",
"upstream.unavailable",
"upstream.schema_changed",
"language.unsupported",
"runner.unavailable",
"runner.sandbox_required",
"confirmation.required",
"confirmation.expired",
"confirmation.mismatch",
"submission.closed",
"submission.rejected",
"submission.outcome_unknown",
"internal"
],
"type": "string"
},
"httpStatus": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"jobId": {
"minLength": 1,
"type": "string"
},
"layer": {
"enum": [
"broker",
"transport",
"protocol",
"auth",
"upstream",
"runner",
"policy"
],
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"requestId": {
"minLength": 1,
"type": "string"
},
"retryAfterMs": {
"minimum": 0,
"type": "number"
},
"retryPolicy": {
"enum": [
"never",
"safe_read",
"poll_only",
"after_user_action"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.error/v1",
"type": "string"
},
"upstreamCode": {
"minLength": 1,
"type": "string"
},
"userAction": {
"enum": [
"none",
"retry",
"sign_in",
"solve_challenge",
"change_language",
"open_logs"
],
"type": "string"
}
},
"required": [
"schemaVersion",
"code",
"layer",
"message",
"retryPolicy",
"userAction"
],
"type": "object"
}
],
"type": "object"
}
},
{
"description": "Fetch one public problem statement from an exact contest/task pair or canonical atcoder.jp task URL. Returns sanitized HTML with preserved math, samples, limits, hashes, and source provenance.",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"additionalProperties": false,
"properties": {
"locale": {
"description": "Statement locale. Overrides the URL lang query when supplied.",
"enum": [
"en",
"ja"
],
"type": "string"
},
"url": {
"description": "Canonical HTTPS atcoder.jp task URL, optionally with one en/ja lang query.",
"maxLength": 300,
"pattern": "^https:\\/\\/atcoder\\.jp\\/contests\\/[a-z0-9][a-z0-9_-]{0,63}\\/tasks\\/[a-z0-9][a-z0-9_-]{0,63}(?:\\?lang=(?:en|ja))?$",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"contestId": {
"description": "Exact AtCoder contest id, such as abc086.",
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$",
"type": "string"
},
"locale": {
"description": "Statement locale. Defaults to English.",
"enum": [
"en",
"ja"
],
"type": "string"
},
"taskId": {
"description": "Exact AtCoder task id, such as abc086_a.",
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$",
"type": "string"
}
},
"required": [
"contestId",
"taskId"
],
"type": "object"
}
],
"type": "object"
},
"name": "oj_fetch_problem",
"outputSchema": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"access": {
"enum": [
"public",
"auth_required",
"premium",
"contest_only",
"unknown"
],
"type": "string"
},
"constraints": {
"items": {
"type": "string"
},
"type": "array"
},
"content": {
"additionalProperties": false,
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"format": {
"enum": [
"markdown",
"html",
"text"
],
"type": "string"
},
"locale": {
"minLength": 1,
"type": "string"
},
"originalChars": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"text",
"format",
"locale",
"truncated",
"sha256"
],
"type": "object"
},
"notes": {
"additionalProperties": false,
"properties": {
"format": {
"enum": [
"markdown",
"html",
"text"
],
"type": "string"
},
"locale": {
"minLength": 1,
"type": "string"
},
"originalChars": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"text",
"format",
"locale",
"truncated",
"sha256"
],
"type": "object"
},
"output": {
"additionalProperties": false,
"properties": {
"format": {
"enum": [
"markdown",
"html",
"text"
],
"type": "string"
},
"locale": {
"minLength": 1,
"type": "string"
},
"originalChars": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"text",
"format",
"locale",
"truncated",
"sha256"
],
"type": "object"
},
"statement": {
"additionalProperties": false,
"properties": {
"format": {
"enum": [
"markdown",
"html",
"text"
],
"type": "string"
},
"locale": {
"minLength": 1,
"type": "string"
},
"originalChars": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"text",
"format",
"locale",
"truncated",
"sha256"
],
"type": "object"
}
},
"required": [
"statement"
],
"type": "object"
},
"difficulty": {
"additionalProperties": false,
"properties": {
"label": {
"minLength": 1,
"type": "string"
},
"scale": {
"minLength": 1,
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"scale"
],
"type": "object"
},
"io": {
"additionalProperties": false,
"properties": {
"inputFile": {
"minLength": 1,
"type": "string"
},
"mode": {
"enum": [
"stdin_stdout",
"function",
"file",
"interactive"
],
"type": "string"
},
"outputFile": {
"minLength": 1,
"type": "string"
}
},
"required": [
"mode"
],
"type": "object"
},
"limits": {
"additionalProperties": false,
"properties": {
"memoryBytes": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"timeMs": {
"exclusiveMinimum": 0,
"type": "number"
}
},
"type": "object"
},
"locale": {
"minLength": 1,
"type": "string"
},
"ref": {
"additionalProperties": false,
"properties": {
"canonicalId": {
"minLength": 1,
"type": "string"
},
"contest": {
"additionalProperties": false,
"properties": {
"index": {
"minLength": 1,
"type": "string"
},
"nativeId": {
"minLength": 1,
"type": "string"
}
},
"required": [
"nativeId"
],
"type": "object"
},
"nativeId": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.problem-ref/v1",
"type": "string"
},
"site": {
"enum": [
"global",
"cn"
],
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
},
"url": {
"format": "uri",
"type": "string"
}
},
"required": [
"schemaVersion",
"platform",
"nativeId",
"canonicalId",
"url",
"source"
],
"type": "object"
},
"samples": {
"items": {
"additionalProperties": false,
"properties": {
"explanation": {
"type": "string"
},
"input": {
"type": "string"
},
"ordinal": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"output": {
"type": "string"
}
},
"required": [
"ordinal",
"input",
"output"
],
"type": "object"
},
"type": "array"
},
"schemaVersion": {
"const": "oj.problem-document/v1",
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
},
"starterCode": {
"items": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"languageKey": {
"minLength": 1,
"type": "string"
},
"platformLanguageId": {
"minLength": 1,
"type": "string"
}
},
"required": [
"languageKey",
"platformLanguageId",
"code"
],
"type": "object"
},
"type": "array"
},
"tags": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"namespace": {
"enum": [
"platform",
"canonical"
],
"type": "string"
},
"slug": {
"minLength": 1,
"type": "string"
}
},
"required": [
"namespace",
"slug",
"name"
],
"type": "object"
},
"type": "array"
},
"title": {
"minLength": 1,
"type": "string"
}
},
"required": [
"schemaVersion",
"ref",
"title",
"locale",
"access",
"tags",
"content",
"constraints",
"samples",
"limits",
"io",
"starterCode",
"source"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"request.invalid",
"capability.unsupported",
"policy.blocked",
"auth.required",
"auth.invalid",
"auth.forbidden",
"challenge.required",
"resource.not_found",
"rate_limited",
"network.timeout",
"upstream.unavailable",
"upstream.schema_changed",
"language.unsupported",
"runner.unavailable",
"runner.sandbox_required",
"confirmation.required",
"confirmation.expired",
"confirmation.mismatch",
"submission.closed",
"submission.rejected",
"submission.outcome_unknown",
"internal"
],
"type": "string"
},
"httpStatus": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"jobId": {
"minLength": 1,
"type": "string"
},
"layer": {
"enum": [
"broker",
"transport",
"protocol",
"auth",
"upstream",
"runner",
"policy"
],
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"requestId": {
"minLength": 1,
"type": "string"
},
"retryAfterMs": {
"minimum": 0,
"type": "number"
},
"retryPolicy": {
"enum": [
"never",
"safe_read",
"poll_only",
"after_user_action"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.error/v1",
"type": "string"
},
"upstreamCode": {
"minLength": 1,
"type": "string"
},
"userAction": {
"enum": [
"none",
"retry",
"sign_in",
"solve_challenge",
"change_language",
"open_logs"
],
"type": "string"
}
},
"required": [
"schemaVersion",
"code",
"layer",
"message",
"retryPolicy",
"userAction"
],
"type": "object"
}
],
"type": "object"
}
},
{
"description": "Report local readiness and the latest observed AtCoder page-read status without probing upstream.",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "oj_health",
"outputSchema": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"checkedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"latencyMs": {
"minimum": 0,
"type": "number"
},
"layers": {
"additionalProperties": false,
"properties": {
"auth": {
"enum": [
"not_required",
"valid",
"expired",
"missing",
"challenge"
],
"type": "string"
},
"protocol": {
"enum": [
"pass",
"fail"
],
"type": "string"
},
"schema": {
"enum": [
"pass",
"drift",
"unknown"
],
"type": "string"
},
"transport": {
"enum": [
"pass",
"fail"
],
"type": "string"
},
"upstream": {
"enum": [
"pass",
"timeout",
"rate_limited",
"blocked",
"fail"
],
"type": "string"
}
},
"required": [
"transport",
"protocol",
"schema",
"auth",
"upstream"
],
"type": "object"
},
"message": {
"minLength": 1,
"type": "string"
},
"overall": {
"enum": [
"healthy",
"degraded",
"unavailable",
"auth_required"
],
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"retryAfterMs": {
"minimum": 0,
"type": "number"
},
"schemaVersion": {
"const": "oj.provider-health/v1",
"type": "string"
}
},
"required": [
"schemaVersion",
"providerId",
"platform",
"checkedAt",
"overall",
"layers",
"message"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"request.invalid",
"capability.unsupported",
"policy.blocked",
"auth.required",
"auth.invalid",
"auth.forbidden",
"challenge.required",
"resource.not_found",
"rate_limited",
"network.timeout",
"upstream.unavailable",
"upstream.schema_changed",
"language.unsupported",
"runner.unavailable",
"runner.sandbox_required",
"confirmation.required",
"confirmation.expired",
"confirmation.mismatch",
"submission.closed",
"submission.rejected",
"submission.outcome_unknown",
"internal"
],
"type": "string"
},
"httpStatus": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"jobId": {
"minLength": 1,
"type": "string"
},
"layer": {
"enum": [
"broker",
"transport",
"protocol",
"auth",
"upstream",
"runner",
"policy"
],
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"requestId": {
"minLength": 1,
"type": "string"
},
"retryAfterMs": {
"minimum": 0,
"type": "number"
},
"retryPolicy": {
"enum": [
"never",
"safe_read",
"poll_only",
"after_user_action"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.error/v1",
"type": "string"
},
"upstreamCode": {
"minLength": 1,
"type": "string"
},
"userAction": {
"enum": [
"none",
"retry",
"sign_in",
"solve_challenge",
"change_language",
"open_logs"
],
"type": "string"
}
},
"required": [
"schemaVersion",
"code",
"layer",
"message",
"retryPolicy",
"userAction"
],
"type": "object"
}
],
"type": "object"
}
},
{
"description": "Resolve exactly one contest/task id, atcoder:contest/task id, or canonical task URL. Free-text and catalog crawling are not supported.",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"limit": {
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"locale": {
"enum": [
"en",
"ja"
],
"type": "string"
},
"platform": {
"const": "atcoder",
"type": "string"
},
"query": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"requestId": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"schemaVersion": {
"const": "oj.search-request/v1",
"type": "string"
}
},
"required": [
"schemaVersion",
"requestId",
"platform",
"query",
"limit"
],
"type": "object"
},
"name": "oj_search_problems",
"outputSchema": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"acceptance": {
"additionalProperties": false,
"properties": {
"accepted": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"ratio": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"submissions": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"contestLabel": {
"minLength": 1,
"type": "string"
},
"difficulty": {
"additionalProperties": false,
"properties": {
"label": {
"minLength": 1,
"type": "string"
},
"scale": {
"minLength": 1,
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"scale"
],
"type": "object"
},
"ref": {
"additionalProperties": false,
"properties": {
"canonicalId": {
"minLength": 1,
"type": "string"
},
"contest": {
"additionalProperties": false,
"properties": {
"index": {
"minLength": 1,
"type": "string"
},
"nativeId": {
"minLength": 1,
"type": "string"
}
},
"required": [
"nativeId"
],
"type": "object"
},
"nativeId": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.problem-ref/v1",
"type": "string"
},
"site": {
"enum": [
"global",
"cn"
],
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
},
"url": {
"format": "uri",
"type": "string"
}
},
"required": [
"schemaVersion",
"platform",
"nativeId",
"canonicalId",
"url",
"source"
],
"type": "object"
},
"schemaVersion": {
"const": "oj.problem-summary/v1",
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
},
"tags": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"namespace": {
"enum": [
"platform",
"canonical"
],
"type": "string"
},
"slug": {
"minLength": 1,
"type": "string"
}
},
"required": [
"namespace",
"slug",
"name"
],
"type": "object"
},
"type": "array"
},
"title": {
"minLength": 1,
"type": "string"
}
},
"required": [
"schemaVersion",
"ref",
"title",
"tags",
"source"
],
"type": "object"
},
"type": "array"
},
"nextCursor": {
"minLength": 1,
"type": "string"
},
"requestId": {
"minLength": 1,
"type": "string"
},
"schemaVersion": {
"const": "oj.search-result/v1",
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"adapterId": {
"minLength": 1,
"type": "string"
},
"adapterVersion": {
"minLength": 1,
"type": "string"
},
"confidence": {
"enum": [
"authoritative",
"derived",
"user_supplied"
],
"type": "string"
},
"etag": {
"minLength": 1,
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
"type": "string"
},
"kind": {
"enum": [
"official_api",
"official_open_platform",
"page_adapter",
"browser_companion",
"community_adapter",
"manual"
],
"type": "string"
},
"rawRef": {
"minLength": 1,
"type": "string"
},
"sourceUrl": {
"format": "uri",
"type": "string"
}
},
"required": [
"kind",
"adapterId",
"adapterVersion",
"fetchedAt",
"sourceUrl",
"confidence"
],
"type": "object"
}
},
"required": [
"schemaVersion",
"requestId",
"items",
"source"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"request.invalid",
"capability.unsupported",
"policy.blocked",
"auth.required",
"auth.invalid",
"auth.forbidden",
"challenge.required",
"resource.not_found",
"rate_limited",
"network.timeout",
"upstream.unavailable",
"upstream.schema_changed",
"language.unsupported",
"runner.unavailable",
"runner.sandbox_required",
"confirmation.required",
"confirmation.expired",
"confirmation.mismatch",
"submission.closed",
"submission.rejected",
"submission.outcome_unknown",
"internal"
],
"type": "string"
},
"httpStatus": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"jobId": {
"minLength": 1,
"type": "string"
},
"layer": {
"enum": [
"broker",
"transport",
"protocol",
"auth",
"upstream",
"runner",
"policy"
],
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"platform": {
"enum": [
"luogu",
"leetcode",
"nowcoder",
"codeforces",
"atcoder"
],
"type": "string"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"requestId": {
"minLength": 1,
"type": "string"
},
"retryAfterMs": {
"minimum": 0,
"type": "number"
},
"retryPolicy": {
"enum": [
"never",
"safe_read",
"poll_only",
"after_user_action"
],
"type": "string"
},
"schemaVersion": {
"const": "oj.error/v1",
"type": "string"
},
"upstreamCode": {
"minLength": 1,
"type": "string"
},
"userAction": {
"enum": [
"none",
"retry",
"sign_in",
"solve_challenge",
"change_language",
"open_logs"
],
"type": "string"
}
},
"required": [
"schemaVersion",
"code",
"layer",
"message",
"retryPolicy",
"userAction"
],
"type": "object"
}
],
"type": "object"
}
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:03268fd911cbbb70b6c8a37529359f1b4c1d4aefdd42baa096889191dc71e3ac | sha256sum