Endpoints: 28,729MCP servers: 18,413Payout addresses: 2,071Paid calls: 1,556Letters: 14Defects: 1,331counted 2 min ago
teppi

Server definition

Hash
sha256:3d72a279a8e0ad9aabf71dbf34c4f6e45540a31afb5b2456b482314086f02c49
What it is
What a remote MCP server returned when asked what it offers: 7 tools

The blob, as servednamed by its sha256

{ "instructions": "Use the wikidata_* tools to query the Wikidata knowledge graph (REST API + Query Service). No API key required. Items are addressed by Q-IDs (e.g. Q76), properties by P-IDs (e.g. P31). IDs are not names — resolve a name to an ID with wikidata_search_entities first, then fetch with wikidata_get_entity, wikidata_get_statements, or wikidata_get_sitelinks. Use wikidata_resolve_external_id to enter the graph from a DOI, PMID, ORCID, or OpenAlex ID. wikidata_sparql_query is the escape hatch for graph traversals and aggregations the curated tools cannot express (SELECT only, rate-limited); pair it with wikidata_get_labels to humanize the QIDs it returns.", "tools": [ { "description": "Fetch a Wikidata entity (item or property) by QID or PID. The fields parameter narrows the upstream fetch, not just the response — asking for labels alone costs a fraction of the whole entity, so name the fields you need. Omit fields for all data; a well-connected item is large enough to overflow, and an oversized entity returns kind: \"outline\" — the field categories with their byte sizes — instead of the data. Follow its retrieval_notice literally rather than picking from sections yourself — it names a fields set already measured to fit, since category sizes are additive and requesting them all would overflow again; for a category too large to deliver whole (statements or sitelinks on a major item) it names the sibling tool that can narrow it. Q-IDs (e.g. Q76) fetch items; P-IDs (e.g. P31) fetch properties from the correct endpoint automatically. Use wikidata_get_statements for deep claim traversal with label resolution, and whenever an entity's statements are large — its properties parameter selects individual P-IDs, granularity fields does not carry.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "fields": { "description": "Fields to include. Options: \"labels\", \"descriptions\", \"aliases\", \"statements\", \"sitelinks\". Narrows the upstream fetch as well as the response, so a narrow selection is markedly cheaper. Omit for all fields.", "items": { "enum": [ "labels", "descriptions", "aliases", "statements", "sitelinks" ], "type": "string" }, "type": "array" }, "id": { "description": "Q-ID (e.g., \"Q76\") or P-ID (e.g., \"P31\"). Case-insensitive — normalized to uppercase.", "minLength": 1, "type": "string" }, "languages": { "description": "Language codes to include in labels, descriptions, and aliases (e.g., [\"en\", \"de\"]). A requested language with no label of its own falls back to the entity's multilingual (\"mul\") value, returned under the requested code. Omit to return all available languages.", "items": { "type": "string" }, "type": "array" } }, "required": [ "id" ], "type": "object" }, "name": "wikidata_get_entity", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "id", "type", "kind", "fieldsReturned" ] }, { "required": [ "error" ] } ], "properties": { "aliases": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Map of language code to list of alias strings (e.g., {\"en\": [\"Barack H. Obama\", \"President Obama\"]}).", "propertyNames": { "type": "string" }, "type": "object" }, "data_type": { "description": "Property data type (e.g., \"wikibase-item\", \"external-id\"). Present on properties only.", "type": "string" }, "descriptions": { "additionalProperties": { "type": "string" }, "description": "Map of language code to description string (e.g., {\"en\": \"44th President of the United States\"}).", "propertyNames": { "type": "string" }, "type": "object" }, "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `entity_not_found`: No entity exists at this ID — either unassigned (resource-not-found) or out of range (invalid-path-parameter). `invalid_id`: ID format is not recognized as a Q-ID or P-ID. Other values are possible when a failure originates below the handler.", "examples": [ "entity_not_found", "invalid_id" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "fieldsReturned": { "description": "Which fields were requested. In outline mode these are the categories the outline covers, not data returned.", "items": { "type": "string" }, "type": "array" }, "id": { "description": "Normalized entity ID (e.g., \"Q76\" or \"P31\").", "type": "string" }, "kind": { "description": "full — the requested field categories carry their data. outline — the entity overflowed the inline byte budget, so sections lists the categories with their byte sizes instead, and retrieval_notice names how to fetch each one. The id and type are present either way.", "enum": [ "full", "outline" ], "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, "description": "Map of language code to label string (e.g., {\"en\": \"Barack Obama\", \"de\": \"Barack Obama\"}).", "propertyNames": { "type": "string" }, "type": "object" }, "retrieval_notice": { "description": "Present when kind = outline: the next call to make, and the authoritative one to follow. It names a literal fields set already measured to fit the budget, defers any category that would not fit alongside it, and for a category too large for fields to deliver at all names the sibling tool (wikidata_get_statements, wikidata_get_sitelinks) or the languages parameter that can narrow it.", "type": "string" }, "sections": { "description": "Present when kind = outline: the entity's field categories, largest first, each with its byte size. Sizes are additive — a set of categories is only retrievable together if their total fits the budget, so follow retrieval_notice rather than requesting every name listed here.", "items": { "additionalProperties": false, "description": "An available field category — its name and the serialized byte size of its data.", "properties": { "bytes": { "description": "Serialized byte size of the section", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "name": { "description": "Section identifier — pass in `sections` to retrieve it", "type": "string" } }, "required": [ "name", "bytes" ], "type": "object" }, "type": "array" }, "sitelinks": { "additionalProperties": { "additionalProperties": {}, "properties": {}, "type": "object" }, "description": "Map of site code (e.g., \"enwiki\") to sitelink metadata with title, url, and badges fields.", "propertyNames": { "type": "string" }, "type": "object" }, "statements": { "additionalProperties": { "items": { "additionalProperties": {}, "properties": {}, "type": "object" }, "type": "array" }, "description": "Map of property ID to array of raw statement objects. Use wikidata_get_statements for resolved claims with label resolution, and whenever this entity's statements are large — its properties parameter selects individual P-IDs, granularity fields does not carry.", "propertyNames": { "type": "string" }, "type": "object" }, "type": { "description": "Entity type: \"item\" or \"property\".", "type": "string" } }, "type": "object" } }, { "description": "Resolve one or more QIDs or PIDs to their human-readable labels and descriptions. Lightweight — returns no claim data. Supports up to 50 IDs per call (batched automatically). Designed for the common agent pattern: receive QIDs from a SPARQL query, then humanize them.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "ids": { "description": "Q-IDs (e.g., \"Q76\") or P-IDs (e.g., \"P31\") to resolve. 1–50 IDs per call.", "items": { "minLength": 1, "type": "string" }, "maxItems": 50, "minItems": 1, "type": "array" }, "languages": { "default": [ "en" ], "description": "BCP 47 language codes for returned labels and descriptions (e.g., [\"en\", \"de\", \"fr\"]). A language with no label of its own falls back to the entity's multilingual (\"mul\") value, returned under the requested code.", "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": [ "ids" ], "type": "object" }, "name": "wikidata_get_labels", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "entities", "found", "notFound", "languages" ] }, { "required": [ "error" ] } ], "properties": { "entities": { "additionalProperties": { "additionalProperties": false, "properties": { "descriptions": { "additionalProperties": { "type": "string" }, "description": "Map of language code to description string. Keys match the requested languages that have data.", "propertyNames": { "type": "string" }, "type": "object" }, "labels": { "additionalProperties": { "type": "string" }, "description": "Map of language code to label string. Keys match the requested languages that have data.", "propertyNames": { "type": "string" }, "type": "object" } }, "required": [ "labels", "descriptions" ], "type": "object" }, "description": "Map of entity ID to labels and descriptions. IDs that were not found are absent.", "propertyNames": { "type": "string" }, "type": "object" }, "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `invalid_ids`: One or more IDs in the array are not valid Q-IDs or P-IDs. Other values are possible when a failure originates below the handler.", "examples": [ "invalid_ids" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "found": { "description": "Count of IDs that returned data.", "type": "number" }, "languages": { "description": "The language codes that were requested.", "items": { "type": "string" }, "type": "array" }, "notFound": { "description": "IDs from the request that did not return data (not found or invalid).", "items": { "type": "string" }, "type": "array" } }, "type": "object" } }, { "description": "Fetch Wikipedia and Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., \"enwiki\") to a Wikipedia article title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific language editions, or wikis_only to return only Wikipedia links. Only Q-IDs (items) have sitelinks — properties (P-IDs) do not.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "Q-ID of the item (e.g., \"Q76\"). Only items have sitelinks; properties (P-IDs) are not supported.", "minLength": 1, "type": "string" }, "sites": { "description": "Optional filter to specific site codes (e.g., [\"enwiki\", \"frwiki\", \"dewiki\"]). Omit to return all sitelinks.", "items": { "minLength": 1, "type": "string" }, "type": "array" }, "wikis_only": { "default": false, "description": "When true, return only Wikipedia sitelinks (site codes ending in \"wiki\", e.g., \"enwiki\", \"dewiki\"). Excludes Wikisource, Wiktionary, Wikiquote, etc.", "type": "boolean" } }, "required": [ "id" ], "type": "object" }, "name": "wikidata_get_sitelinks", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "id", "sitelinks", "count" ] }, { "required": [ "error" ] } ], "properties": { "count": { "description": "Number of sitelinks returned.", "type": "number" }, "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `entity_not_found`: No item exists at this Q-ID — either unassigned or out of range. `not_an_item`: A P-ID was supplied — only items (Q-IDs) have sitelinks. Other values are possible when a failure originates below the handler.", "examples": [ "entity_not_found", "not_an_item" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "description": "The Q-ID whose sitelinks were fetched.", "type": "string" }, "message": { "description": "Informational note when no sitelinks were found. Absent when sitelinks are present.", "type": "string" }, "sitelinks": { "additionalProperties": { "additionalProperties": false, "properties": { "badges": { "description": "Quality badge QIDs (e.g., \"Q17437798\" = featured article).", "items": { "type": "string" }, "type": "array" }, "title": { "description": "Article title on that wiki.", "type": "string" }, "url": { "description": "Full URL to the article. Omitted when unavailable.", "type": "string" } }, "required": [ "title" ], "type": "object" }, "description": "Map of site code to sitelink metadata. Empty when the entity has no matching sitelinks.", "propertyNames": { "type": "string" }, "type": "object" } }, "type": "object" } }, { "description": "Fetch property claims for a Wikidata entity with qualifier and reference detail. Value QIDs are resolved to human-readable labels by default. Use the properties parameter to fetch only specific P-IDs — omitting it returns every statement, and a well-connected item (a country, a major city) carries hundreds of properties: more than fits inline. An oversized set comes back as kind: \"outline\" — every available P-ID with its byte size, largest first — instead of the statements; re-call with the same id plus properties:[...] naming the P-IDs you want. Designed for fact verification: \"what does Wikidata say about this entity's {property}?\". Preferred-rank statements are the most current values.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "Q-ID (e.g., \"Q76\") or P-ID of the entity to fetch statements for.", "minLength": 1, "type": "string" }, "language": { "default": "en", "description": "Language code for label resolution of QID values (e.g., \"en\", \"de\").", "type": "string" }, "properties": { "description": "P-IDs to fetch (e.g., [\"P31\", \"P569\", \"P27\"]). Omit to return all properties (may be large for major items).", "items": { "minLength": 1, "type": "string" }, "type": "array" }, "resolve_labels": { "default": true, "description": "Resolve wikibase-item value QIDs to human-readable labels via a batched label call. Set to false to skip label resolution and return raw QIDs only (faster, smaller payload).", "type": "boolean" } }, "required": [ "id" ], "type": "object" }, "name": "wikidata_get_statements", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "id", "kind", "propertyCount", "statementCount", "labelsResolved" ] }, { "required": [ "error" ] } ], "properties": { "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `entity_not_found`: No entity exists at this QID — either unassigned or out of range. `invalid_id`: ID is not a valid Q-ID or P-ID format. `invalid_property`: A properties entry is not a valid P-ID format. Other values are possible when a failure originates below the handler.", "examples": [ "entity_not_found", "invalid_id", "invalid_property" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "description": "The entity ID whose statements were fetched.", "type": "string" }, "kind": { "description": "full — statements carries the claims. outline — the statement set overflowed the inline byte budget, so sections lists the P-IDs available instead; re-call with properties:[...] to retrieve specific ones. The counts below are reported either way.", "enum": [ "full", "outline" ], "type": "string" }, "labelsResolved": { "description": "True when QID values were resolved to labels. False when resolve_labels was set to false.", "type": "boolean" }, "propertyCount": { "description": "Number of distinct properties — those returned in full mode, those offered as sections in outline mode.", "type": "number" }, "retrieval_notice": { "description": "Present when kind = outline: how to re-call for specific properties.", "type": "string" }, "sections": { "description": "Present when kind = outline: the P-IDs this entity carries statements for, largest first. Copy names into the properties input to retrieve them.", "items": { "additionalProperties": false, "description": "An available property — its P-ID and the serialized byte size of its statements.", "properties": { "bytes": { "description": "Serialized byte size of the section", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "name": { "description": "Section identifier — pass in `sections` to retrieve it", "type": "string" } }, "required": [ "name", "bytes" ], "type": "object" }, "type": "array" }, "statementCount": { "description": "Total number of statement objects across all properties. Counted before any overflow, so it reports the entity's full statement volume in both modes.", "type": "number" }, "statements": { "additionalProperties": { "items": { "additionalProperties": {}, "properties": {}, "type": "object" }, "type": "array" }, "description": "Map of property ID to array of normalized statements. Each statement has id, rank, property, value (with type-specific fields), and optional qualifiers and references arrays. Present in full mode; omitted in outline mode.", "propertyNames": { "type": "string" }, "type": "object" } }, "type": "object" } }, { "description": "Look up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, or OpenAlex ID. Returns match=<entity> on success, match=null when not found, and match=null with multipleMatches populated when a Wikidata data integrity issue causes more than one entity to claim the same external ID. Common cross-server join use cases: CrossRef DOI → Wikidata paper QID (P356), PubMed PMID → Wikidata paper QID (P698), ORCID → author QID (P496), OpenAlex ID → entity QID (P10283). The property must be one whose Wikidata data type is external-id — item-valued or media properties (e.g. P31 instance-of, P18 image) are rejected rather than returning an empty match. Known value normalization is applied automatically: surrounding whitespace is trimmed, identifier-resolver URL prefixes are stripped (https://doi.org/, https://pubmed.ncbi.nlm.nih.gov/, https://orcid.org/), DOIs are uppercased, PMID prefixes stripped, ORCID hyphens normalized.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "language": { "default": "en", "description": "Language code for label and description in the response (e.g., \"en\", \"de\").", "type": "string" }, "property": { "description": "P-ID of the external identifier property, whose Wikidata data type must be external-id (e.g., \"P356\" for DOI, \"P698\" for PubMed ID, \"P496\" for ORCID, \"P10283\" for OpenAlex ID, \"P345\" for IMDb ID). Properties of any other data type are rejected — check an unfamiliar P-ID's data type with wikidata_get_entity.", "minLength": 1, "type": "string" }, "value": { "description": "The external identifier value to look up (e.g., \"10.1038/nature01234\" for a DOI, \"32283226\" for a PubMed ID, \"0000-0002-1825-0097\" for an ORCID). A resolver URL is accepted for DOI, PubMed, and ORCID — the prefix is stripped before lookup.", "minLength": 1, "type": "string" } }, "required": [ "property", "value" ], "type": "object" }, "name": "wikidata_resolve_external_id", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "match", "property", "value" ] }, { "required": [ "error" ] } ], "properties": { "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `invalid_property`: Property ID is not in P+digits format. `not_external_id_property`: Property does not exist on Wikidata, or its data type is not external-id. Other values are possible when a failure originates below the handler.", "examples": [ "invalid_property", "not_external_id_property" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "match": { "anyOf": [ { "additionalProperties": false, "properties": { "description": { "description": "Short description in the requested language, or empty string if unavailable.", "type": "string" }, "id": { "description": "Wikidata Q-ID of the matching entity (e.g., \"Q12345\").", "type": "string" }, "label": { "description": "Display label in the requested language, or empty string if unavailable.", "type": "string" }, "url": { "description": "Wikidata entity page URL (e.g., \"https://www.wikidata.org/wiki/Q12345\").", "type": "string" } }, "required": [ "id", "label", "description", "url" ], "type": "object" }, { "type": "null" } ], "description": "Matching entity, or null when no Wikidata entity claims this external identifier (including the case where multipleMatches is populated). A null match is not proof of absence — the Query Service backing this lookup lags the live wiki, so a recently added identifier may not be indexed yet." }, "multipleMatches": { "description": "Present when more than one Wikidata entity claims this external ID (data integrity issue). match is null when this field is present. Inspect the list and select the correct QID manually.", "items": { "additionalProperties": false, "description": "One of the entities that claims this external identifier.", "properties": { "id": { "description": "Q-ID of a matching entity.", "type": "string" }, "label": { "description": "Display label of this match.", "type": "string" } }, "required": [ "id", "label" ], "type": "object" }, "type": "array" }, "property": { "description": "The P-ID used for the lookup.", "type": "string" }, "value": { "description": "The normalized value that was searched (may differ from input due to canonicalization).", "type": "string" } }, "type": "object" } }, { "description": "Search Wikidata for items or properties by text query. Returns QIDs or PIDs with labels, descriptions, and match metadata indicating whether the hit was on a label or alias. Use type=\"item\" for real-world concepts (people, places, works) and type=\"property\" to find predicate P-IDs. The API returns no total count — pagination is offset-based with no result ceiling indicator.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "language": { "default": "en", "description": "BCP 47 language code for returned labels and descriptions (e.g., \"en\", \"de\", \"zh\").", "type": "string" }, "limit": { "default": 10, "description": "Maximum number of results to return. Range: 1–50.", "maximum": 50, "minimum": 1, "type": "integer" }, "offset": { "default": 0, "description": "Pagination offset. Start at 0; increment by limit to page through results.", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "query": { "description": "Search terms to match against entity labels, aliases, and descriptions.", "minLength": 1, "type": "string" }, "type": { "default": "item", "description": "Entity type to search. Use \"item\" for Q-IDs (people, places, concepts) or \"property\" for P-IDs (predicates).", "enum": [ "item", "property" ], "type": "string" } }, "required": [ "query" ], "type": "object" }, "name": "wikidata_search_entities", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "results", "effectiveQuery", "searchType", "language", "shown", "cap" ] }, { "required": [ "error" ] } ], "properties": { "cap": { "description": "The limit parameter in effect.", "type": "number" }, "effectiveQuery": { "description": "The search query that was executed.", "type": "string" }, "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode.", "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "language": { "description": "The language used for label and description display.", "type": "string" }, "notice": { "description": "Recovery hint when results are empty — echoes filters and suggests how to broaden. Absent when results are present.", "type": "string" }, "results": { "description": "Ranked list of matching entities. Empty when no results found.", "items": { "additionalProperties": false, "description": "A single search result with entity ID, label, description, and match metadata.", "properties": { "description": { "description": "Short description in the requested language, or empty string if unavailable.", "type": "string" }, "id": { "description": "Q-ID (e.g., \"Q76\") or P-ID (e.g., \"P31\") of the entity.", "type": "string" }, "label": { "description": "Display label in the requested language, or empty string if unavailable.", "type": "string" }, "match": { "additionalProperties": false, "description": "Metadata about how this result matched the query.", "properties": { "language": { "description": "Language of the matched string.", "type": "string" }, "type": { "description": "Match type: \"label\" for a direct label hit, \"alias\" for an alias hit.", "type": "string" } }, "required": [ "type", "language" ], "type": "object" } }, "required": [ "id", "label", "description", "match" ], "type": "object" }, "type": "array" }, "searchType": { "description": "The entity type that was searched (\"item\" or \"property\").", "type": "string" }, "shown": { "description": "Number of results returned on this page.", "type": "number" }, "truncated": { "description": "True when results were capped at the limit. The Wikidata search API returns no total count — use offset pagination to retrieve more.", "type": "boolean" } }, "type": "object" } }, { "description": "Execute a SPARQL SELECT query against the Wikidata Query Service. Full graph power: multi-hop traversals, aggregations, subqueries, OPTIONAL, FILTER, UNION, BIND. Standard Wikidata prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are auto-injected. The wikibase:label SERVICE is also auto-injected when language is set and the query includes ?<var>Label variables — so you can use ?itemLabel without writing the boilerplate. Hard server timeout is 60s; use LIMIT to keep queries fast. Bindings use the SPARQL 1.1 JSON format: each value is { type, value, \"xml:lang\"? }. Use wikidata_get_labels to humanize QID results from this tool.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "language": { "default": "en", "description": "Language for the wikibase:label SERVICE (e.g., \"en\", \"de\"). Controls the language of ?<var>Label variables. Set to \"\" to suppress label SERVICE injection.", "type": "string" }, "query": { "description": "SPARQL SELECT query. Must be a SELECT query (not CONSTRUCT/DESCRIBE/ASK). Standard prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are injected automatically. Example: SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q146. } LIMIT 10", "minLength": 1, "type": "string" }, "timeout": { "default": 30, "description": "Client-side timeout in seconds (1–55). Capped at 55s — the Wikidata server hard limit is 60s.", "maximum": 55, "minimum": 1, "type": "integer" } }, "required": [ "query" ], "type": "object" }, "name": "wikidata_sparql_query", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "results", "variables", "truncated", "totalCount" ] }, { "required": [ "error" ] } ], "properties": { "error": { "additionalProperties": {}, "description": "Present when the call failed. Absent on success.", "properties": { "code": { "description": "JSON-RPC error code for this failure.", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" }, "data": { "additionalProperties": {}, "properties": { "reason": { "description": "Machine-readable failure mode. Declared by this tool: `parse_error`: SPARQL syntax error — the query could not be parsed. `timeout`: Query exceeded the client-side timeout. `throttled`: Wikidata SPARQL endpoint is rate-limited (60 req/min, 5 concurrent per IP). Other values are possible when a failure originates below the handler.", "examples": [ "parse_error", "timeout", "throttled" ], "type": "string" }, "recovery": { "additionalProperties": {}, "description": "Actionable next step for the caller.", "properties": { "hint": { "type": "string" } }, "required": [ "hint" ], "type": "object" }, "retryable": { "description": "Whether retrying may succeed.", "type": "boolean" } }, "type": "object" }, "message": { "description": "Human-readable description of what went wrong.", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "notice": { "description": "Recovery hint when no results returned — suggests checking query logic or broadening filters. Absent on non-empty results.", "type": "string" }, "results": { "description": "Array of result bindings. Each row maps variable names to binding objects with { type, value, \"xml:lang\"?, datatype? } fields.", "items": { "additionalProperties": { "additionalProperties": {}, "properties": {}, "type": "object" }, "propertyNames": { "type": "string" }, "type": "object" }, "type": "array" }, "totalCount": { "description": "Number of result rows returned.", "type": "number" }, "truncated": { "description": "True when the row count equals 10,000 — the Wikidata/Blazegraph server-side cap — indicating the result set was likely truncated. False otherwise. Add a LIMIT clause to avoid hitting the cap. Note: the SPARQL endpoint does not expose an explicit truncation flag; this is an inferred signal.", "type": "boolean" }, "variables": { "description": "Variable names returned by the SELECT clause.", "items": { "type": "string" }, "type": "array" } }, "type": "object" } } ] }
Verify it yourselfcurl -s https://api.teppi.xyz/v1/evidence/sha256:3d72a279a8e0ad9aabf71dbf34c4f6e45540a31afb5b2456b482314086f02c49 | sha256sum