Record a generated set
record_setSave a generated Pokémon set to the local per-user store for later retrieval, validating species, item, nature, and spread; illegal sets are rejected and unknown moves become warnings.
Instructions
File a Pokémon Champions set the reasoning produced into the local, per-user record, so a set generated once can be read back later — get_set returns it under recorded when asked with includeRecorded. The usage-derived meta (list_threats, get_set) stays the only home of measured usage: a record carries no rank, no usage share and no sample, and is labelled with how it was arrived at — "inferred" (solved from battle observations) or "proposed" (generated for a team). The store is one JSON-Lines file per user, $GETCOMPETITIVE_STORE or ~/.getcompetitive/sets.jsonl, created on first write; re-recording an identical set is a no-op (created: false) and a changed spread, item or move set is filed as a new record, so the file is the timeline of what was generated. The set is resolved against the dataset with the same rules the rest of the server uses, so an unknown species, item, nature or an illegal spread is rejected rather than filed, while unknown moves come back as warnings and the set is filed as given. This is the only tool on the server that writes anything; where there is no writable filesystem (the hosted endpoint) it returns an isError naming the path it could not write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | Yes | The set to file, in the canonical shape `parse_team`, `diagnose_team`, `infer_set` and the analysis tools all consume. | |
| note | No | Why this set exists — the question it answers or the evidence behind it; carried verbatim into the record’s `origin`. | |
| tool | Yes | Which part of the reasoning produced it, e.g. "infer_set", "diagnose_team", "optimize_team"; carried verbatim into the record’s `origin`. | |
| basis | Yes | How the set was arrived at: "inferred" when it was solved from battle observations, "proposed" when the reasoning generated it for a team. Neither is measured usage. | |
| detail | No | How much detail to return: "compact" (default) gives conclusions and the numbers needed to reason; "evidence" adds ranges, benchmarks and per-row detail; "debug" adds provenance and every intermediate. Ask for more only when the reasoning actually needs it — model context is the expensive resource. | |
| regulation | No | Regulation the set was generated for, e.g. "m-c"; when given it must resolve, and it becomes part of the record’s identity. |