Skip to main content
Glama
Wikimedia Commons MCP Server

Wikimedia Commons MCP Server

by irfandemir00

Get Structured Data on Commons

get_structured_data
Read-onlyIdempotent

Fetches multilingual captions and structured statements—including depicts, license, and copyright status—for a Wikimedia Commons file, with resolved Wikidata labels.

Instructions

Retrieve Wikibase MediaInfo (M-entity) multilingual captions and structured statements (such as P180 depicts, license, copyright status) with resolved Wikidata labels.

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": {
      "title": "<title>"
    },
    "name": "get_structured_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesCommons file title (with or without File: prefix)
languageNoPreferred language code for resolved Wikidata labels (default "en")

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 cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description only needs to add context. It usefully discloses that labels are resolved from Wikidata and enumerates the kinds of statements returned, but says nothing about behavior for missing files, redirects, or rate limits.

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?

A single well-formed sentence that front-loads the verb and resource and spends its words on the discriminating details (M-entity, P180, resolved labels). No filler, though the parenthetical list is dense.

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?

For a two-parameter read-only lookup with no output schema, the description conveys enough: what entity type is read, what kinds of data come back, and that labels are pre-resolved. Missing only edge-case behavior, which is minor here.

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 coverage is 100%, with both the title format (optional File: prefix) and language code default documented in the schema itself. The description's mention of "multilingual" and "resolved Wikidata labels" gestures at the language parameter but adds no syntax or format detail beyond the schema.

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?

States a specific verb ("retrieve") and a precisely named resource (Wikibase MediaInfo M-entity captions and structured statements), with concrete example properties (P180 depicts, license, copyright status). It is clearly different from a generic file-details or search tool, though it never explicitly contrasts itself with those siblings.

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: an agent can infer this is the tool for structured/caption data rather than file metadata or search, but the description gives no explicit when-to-use condition or named alternative (e.g., get_file_details for basic metadata).

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