Skip to main content
Glama

wikidata query

wikidata_query
Read-only

Structured facts from Wikidata: look up any person, company, place or thing by name (founders, CEO, HQ, industry, website, revenue, employees, ticker, population, coordinates...) or run your own SPARQL query (500 rows). Costs $0.003 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
qNo
sparqlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already mark it read-only and open-world, so the safety profile is covered. The description adds genuinely useful operational detail: a 500-row result cap and a $0.003 USDC (x402) cost per call, which is exactly the kind of non-obvious constraint an agent needs before invoking.

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?

One dense, front-loaded sentence that leads with the payload (structured facts from Wikidata) and folds pricing/limits in as a trailing clause. Efficient, though the parenthetical attribute list is long and slightly dilutes the signal.

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

Completeness3/5

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

For a two-parameter, no-output-schema tool, the description covers the data domain and operational limits but omits precedence between the two mutually suggestive parameters and any hint of error/empty-result behavior. Adequate but with a clear gap around the q/sparql relationship.

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 0%, so the description must carry the parameter burden. It maps loosely onto the schema by describing a name-based lookup and a raw SPARQL path, implying q vs. sparql, but never names the parameters, states they are required, or clarifies whether they are mutually exclusive or combinable. Partial compensation only.

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 and resource: fetch structured facts from Wikidata, with concrete example attributes (founders, CEO, HQ, revenue, coordinates). It is clear what the tool returns, though it does not explicitly distinguish itself from near-neighbors such as facts, entities, or company.

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?

It explains the two modes of operation (name lookup vs. custom SPARQL) and notes the 500-row cap and per-call price, which is real usage context. However, it never says when to prefer this over the sibling facts/entities tools, nor when to choose name lookup vs. SPARQL.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources