Skip to content

Guard programs: update, delete

The Guard Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Guard, one group of Guard programs.

Guard.update

Changes the given properties of a Guard. Verb page.

Text
do: return await $.Guard.update(input)

Emits Guard.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Guard.
tierstringOne of code, model, reviewer, or human.
checksstringWhat it refuses; a claim Guard checks a stated term or promise against the record that backs it. Never randomized.

Returns

OutputTypeRequiredDescription
guardGuardrequiredThe Guard.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Guard.update({ id: 'guard_WtKo3jQi6J', tier: 'code' })"
  }
}

Guard.delete

Deletes a Guard: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.Guard.delete(input)

Emits Guard.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Guard.

Returns

OutputTypeRequiredDescription
guardGuardrequiredThe Guard.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Guard.delete({ id: 'guard_WtKo3jQi6J' })"
  }
}