Skip to main content
Glama

Delete page data entries

delete_page_data
Destructive

Permanently deletes entries or uploaded files from one BrewPage list by document ID, file ID, timestamp range, or an all flag.

Instructions

Permanently delete entries or uploaded files from one list. Select docIds, fileIds, a timestamp range or all=true.

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": {
      "collection": "<collection>"
    },
    "name": "delete_page_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID from the publication receipt
allNoExplicit true deletes all entries and files
kindNo
afterNoExclusive lower timestamp bound
beforeNoExclusive upper timestamp bound
docIdsNo
fileIdsNo
manageUrlNoPrivate link as target and proof.
namespaceNoNamespace from the publication receipt
collectionYesList name
ownerTokenNoPrivate owner proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv3.0.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / after / description
      Added value: +"Exclusive lower timestamp bound"
    • changedInput schema / properties / all / description
      Previous value: -"true = every entry and uploaded file of the list"New value: +"Explicit true deletes all entries and files"
    • changedInput schema / properties / before / description
      Previous value: -"ISO 8601 time; a range deletes entries and uploaded files alike"New value: +"Exclusive upper timestamp bound"
    • addedInput schema / properties / collection / description
      Added value: +"List name"
    • removedInput schema / properties / docIds / description
      Removed value: -"1-20 entry ids"
    • addedInput schema / properties / docIds / items / description
      Added value: +"ID from read_page_data"
    • removedInput schema / properties / fileIds / description
      Removed value: -"1-20 file ids"
    • addedInput schema / properties / fileIds / items / description
      Added value: +"ID from read_page_data"
    • addedInput schema / properties / id / description
      Added value: +"ID from the publication receipt"
    • addedInput schema / properties / kind
      Added value: +{
      +  "enum": [
      +    "html",
      +    "site"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / manageUrl / description
      Previous value: -"Management link; replaces namespace, id and ownerToken"New value: +"Private link as target and proof."
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace from the publication receipt"
    • addedInput schema / properties / ownerToken / description
      Added value: +"Private owner proof."
  2. Changed11 schema fields changedv2.1.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / after / description
      Removed value: -"ISO 8601 time: entries created after it"
    • addedInput schema / properties / all
      Added value: +{
      +  "description": "true = every entry and uploaded file of the list",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / before / description
      Previous value: -"ISO 8601 time: entries created before it"New value: +"ISO 8601 time; a range deletes entries and uploaded files alike"
    • removedInput schema / properties / collection / description
      Removed value: -"List (collection) name"
    • changedInput schema / properties / docIds / description
      Previous value: -"Entry ids from the listing, 1-20; instead of a time range"New value: +"1-20 entry ids"
    • addedInput schema / properties / fileIds
      Added value: +{
      +  "description": "1-20 file ids",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / properties / id / description
      Removed value: -"Publication ID"
    • changedInput schema / properties / manageUrl / description
      Previous value: -"The page's private management link (https://brewpage.app/manage/...#k=...); stands in for namespace, id and ownerToken."New value: +"Management link; replaces namespace, id and ownerToken"
    • removedInput schema / properties / namespace / description
      Removed value: -"Publication namespace"
    • removedInput schema / properties / ownerToken / description
      Removed value: -"Owner token from create. Default: env BREWPAGE_OWNER_TOKEN (local server only)."
  3. Addedv1.21.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare destructiveHint=true and readOnlyHint=false, so the risk profile is known; the description usefully reinforces irreversibility with "Permanently" and clarifies that `all` removes both entries and files. It stops short of the details that matter most for an irreversible operation — required owner/manage URL proof, and the default scope when no selector is given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the destructive nature and the resource front-loaded before the selection mechanics. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, irreversible mutation with no output schema, the description covers selection adequately but omits the authorization/proof parameters and the failure mode of an unscoped call. An agent could invoke it correctly but not safely without reading the schema closely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 73% schema coverage the schema already documents most parameters, but the description contributes something the schema cannot express: that docIds, fileIds, a timestamp range and all=true are mutually alternative selection modes. The remaining parameters (collection, namespace, ownerToken, manageUrl, kind) are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource — "Permanently delete entries or uploaded files from one list" — which clearly separates it from read_page_data, write_page_data and delete_publication. It does not name those siblings explicitly, so the differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Select docIds, fileIds, a timestamp range or all=true" tells the agent how to scope a deletion, implying the selectors are alternatives rather than cumulative. There is no explicit when-to-use versus alternatives and no warning about what happens if only `collection` is supplied with no selector.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.