Medium Risk

upload_product_image

Attach an image to an existing product by giving Partle a public URL to download the image from. Authenticated. OAuth (scope products:write) preferred; api_key fallback. When to use this tool: the image is already hosted at a public URL (a scraped product page, an Imgur link, a CDN URL the user p...

Risk signalsHandles credentials or secrets (api_key)

Part of the Partle server.

upload_product_image can modify Partle data, with no limits today. PolicyLayer puts allow, deny, and rate-limit rules on every call. Live in minutes.

SECURE PARTLE →

Free to start. No card required.

AI agents use upload_product_image to create or modify resources in Partle. Write operations carry medium risk because an autonomous agent could trigger bulk unintended modifications. Rate limits prevent a single agent session from making hundreds of changes in rapid succession. Argument validation ensures the agent passes expected values.

Without a policy, an AI agent could call upload_product_image repeatedly, creating or modifying resources faster than any human could review. PolicyLayer's rate limiting ensures write operations happen at a controlled pace, and argument validation catches malformed or unexpected inputs before they reach Partle.

Write tools can modify data. A rate limit prevents runaway bulk operations from AI agents.

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "upload_product_image": {
      "limits": [
        {
          "counter": "upload_product_image_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}

See the full Partle policy for all 21 tools.

Get this rule live on your own Partle server in minutes. PolicyLayer enforces it on every call, before it runs.

ENFORCE ON MY PARTLE →

View all 21 tools →

These attack patterns abuse exactly the kind of access upload_product_image gives an agent. Each links to the full case and the policy that stops it:

Browse the full MCP Attack Database →

Every attack above starts with a tool call. PolicyLayer checks each one against your policy first, so upload_product_image only ever does what you allow.

SECURE PARTLE →

Other write tools across the catalogue. The same approach applies to each: rate-limit and validate the arguments.

What does the upload_product_image tool do? +

Attach an image to an existing product by giving Partle a public URL to download the image from. Authenticated. OAuth (scope products:write) preferred; api_key fallback. When to use this tool: the image is already hosted at a public URL (a scraped product page, an Imgur link, a CDN URL the user provided). Partle's server fetches it and stores it. When NOT to use this tool: you have local image bytes (a file the user attached, or bytes you generated/downloaded in your sandbox). Sending those bytes through a tool argument blows past conversation context limits — phone-photo-sized payloads can be 6+ MB of base64. Instead, in your code-execution sandbox, POST the file directly to the HTTP endpoint with multipart encoding: requests.post( "https://partle.rubenayla.xyz/v1/external/products/{product_id}/images", files={"file": open("/path/to/photo.jpg", "rb")}, headers={"X-API-Key": "pk_..."}, ) Or, to create the listing and attach an image in one HTTP request: requests.post( "https://partle.rubenayla.xyz/v1/external/products", data={"metadata": json.dumps({"name": ..., "price": ...})}, files={"image": open("/path/to/photo.jpg", "rb")}, headers={"X-API-Key": "pk_..."}, ) Args: product_id: ID of the product to attach the image to. image_url: Publicly fetchable URL of the image. Server fetches it and stores it. api_key: Legacy/fallback auth. Omit when using OAuth. Returns: The created ProductImage record with its id (use for deletion) and storage path, or {"error": ...} on validation/auth failure.. It is categorised as a Write tool in the Partle MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on upload_product_image? +

Register the Partle MCP server in PolicyLayer and add a rule for upload_product_image: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Partle. Nothing to install.

What risk level is upload_product_image? +

upload_product_image is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit upload_product_image? +

Yes. Add a rate_limit block to the upload_product_image rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block upload_product_image completely? +

Set action: deny in the PolicyLayer policy for upload_product_image. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides upload_product_image? +

upload_product_image is provided by the Partle MCP server (https://partle.rubenayla.xyz/mcp/). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Partle tool call.

Deterministic rules across all 21 Partle tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Free to start. No card required.

4,600+ MCP servers and 31,000+ tools scanned and risk-classified.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.