Skip to main content
Glama

Upload a local cookie scan

upload_scan_report

Stores the result of a local crawl started with start_scan, as a report labelled a local scan. Send the cookies with their category from @cookiepal-oss/cookie-db. When robots.txt blocked the crawl, send blockedByRobots and no report is stored. Each scan ID can be uploaded once, by the user who started it. The local run this needs is made only by the CookiePal plugin in a coding agent on the user’s own computer: Claude Code, Codex or Cursor. claude.ai, Claude Code on the web and other cloud agents run in the cloud, so they cannot make it, and a crawler or browser run anywhere else does not stand in for it. The result reports what was found. It does not assess whether a site, page or banner complies with any law, so it is never a verdict of compliant or non-compliant.

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": {
      "scanId": "<scanId>"
    },
    "name": "upload_scan_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanIdYes
cookiesNo
truncatedNo
pagesScannedNo
blockedByRobotsNo
thirdPartyHostsNo

Output Schema

NameRequiredDescriptionDefault
domainIdYes
nextStepYes
byCategoryYes
reportedAtYes
scanSourceYes
pagesScannedYes
cookiesStoredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-readOnly, non-destructive, non-idempotent write; the description goes beyond that by disclosing the one-upload-per-scan-ID rule, the conditional no-op when blockedByRobots is sent, and the environment eligibility constraint. It also states the report is never a compliance verdict, which is meaningful scope framing. It stops short of saying what error or response a duplicate upload produces, despite having an output schema that presumably covers returns.

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

Conciseness4/5

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

Front-loaded with the core action, then constraints, then scope disclaimer in a sensible order. The environment paragraph is slightly over-explained (naming cloud agents twice: "claude.ai, Claude Code on the web and other cloud agents run in the cloud"), which is redundant but not gratuitous enough to hurt selection.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and the description covers the mutation's key preconditions, side effects and eligibility limits, which is what an agent needs before calling a write tool. The remaining hole is the three undocumented optional payload fields (truncated, pagesScanned, thirdPartyHosts), which affects how completely a caller fills the request.

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?

With 0% schema description coverage across 6 parameters, the description must carry parameter meaning, and it only partially does: it ties cookies to their category from @cookiepal-oss/cookie-db and explains blockedByRobots' effect of suppressing storage. truncated, pagesScanned, and thirdPartyHosts are never explained anywhere, and scanId's provenance from start_scan is only implicitly suggested.

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

Purpose5/5

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

States a specific verb and resource ("Stores the result of a local crawl... as a report") and anchors it to the sibling that produces the input (start_scan). An agent can immediately tell this is the terminal step of a local crawl flow rather than a report reader like get_scan_report.

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?

Gives strong when-to-use context: only after a crawl started with start_scan, only for runs produced by the CookiePal plugin inside Claude Code, Codex or Cursor, and explicitly excludes claude.ai, Claude Code on the web, other cloud agents, and any crawler/browser run elsewhere. It also names the robots.txt branch. What it does not do is route to an alternative tool for the ineligible cases (e.g., what a cloud agent should call instead), leaving the agent to infer the fallback.

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.

Resources