Skip to main content
Glama
Strapi 5 MCP Server (God Mode)

Strapi 5 MCP Server (God Mode)

by thinhnd028

strapi_replace_media_urls

Replace old media base URLs with a new base URL across Strapi content to update stored asset links after a domain or CDN change.

Instructions

Replace media URLs globally.

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": {
      "oldBaseUrl": "<oldBaseUrl>",
      "newBaseUrl": "<newBaseUrl>"
    },
    "name": "strapi_replace_media_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
newBaseUrlYes
oldBaseUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden for what is plainly a bulk mutation, and it does disclose one useful trait: the operation is global in scope. It says nothing about whether the change is reversible, what permissions are required, whether content entries or only media records are touched, or how many records typically change.

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?

One short sentence with no filler and nothing buried, so it is maximally concise. But brevity here crosses into under-specification rather than efficient communication; the single sentence leaves out information an agent needs before invoking a global mutation.

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

Completeness2/5

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

For a two-parameter destructive-style rewrite with zero annotation coverage, no output schema, and 0% parameter documentation, the description is thin. An agent cannot determine scope of effect, safety, or expected result from it, and nothing else in the definition fills that gap.

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?

Schema description coverage is 0%, so both parameters are documented only by their names. 'oldBaseUrl'/'newBaseUrl' imply URL prefixes, but the description adds nothing about expected format, scheme, trailing-slash handling, or matching semantics — the details that determine whether a global replace behaves as intended.

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

Purpose3/5

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

The description gives a verb ('Replace'), a resource ('media URLs'), and a scope ('globally'), which is more than a restatement of the name. However, it never specifies what 'media URLs' are being rewritten — media library records, URL fields inside content entries, or serialized references — which is the key ambiguity for a rewrite tool.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of an alternative approach. None of the siblings (list_media, query, update_entry) is referenced, even though an agent could plausibly reach for entry-level updates instead.

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