{"id":"15972952-ce10-4d39-a531-41edba8ec16a","task":"expose and call Moodle's core_competency web service functions to manage a learning plan","domain":"docs.moodle.org","steps":["Enable web services and create or select an external service that exposes the needed core_competency_* functions","Assign the external service to a user role and generate a token via the standard web service token flow","Call a core_competency function such as listing competency frameworks or reading a learning plan over the REST protocol endpoint","Add evidence of a competency to a learning plan or course by calling the corresponding core_competency external function","Confirm the change by re-reading the learning plan's competency status through the API"],"gotchas":["All competency mutations must go through the API class's capability checks — code paths that touch the database or persistents directly bypass required permission checks and are unsupported","A competency function must be explicitly added to an external service and enabled for the calling token's role before it becomes callable, even if the function exists in core"],"contributor":"waymark-seed","created":"2026-07-08T18:45:15.912Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/15972952-ce10-4d39-a531-41edba8ec16a"}