Skip to main content
Glama
Facebook Ads Library MCP Server

Facebook Ads Library MCP Server

cleanup_media_cache

Remove old cached images and videos to free disk space and maintain storage when the media cache grows too large.

Instructions

REQUIRED for cleaning up old cached media files (images and videos) and freeing disk space. Use this tool when users want to remove old cached media, clean up storage space, or when cache becomes too large. Essential for cache maintenance and storage management.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cleanup_media_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_age_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "cleanup_media_cacheOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=false but nothing about destruction, so the description must carry that burden. 'Cleaning up' and 'remove' imply deletion, but it never states that files are permanently removed, whether the action is reversible, or what permission level is needed. The 'REQUIRED'/'Essential' framing adds emphasis rather than behavioral facts.

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

Conciseness3/5

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

It is short and front-loaded with the core action, which is good. But two of the four sentences are promotional restatements ('REQUIRED', 'Essential for cache maintenance'), and the closing sentence duplicates the earlier purpose statement without adding information.

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?

An output schema exists, so return values need not be explained, and the single parameter keeps the surface small. Still, for a mutating cleanup tool the description omits the destruction semantics and the meaning of its only parameter, leaving gaps an agent must guess at.

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

Parameters2/5

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

There is one parameter, max_age_days, with 0% schema description coverage, and the description never mentions it. The agent gets no explanation of what the age threshold means, whether it is inclusive, or what happens to files newer than the cutoff; only the default of 30 in the schema hints at semantics.

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 names a specific verb and resource: cleaning up old cached media files (images and videos) to free disk space. It is distinguishable from read-only siblings like get_cache_stats or search_cached_media. It stops short of 5 because it never states the deletion criterion or scope beyond 'old'.

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?

It gives three usage contexts (removing old cached media, cleaning storage, cache too large), which is real when-to-use guidance. However, there are no when-not conditions, no prerequisites, and no routing to alternatives such as get_cache_stats for inspecting size before deleting.

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