VocalDocscontracts 1.65.0

Archive a Tool

DELETE /v1/tools/{tool_id}

PropertyValue
Operationarchive_tool
GroupTools
Scopetools:write
Route classcontrol
IdempotencyNo Idempotency-Key
AuditAudited tool.archive (mutation)
Released in1.49.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Archives the Tool at the revision If-Match names and answers it with archived_at set. Nothing is deleted: the Agent versions that froze it keep running their copy, and it can still be read. An archived Tool cannot be attached, updated or tested (tool_archived), and its name is free again.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the tools:write scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl -X DELETE "$VOCAL_API/v1/tools/tool_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY" \
  -H 'If-Match: "1"'

Parameters

NameInTypeRequiredDescription
tool_idpathToolIdyesThe id of a Tool: tool_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
if-matchheaderstringyesThe revision the change was made against, quoted as the ETag returns it, or * to overwrite.

Responses

StatusContent typeShapeError codes
200application/jsonTool
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden, org_suspended
404application/jsonErrorEnvelopenot_found
409application/jsonErrorEnvelopetool_archived
412application/jsonErrorEnveloperevision_mismatch
428application/jsonErrorEnvelopeprecondition_required
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Tool.

FieldTypeRequiredDescription
annotationsToolAnnotationsyes
archived_atTimestamp or nullyesWhen DELETE archived the Tool, or null. An archived Tool takes no write and no test (409 tool_archived) and cannot be attached; the Agent versions that froze it keep running it.
created_atTimestampyes
definition_sha256stringyesThe SHA-256 of the canonical definition without the auth secret, in lowercase hex; equal to a PinnedTool's when the Agent version froze this revision's definition.
descriptionstringyesModel-facing: what the Tool does and when to use it.
fillerToolFiller or nullyes
httpHttpToolConfig or nullyesThe request of an http Tool; null otherwise.
idToolIdyes
idempotentbooleanyes
nameToolNameyes
object"tool"yes
organization_idOrganizationIdyes
parametersToolParametersyes
response_schemaToolResponseSchema or nullyes
revisionintegeryesCounts writes to the Tool; returned as the ETag and required in If-Match.
timeout_msintegeryesThe deadline of one invocation, in milliseconds.
typeToolTypeyes
updated_atTimestampyes