archive_object
Archive a saved Costory report, cost alert, event, virtual dimension, or dashboard. Use when the user requests archiving one of these resources. No restore operation is exposed through MCP. Pass resourceKind and resourceId. A virtual-dimension draft stays on discard_virtual_dimension_draft.
One resource per call.
A budget alert is not its own kind: pass resourceKind costAlert and alertType budget or cost. alertType is the type field from list_alerts, and it is only valid when resourceKind is costAlert.
Effects: Archives the selected resource, changing its availability; no MCP restore is available. Scope: Authorized Costory workspace only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceKind": "<resourceKind>",
"resourceId": "<resourceId>"
},
"name": "archive_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Organization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs). | |
| context | No | Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data. | |
| alertType | No | ||
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| resourceId | Yes | ||
| resourceKind | Yes | ||
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |