Skip to main content
Glama
crunchtools

mcp-mediawiki-crunchtools

by crunchtools

get_file_info_tool

Retrieve file or image metadata from a MediaWiki instance, including URL, size, dimensions, and MIME type. Provide the filename to inspect wiki media details.

Instructions

Get file/image metadata from the wiki.

Args: filename: File name (with or without "File:" prefix)

Returns: File metadata including URL, size, dimensions, and MIME type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • removedInput schema / properties / filename / description
      Removed value: -"File name (with or without \"File:\" prefix)"
  2. Changed1 schema field changed
    • addedInput schema / properties / filename / description
      Added value: +"File name (with or without \"File:\" prefix)"
  3. First observedv0.1.3

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It documents return values (URL, size, dimensions, MIME type) but omits safety traits (read-only status), error handling (file not found behavior), and authentication requirements.

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

Conciseness5/5

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

Uses efficient docstring format (Args/Returns) with zero filler. The opening sentence states purpose immediately, followed by precise parameter and return documentation. Every line provides essential information.

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?

Appropriately complete for a single-parameter metadata tool with output schema. The description documents return values comprehensively, though mentioning error cases (e.g., non-existent files) would strengthen completeness.

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

Parameters5/5

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

Schema coverage is 0%, leaving the filename parameter undocumented in structured fields. The description fully compensates by clarifying it accepts 'File name (with or without "File:" prefix)', providing critical syntax semantics absent from the schema.

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

Purpose5/5

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

The description uses a specific verb ('Get') with clear resource ('file/image metadata') and scope ('from the wiki'). It effectively distinguishes from siblings like get_page_tool (content vs. metadata) and list_files_tool (retrieval vs. enumeration).

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?

The description provides implicit usage guidance by noting the filename accepts 'File:' prefix variations, but lacks explicit when-to-use guidance or comparison to alternatives like list_files_tool for discovery scenarios.

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