Skip to main content
Glama

Delete page data entries

delete_page_data
Destructive

Saved visitor entries of a page: permanently delete entries or uploaded files from one list. Select docIds, fileIds, a timestamp range or all=true. Unsure? get_guide topic=page-data.

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
idNoPublication id exactly as a receipt or list returned it, never part of a host name; with a link send `link` (get_guide topic=links)
allNoExplicit true deletes all entries and files
kindNo
linkNoA BrewPage address as opened in a browser: subdomain, link name, brewpage.app/<ns>/<id>, or the owner's custom domain. Use it instead of kind, namespace and id. Copy it whole; never split it. Unsure? get_guide topic=links. A link by itself never grants management. Without owner proof (connected owning account, ownerToken or manageUrl), do not call owner tools: ask the user for one.
afterNoExclusive lower bound, ISO-8601 UTC such as 2026-12-01T00:00:00Z
beforeNoExclusive upper bound, ISO-8601 UTC such as 2026-12-31T23:59:59Z
docIdsNo
fileIdsNo
manageUrlNoPrivate link as target and proof.
namespaceNoNamespace exactly as a receipt or list returned it: public for public pages, else the link-only word. With a link send `link`, never rebuild namespace or id from it (get_guide topic=links)
collectionYesList name as the page's state collections declare it: a lowercase letter, then up to 31 of a-z, 0-9, _ and -
ownerTokenNoPrivate owner proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / after / description
      Previous value: -"Exclusive lower timestamp bound"New value: +"Exclusive lower bound, ISO-8601 UTC such as 2026-12-01T00:00:00Z"
    • changedInput schema / properties / before / description
      Previous value: -"Exclusive upper timestamp bound"New value: +"Exclusive upper bound, ISO-8601 UTC such as 2026-12-31T23:59:59Z"
    • changedInput schema / properties / collection / description
      Previous value: -"List name"New value: +"List name as the page's state collections declare it: a lowercase letter, then up to 31 of a-z, 0-9, _ and -"
    • changedInput schema / properties / docIds / items / description
      Previous value: -"ID from read_page_data"New value: +"Entry or file id exactly as read_page_data returned it"
    • changedInput schema / properties / fileIds / items / description
      Previous value: -"ID from read_page_data"New value: +"Entry or file id exactly as read_page_data returned it"
    • changedInput schema / properties / id / description
      Previous value: -"ID from the publication receipt"New value: +"Publication id exactly as a receipt or list returned it, never part of a host name; with a link send `link` (get_guide topic=links)"
    • addedInput schema / properties / link
      Added value: +{
      +  "description": "A BrewPage address as opened in a browser: subdomain, link name, brewpage.app/<ns>/<id>, or the owner's custom domain. Use it instead of kind, namespace and id. Copy it whole; never split it. Unsure? get_guide topic=links. A link by itself never grants management. Without owner proof (connected owning account, ownerToken or manageUrl), do not call owner tools: ask the user for one.",
      +  "type": "string"
      +}
    • changedInput schema / properties / namespace / description
      Previous value: -"Namespace from the publication receipt"New value: +"Namespace exactly as a receipt or list returned it: public for public pages, else the link-only word. With a link send `link`, never rebuild namespace or id from it (get_guide topic=links)"
  2. Changed14 schema fields changed
    • 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."
  3. Changed11 schema fields changed
    • 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)."
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds the important qualifier 'permanently,' reinforcing irreversibility. It omits any statement of what happens when no selector is supplied, whether all=true needs confirmation, or whether deletion is transactional across entries and files.

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 short sentences with no filler. The resource is front-loaded, the selection mechanics follow, and the get_guide pointer is placed last where a confused agent will find it.

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 a destructive, 12-parameter tool with no output schema, the description is thin: it says nothing about return values, partial-failure behavior, or whether deletion touches only the named collection. The rich schema and the get_guide pointer compensate substantially, but not fully.

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

Parameters3/5

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

Schema coverage is 75% and the schema itself is verbose with per-parameter descriptions, so the baseline is 3. The description adds one genuinely new piece of meaning not in the schema: the four selectors are an alternative choice for scoping the same deletion, and collection is implicitly framed as 'one list.'

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 gives a specific verb and resource combination: permanently delete saved visitor entries or uploaded files belonging to one list of a page. This distinguishes it from read_page_data and write_page_data by the mutation of visitor submissions rather than the page itself, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines4/5

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

It tells the caller how to scope a deletion (docIds, fileIds, a timestamp range, or all=true) and provides an escalation path: 'Unsure? get_guide topic=page-data.' What is missing is an explicit caution about when not to use it or when a narrower selection is preferable to all=true.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.