Skip to main content
Glama
Wikimedia Commons MCP Server

Wikimedia Commons MCP Server

by irfandemir00

Search Wikimedia Commons Files

search_files
Read-onlyIdempotent

Search Wikimedia Commons media files by keywords, file type, category, or structured data statements, returning URLs, dimensions, MIME types, and license attribution.

Instructions

Search media files on Wikimedia Commons using keywords, file type filters, category filters, or Structured Data statements (e.g. P180=Q146). Returns URLs, dimensions, MIME types, and license attribution.

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": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoResult sort order (default: relevance)
limitNoResults per page (1-50, default 10)
queryNoSearch keywords or CirrusSearch terms
offsetNoPagination offset (default 0)
categoryNoRestrict search to a Commons category (with or without Category: prefix)
fileTypeNoFilter by Commons media type
thumbWidthNoThumbnail width in pixels (64-1280, default 320)
hasStatementNoFilter by Wikibase statement, e.g. "P180=Q146" (depicts house cat)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered structurally. The description adds genuine value by naming the returned fields (URLs, dimensions, MIME types, license attribution), which matters because there is no output schema. It says nothing about result caps, pagination behavior, or how thumbWidth affects the response, so it is useful but not rich.

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?

Two tightly written sentences with the capability front-loaded and the return payload second; no filler or repetition. Slightly dense clause stacking ('keywords, file type filters, category filters, or Structured Data statements') but every element earns its place.

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?

With 8 optional parameters, full schema coverage, and no output schema, the description does the important extra job of stating what comes back, which an agent needs since return values are otherwise undocumented. Pagination and sort behavior are left entirely to the schema, but nothing critical for correct invocation is missing.

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 description coverage is 100%, so all eight parameters including the enums for sort and fileType are already documented; baseline 3 applies. The description restates the filter categories and repeats the P180=Q146 example that already appears in the hasStatement schema entry, adding little beyond syntax already present.

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 leads with a specific verb and resource ('Search media files on Wikimedia Commons') and enumerates the four search modes (keywords, file type, category, Structured Data statements), which clearly separates it from a details or download tool. It does not explicitly distinguish itself from close siblings such as browse_category or search_nearby, so it stops short of a 5.

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?

Usage is only implied: the enumeration of filter modes suggests when each filter applies, and the P180=Q146 example hints at the structured-data path. There is no explicit when-to-use/when-not guidance and no sibling tool is named as an alternative for browsing a category or finding nearby files, leaving that routing to inference.

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