Add read-only game and league regulations to editor 0.5.2 (by Codex)
This commit is contained in:
1 parent
221478b629
commit
9f1928bd9e
27 files changed
+993
-22
No files matched your search
@@ -53,6 +53,7 @@ const std::map<std::string, std::string> commands{{"editor_info", "info"},
|
||||
{"editor_new", "new"},
|
||||
{"editor_list", "list"},
|
||||
{"editor_compare", "compare"},
|
||||
{"editor_regulations", "regulations"},
|
||||
{"editor_get", "get"},
|
||||
{"editor_apply", "apply"},
|
||||
{"editor_validate", "validate"},
|
||||
@@ -168,6 +169,18 @@ Json McpServer::tools() {
|
||||
{"offset", field("integer")},
|
||||
{"limit", field("integer")}},
|
||||
{}, true);
|
||||
add("editor_regulations",
|
||||
"Read-only declared game/league rules, promotion, relegation and qualification selectors. "
|
||||
"Also identifies inherited classic-season-entrants@1 and Classic ladder policies, without "
|
||||
"replacing them with current football regulations. Missing rules remain unspecified. "
|
||||
"Preserves source definitions and returns all game rule records. Never simulates a season or edits "
|
||||
"data.",
|
||||
{{"language", {{"type", "string"}, {"enum", {"de", "en"}}}},
|
||||
{"search", field("string")},
|
||||
{"nation", id},
|
||||
{"competition", id},
|
||||
{"expected_revision", revision}},
|
||||
{}, true);
|
||||
add("editor_get", "Read a complete row, including preserved extensions and sources.",
|
||||
{{"table", table}, {"id", id}}, {"table", "id"}, true);
|
||||
add("editor_apply",
|
||||
|
||||
Reference in new issue
Block a user