Endpoints: 28,729MCP servers: 18,413Payout addresses: 2,071Paid calls: 1,539Letters: 14Defects: 1,323counted just now
teppi

Server definition

Hash
sha256:8a39cbd909f2957938165a4ef8ff92e72deec52633f0a14dde45dddffb1b19a4
What it is
What a remote MCP server returned when asked what it offers: 5 tools

The blob, as servednamed by its sha256

{ "instructions": "Use the openalex_* tools to query the OpenAlex scholarly catalog (works, authors, sources, institutions, topics, keywords, publishers, funders): resolve names to IDs, search/filter/sort or fetch by ID, and group_by for trends. Names are ambiguous and IDs are not — call openalex_resolve_name before filtering by entity. Record responses hold to 64,000 bytes per surface: a cut page names its `omitted` IDs and the call that returns them (in OpenAlex's order), and an array too long to fit comes back as a window that an `id` lookup pages with `slice`.", "tools": [ { "description": "Aggregate OpenAlex entities into groups and count them. Use for trend analysis (group works by publication_year), distribution analysis (group by oa_status, type, country), and comparative analysis (group by institution or topic). Combine with filters to scope the analysis. Returns up to 200 groups per page — use cursor pagination for fields with many distinct values.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "cursor": { "description": "Pagination cursor from a previous response. Only relevant when order is \"key\" — count-descending results have no next page. Pass the next_cursor from the previous response to advance. Omit it on the first call — an empty string is rejected, since a supplied-but-blank cursor is a caller mistake rather than a request for the first page.", "minLength": 1, "type": "string" }, "entity_type": { "description": "Entity type to aggregate.", "enum": [ "works", "authors", "sources", "institutions", "topics", "keywords", "publishers", "funders" ], "type": "string" }, "filters": { "additionalProperties": { "type": "string" }, "description": "Filter criteria (same syntax as openalex_search_entities filters). Narrows the population before aggregation. For full-text within filters, use abstract.search, title.search, or default.search — there is no bare 'search' filter key. Example: group works by year filtered to a specific topic.", "propertyNames": { "type": "string" }, "type": "object" }, "group_by": { "description": "Field to group by. Works examples: \"publication_year\", \"type\", \"oa_status\", \"primary_topic.field.id\", \"authorships.institutions.country_code\", \"is_retracted\". OpenAlex builds authorships.countries groups from only the first 100 authorships of each work; authorships.institutions.country_code counts every authorship. Authors: \"last_known_institutions.country_code\", \"has_orcid\". Sources: \"type\", \"is_oa\", \"country_code\". Not all fields support group_by — call openalex_describe_fields(entity_type, \"group_by\") for the groupable set.", "minLength": 1, "type": "string" }, "include_unknown": { "default": false, "description": "Add a group for entities with no value for the grouped field. Hidden by default. That group carries `is_unknown: true`; OpenAlex keys it -111 or -111.0 on numeric fields, \"unknown\" on text fields and under order \"key\", and an ID ending in /unknown on ID fields — a sentinel, not a measured value. The key is not a filter value: passing -111 as a filter matches a numeric range, not the entities with no value. Boolean fields have no separate group — a missing value counts as false.", "type": "boolean" }, "order": { "description": "Sort order for groups. Omit or pass \"count\" (default) to return the top-N groups by count descending — no further pages. Pass \"key\" to enumerate all distinct values in key-ascending order with cursor pagination. Use \"key\" only when you need a full traversal; most analysis calls want \"count\".", "enum": [ "count", "key" ], "type": "string" }, "per_page": { "default": 200, "description": "Maximum groups per page (1-200). Default 200 (the upstream cap). A real top-N knob when order is count (the default) — reduce to return only the highest-count groups.", "maximum": 200, "minimum": 1, "type": "integer" } }, "required": [ "entity_type", "group_by" ], "type": "object" }, "name": "openalex_analyze_trends", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "meta", "groups", "echo", "totalCount" ] }, { "required": [ "error" ] } ], "properties": { "budget": { "additionalProperties": false, "description": "What this call cost against the OpenAlex daily budget and what is left of it — weigh `remainingUsd` against `costUsd` before enumerating every group with `order: \"key\"`. Absent when OpenAlex omitted the accounting headers.", "properties": { "costUsd": { "description": "USD this call spent. Aggregation is priced far below paging the same entities, so a group_by is the cheap way to size a population before searching it.", "type": "number" }, "prepaidRemainingUsd": { "description": "USD left in the prepaid balance — a separate pool OpenAlex draws on only after the daily allowance runs out, and which the daily reset does not refill. Add it to `remainingUsd` for the full spendable amount. Absent when the account holds no prepaid balance.", "type": "number" }, "remainingUsd": { "description": "USD left in today's OpenAlex budget after this call.", "type": "number" }, "resetsInSeconds": { "description": "Seconds until the daily budget refills (midnight UTC).", "type": "number" } }, "required": [ "costUsd", "remainingUsd", "resetsInSeconds" ], "type": "object" }, "echo": { "description": "Compact echo of the input criteria (entity_type, group_by, filters) — surfaces what was actually requested when no groups are returned.", "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. Declared by this tool: `rate_limited`: OpenAlex throttled the request for exceeding its per-second ceiling (HTTP 429). `upstream_budget_exhausted`: The OpenAlex daily usage budget is spent (HTTP 429). `upstream_timeout`: OpenAlex did not respond within the request deadline. `upstream_unavailable`: OpenAlex was unreachable or unusable — HTTP 503, a connection failure, or a body that was empty, HTML, or unparseable JSON. `upstream_unauthorized`: OpenAlex rejected the API key (HTTP 401). `upstream_forbidden`: OpenAlex denied access to the requested resource (HTTP 403). `comma_in_filter_value`: A filter value contains a comma, which collides with the OpenAlex filter separator. `upstream_invalid_params`: OpenAlex rejected an invalid group_by or filter field name (HTTP 400). `upstream_invalid_id_value`: An entity-ID filter received a value that is not an OpenAlex ID — usually a name (HTTP 400). `upstream_ungroupable_group_by`: group_by targets a field OpenAlex cannot aggregate — a raw date, a decimal score, a *.search operator, a field such as display_name, doi, or referenced_works, or a concept key on authors, which OpenAlex reports as an invalid OpenAlex ID (HTTP 400). `upstream_invalid_params_other`: OpenAlex rejected the request (HTTP 400) for a reason other than an invalid field name. `upstream_validation_failed`: OpenAlex rejected the request as semantically invalid (HTTP 422). `upstream_missing_group_by`: OpenAlex answered with its plain list shape, carrying no aggregation for the requested group_by. Other values are possible when a failure originates below the handler.", "examples": [ "rate_limited", "upstream_budget_exhausted", "upstream_timeout", "upstream_unavailable", "upstream_unauthorized", "upstream_forbidden", "comma_in_filter_value", "upstream_invalid_params", "upstream_invalid_id_value", "upstream_ungroupable_group_by", "upstream_invalid_params_other", "upstream_validation_failed", "upstream_missing_group_by" ], "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" }, "groups": { "description": "Aggregation groups with counts.", "items": { "additionalProperties": false, "description": "A single aggregation group with its key, display label, and entity count.", "properties": { "count": { "description": "Number of entities in this group.", "type": "number" }, "is_unknown": { "const": true, "description": "Present only on the group include_unknown adds for entities with no value; its key is an OpenAlex sentinel (-111, -111.0, unknown, or an ID ending in /unknown), not a measured value.", "type": "boolean" }, "key": { "description": "Group key (OpenAlex ID or raw value), exactly as OpenAlex returns it.", "type": "string" }, "key_display_name": { "description": "Human-readable group label as plain text, with HTML entities decoded and markup removed.", "type": "string" } }, "required": [ "key", "key_display_name", "count" ], "type": "object" }, "type": "array" }, "meta": { "additionalProperties": false, "description": "Aggregation metadata.", "properties": { "count": { "description": "Total entities matching the filters (before grouping).", "type": "number" }, "groups_count": { "description": "Number of groups on this page (max 200).", "type": [ "number", "null" ] }, "next_cursor": { "description": "Cursor for next page of groups. null if no more groups.", "type": [ "string", "null" ] } }, "required": [ "count", "groups_count", "next_cursor" ], "type": "object" }, "notice": { "description": "Guidance notice. Set when a first call returns no groups (recovery suggestions), when a `cursor` continuation returns none because the traversal is already finished, when the page is full and more groups likely exist (truncation signal with narrowing advice), or when works are grouped by authorships.countries, which OpenAlex counts from only the first 100 authorships of each work. Absent otherwise.", "type": "string" }, "totalCount": { "description": "Total entities matching the filters before grouping (across all pages).", "type": "number" } }, "type": "object" } }, { "description": "List valid field names for an OpenAlex entity type and context (filter, group_by, or select). Use proactively before constructing a filter or group_by to avoid invalid-field 400 errors. Pass `query` to rank the list by name similarity — useful when you have a partial or guessed field name. Ranking never drops a field: the full list comes back either way.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context": { "description": "Field usage context. \"filter\": fields accepted in the filter param. \"group_by\": fields accepted in group_by — a subset of the filter set that leaves out what OpenAlex refuses to aggregate (raw dates, *.search operators, decimal scores, display_name, and external-ID fields among them). \"select\": fields accepted in select.", "enum": [ "filter", "group_by", "select" ], "type": "string" }, "entity_type": { "description": "OpenAlex entity type to list fields for.", "enum": [ "works", "authors", "sources", "institutions", "topics", "keywords", "publishers", "funders" ], "type": "string" }, "query": { "description": "Optional partial or guessed field name to sort results by similarity. Pass the field you tried (e.g. \"funder\") to get the closest matches first. The complete field list is returned either way — a query reorders it, it does not filter it, so a nested value's parent object (e.g. `summary_stats` for \"h_index\") is still reachable further down.", "type": "string" } }, "required": [ "entity_type", "context" ], "type": "object" }, "name": "openalex_describe_fields", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "entity_type", "context", "fields", "total" ] }, { "required": [ "error" ] } ], "properties": { "context": { "description": "Context queried (filter, group_by, or select).", "type": "string" }, "entity_type": { "description": "Entity type queried.", "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" }, "fields": { "description": "Every valid field name for this entity_type + context — the complete pool, ranked by similarity when `query` is provided. Never truncated, so this always holds `total` entries.", "items": { "type": "string" }, "type": "array" }, "total": { "description": "Total number of valid fields for this entity_type + context.", "type": "number" } }, "type": "object" } }, { "description": "Walk the citation graph one hop from a seed work. Direction picks the edge: incoming citations (`cites`), the seed's own references (`cited_by`), or OpenAlex's algorithmically-related works (`related_to`). Note: `direction` follows OpenAlex's filter convention, which inverts the common English reading — `cites` returns works that cite the seed; `cited_by` returns works the seed cites. Results use the works schema; combine with filters/sort to narrow further. Responses cap at 64,000 bytes per surface unless the least a call can return is larger (`over_budget`); `omitted` and `windows` give the openalex_search_entities calls that continue a cut.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "cursor": { "description": "Pagination cursor from a previous response. Pass to get the next page. Omit it on the first call — an empty string is rejected, since a supplied-but-blank cursor is a caller mistake rather than a request for the first page.", "minLength": 1, "type": "string" }, "direction": { "description": "\"cites\": works that cite seed_id (incoming citations). \"cited_by\": works that seed_id cites (its reference list). \"related_to\": OpenAlex algorithmically-related works (~8-30 typical, may be empty for less-cited seeds).", "enum": [ "cites", "cited_by", "related_to" ], "type": "string" }, "filters": { "additionalProperties": { "type": "string" }, "description": "Additional filters to narrow the graph, same syntax as openalex_search_entities. Example: publication_year=\">2020\", is_oa=\"true\". Do not include cites/cited_by/related_to, nor an alias of one such as cited_works — those keys are set by the `direction` parameter.", "propertyNames": { "type": "string" }, "type": "object" }, "per_page": { "default": 25, "description": "Results per page (1-100). Default 25. A budget-cut page returns fewer (`omitted`).", "maximum": 100, "minimum": 1, "type": "integer" }, "seed_id": { "description": "Seed work identifier. Accepts OpenAlex ID (\"W2741809807\"), DOI (\"10.1038/nature12373\" or full URL), or PMID (\"12345678\" or \"https://pubmed.ncbi.nlm.nih.gov/12345678\"). A PMCID is recognized too, bare or as a PubMed Central URL, but OpenAlex indexes no PMCIDs, so it resolves nothing — pass the work's PMID or DOI instead. Use openalex_resolve_name first if you only have a title.", "minLength": 1, "type": "string" }, "select": { "description": "OpenAlex work field names to return. Always returned: id, display_name. Defaults to the curated works select if omitted. Large projections may be cut to fit the response budget (`omitted`, `windows`).", "items": { "type": "string" }, "type": "array" }, "sort": { "description": "Sort field. Prefix with \"-\" for descending. Comma-separate for a multi-key sort, applied left to right, with the \"-\" prefix set per key (\"-publication_year,cited_by_count\" sorts by year descending, then citations ascending). Common: \"cited_by_count\", \"-publication_date\". Default is OpenAlex relevance.", "type": "string" } }, "required": [ "seed_id", "direction" ], "type": "object" }, "name": "openalex_get_citation_graph", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "meta", "results", "echo", "totalCount" ] }, { "required": [ "error" ] } ], "properties": { "budget": { "additionalProperties": false, "description": "What this call cost against the OpenAlex daily budget and what is left of it. Price a full walk before committing to it: `totalCount` ÷ `per_page` × `costUsd` against `remainingUsd`. Absent when OpenAlex omitted the accounting headers.", "properties": { "costUsd": { "description": "USD this call spent, covering both upstream requests — the seed validation lookup (unbilled) and the graph page itself.", "type": "number" }, "prepaidRemainingUsd": { "description": "USD left in the prepaid balance — a separate pool OpenAlex draws on only after the daily allowance runs out, and which the daily reset does not refill. Add it to `remainingUsd` for the full spendable amount. Absent when the account holds no prepaid balance.", "type": "number" }, "remainingUsd": { "description": "USD left in today's OpenAlex budget after this call.", "type": "number" }, "resetsInSeconds": { "description": "Seconds until the daily budget refills (midnight UTC).", "type": "number" } }, "required": [ "costUsd", "remainingUsd", "resetsInSeconds" ], "type": "object" }, "echo": { "description": "Compact echo of seed_id, direction, filters, sort — surfaces what was actually queried when no edges are returned.", "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. Declared by this tool: `rate_limited`: OpenAlex throttled the request for exceeding its per-second ceiling (HTTP 429). `upstream_budget_exhausted`: The OpenAlex daily usage budget is spent (HTTP 429). `upstream_timeout`: OpenAlex did not respond within the request deadline. `upstream_unavailable`: OpenAlex was unreachable or unusable — HTTP 503, a connection failure, or a body that was empty, HTML, or unparseable JSON. `upstream_unauthorized`: OpenAlex rejected the API key (HTTP 401). `upstream_forbidden`: OpenAlex denied access to the requested resource (HTTP 403). `comma_in_filter_value`: A filter value contains a comma, which collides with the OpenAlex filter separator. `upstream_invalid_params`: OpenAlex rejected an invalid filter or sort field name (HTTP 400). `upstream_invalid_id_value`: An entity-ID filter received a value that is not an OpenAlex ID — usually a name (HTTP 400). `upstream_sort_requires_search`: sort=-relevance_score was used but the citation-graph query has no active search (HTTP 400). `upstream_invalid_params_other`: OpenAlex rejected the request (HTTP 400) for a reason other than an invalid field name. `reserved_filter_key`: filters contains cites/cited_by/related_to, or an alias of one such as cited_works — the direction parameter reserves those keys. `entity_not_found`: OpenAlex has no work matching the seed_id. Other values are possible when a failure originates below the handler.", "examples": [ "rate_limited", "upstream_budget_exhausted", "upstream_timeout", "upstream_unavailable", "upstream_unauthorized", "upstream_forbidden", "comma_in_filter_value", "upstream_invalid_params", "upstream_invalid_id_value", "upstream_sort_requires_search", "upstream_invalid_params_other", "reserved_filter_key", "entity_not_found" ], "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" }, "meta": { "additionalProperties": false, "description": "Result metadata including pagination.", "properties": { "count": { "description": "Total edges from seed_id in this direction (across all pages).", "type": "number" }, "next_cursor": { "description": "Cursor for next page. null if no more results. Continues after the full upstream page, `omitted` works included.", "type": [ "string", "null" ] }, "per_page": { "description": "Page size OpenAlex echoed for this request — the requested per_page, not the number of records returned. A short or exhausted page carries fewer records than this, as does a page the response budget cut (`omitted`).", "type": "number" } }, "required": [ "count", "per_page", "next_cursor" ], "type": "object" }, "notice": { "description": "Guidance notice. Set when no edges are returned — a first call suggests verifying the seed_id, broadening filters, or trying a different direction; a `cursor` continuation says the walk is already past its last edge instead — when the response budget cut works, windowed an array, or ran over, and when a work carries exactly 100 authorships (possibly capped). Absent otherwise.", "type": "string" }, "omitted": { "additionalProperties": false, "description": "Present when the response budget cut whole records from the page end; pagination continues after the full upstream page.", "properties": { "ids": { "description": "Bare IDs of the records left out, in page order (a keyword keeps its URL).", "items": { "type": "string" }, "type": "array" }, "next": { "additionalProperties": false, "description": "One call returning those records as a set, in OpenAlex's order, not page order. Budgeted too, so it may carry its own `omitted`.", "properties": { "arguments": { "additionalProperties": {}, "description": "Arguments to pass as-is.", "properties": {}, "type": "object" }, "tool": { "const": "openalex_search_entities", "description": "Tool to call.", "type": "string" } }, "required": [ "tool", "arguments" ], "type": "object" } }, "required": [ "ids", "next" ], "type": "object" }, "over_budget": { "description": "True when even the least this call can return — the first record's non-array fields (its arrays windowed to empty), or one `slice` element — exceeds the budget.", "type": "boolean" }, "results": { "description": "Works on the citation graph in this direction. Text values are plain text — HTML entities decoded, HTML/JATS/MathML markup removed — except identifier and URL fields such as `id`, `doi`, `ids`, and `*_url`, returned exactly as OpenAlex stores them. Works cut by the response budget are in `omitted`; partial or possibly capped arrays are in `windows`.", "items": { "additionalProperties": {}, "description": "A single OpenAlex work record on the citation graph. Additional fields vary by `select`.", "properties": { "display_name": { "description": "Work title. null when OpenAlex holds no title for the record (paratext works and other untitled entries) — use `id` to identify it.", "type": [ "string", "null" ] }, "id": { "description": "OpenAlex work ID.", "type": "string" } }, "required": [ "id", "display_name" ], "type": "object" }, "type": "array" }, "totalCount": { "description": "Total edges from seed_id in this direction across all pages.", "type": "number" }, "windows": { "description": "Arrays returned in part — windowed to fit the budget, paged by `slice`, or 100 possibly capped authorships — each with its continuation. A `slice` call always carries its window, even for a whole array; otherwise absent when every array is whole.", "items": { "additionalProperties": false, "description": "An array returned in part.", "properties": { "field": { "description": "Array field.", "type": "string" }, "id": { "description": "Bare ID of the record.", "type": "string" }, "next": { "anyOf": [ { "additionalProperties": false, "properties": { "arguments": { "additionalProperties": {}, "description": "Arguments to pass as-is.", "properties": {}, "type": "object" }, "tool": { "const": "openalex_search_entities", "description": "Tool to call.", "type": "string" } }, "required": [ "tool", "arguments" ], "type": "object" }, { "type": "null" } ], "description": "`id` + `slice` call for the next elements; null at the array end." }, "offset": { "description": "Index of the first element shown.", "type": "number" }, "possibly_capped": { "description": "True for exactly 100 authorships on a list record (OpenAlex's cap): the list may be longer.", "type": "boolean" }, "shown": { "description": "Elements shown.", "type": "number" }, "total": { "description": "Array length as returned to this call.", "type": "number" } }, "required": [ "id", "field", "offset", "shown", "total", "possibly_capped", "next" ], "type": "object" }, "type": "array" } }, "type": "object" } }, { "description": "Resolve a name or an identifier to an OpenAlex ID. ALWAYS use this before filtering by entity — names are ambiguous, IDs are not. A name returns up to 10 autocomplete matches with disambiguation hints. An identifier — OpenAlex ID, DOI, ORCID, ROR, PMID, or ISSN, bare or in URL form — resolves directly to the one record it addresses, and needs no entity_type. A PMCID is recognized as well, bare or as a PubMed Central URL, but OpenAlex indexes no PMCIDs, so it resolves nothing — pass the work's PMID or DOI instead.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "entity_type": { "description": "Entity type to search. Omit for cross-entity search (useful when entity type is unknown). Not applied when `query` is an identifier — an identifier determines its own entity type.", "enum": [ "works", "authors", "sources", "institutions", "topics", "keywords", "publishers", "funders" ], "type": "string" }, "filters": { "additionalProperties": { "type": "string" }, "description": "Narrow autocomplete results with filters. Example: restrict to a specific country or publication year range. Applies to name queries only — an identifier already addresses a single record.", "propertyNames": { "type": "string" }, "type": "object" }, "query": { "description": "Name or partial name to resolve. Also accepts an identifier, bare or in URL form — OpenAlex ID (\"W2741809807\", \"F4320332161\"), DOI (\"10.1038/nature12373\"), ORCID (\"0000-0002-1825-0097\"), ROR (\"https://ror.org/00hx57361\"), PMID (\"12345678\" or \"https://pubmed.ncbi.nlm.nih.gov/12345678\"), ISSN (\"1234-5678\") — which resolves straight to that one record instead of running a name search. A keyword URL (\"https://openalex.org/keywords/groundwater\") resolves the same way; a bare keyword slug reads as a name and runs a name search, which finds it too. A PMCID (\"PMC1234567\" or a PubMed Central URL) is recognized but OpenAlex indexes no PMCIDs, so it resolves nothing — pass the work's PMID or DOI instead.", "minLength": 1, "type": "string" } }, "required": [ "query" ], "type": "object" }, "name": "openalex_resolve_name", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "results" ] }, { "required": [ "error" ] } ], "properties": { "budget": { "additionalProperties": false, "description": "What this call cost against the OpenAlex daily budget and what is left of it. Read `remainingUsd` here to size the search or traversal this resolution feeds. Absent when OpenAlex omitted the accounting headers.", "properties": { "costUsd": { "description": "USD this call spent. Autocomplete is priced at the floor — resolving a name before filtering costs far less than the failed searches an ambiguous name causes.", "type": "number" }, "prepaidRemainingUsd": { "description": "USD left in the prepaid balance — a separate pool OpenAlex draws on only after the daily allowance runs out, and which the daily reset does not refill. Add it to `remainingUsd` for the full spendable amount. Absent when the account holds no prepaid balance.", "type": "number" }, "remainingUsd": { "description": "USD left in today's OpenAlex budget after this call.", "type": "number" }, "resetsInSeconds": { "description": "Seconds until the daily budget refills (midnight UTC).", "type": "number" } }, "required": [ "costUsd", "remainingUsd", "resetsInSeconds" ], "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: `rate_limited`: OpenAlex throttled the autocomplete request for exceeding its per-second ceiling (HTTP 429). `upstream_budget_exhausted`: The OpenAlex daily usage budget is spent (HTTP 429). `upstream_timeout`: OpenAlex did not respond within the request deadline. `upstream_unavailable`: OpenAlex was unreachable or unusable — HTTP 503, a connection failure, or a body that was empty, HTML, or unparseable JSON. `upstream_unauthorized`: OpenAlex rejected the API key (HTTP 401). `upstream_forbidden`: OpenAlex denied access to autocomplete (HTTP 403). `comma_in_filter_value`: A `filters` value contains a comma, which collides with the OpenAlex filter separator. `upstream_invalid_params`: OpenAlex rejected an invalid filter field name on the autocomplete query (HTTP 400). `upstream_invalid_id_value`: A `filters` entry expecting an entity ID received a value that is not an OpenAlex ID — usually a name (HTTP 400). `query_too_long`: OpenAlex autocomplete failed (HTTP 500) on a `query` longer than the 1,000 characters it accepts when entity_type is set. `upstream_invalid_params_other`: OpenAlex rejected the autocomplete request (HTTP 400) for a reason other than an invalid field name. `upstream_validation_failed`: OpenAlex rejected the autocomplete request as semantically invalid (HTTP 422). Other values are possible when a failure originates below the handler.", "examples": [ "rate_limited", "upstream_budget_exhausted", "upstream_timeout", "upstream_unavailable", "upstream_unauthorized", "upstream_forbidden", "comma_in_filter_value", "upstream_invalid_params", "upstream_invalid_id_value", "query_too_long", "upstream_invalid_params_other", "upstream_validation_failed" ], "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": "Guidance notice. Set when nothing matched (echoes the query and suggests corrections) or when an identifier query was passed name-search parameters that do not apply to it. Absent otherwise.", "type": "string" }, "results": { "description": "Autocomplete matches, up to 10.", "items": { "additionalProperties": false, "description": "A single autocomplete match with its ID, name, entity type, activity stats, and a disambiguation hint.", "properties": { "cited_by_count": { "description": "Citation count (direct for works, aggregate for others).", "type": "number" }, "display_name": { "description": "Human-readable name as plain text, with HTML entities decoded and markup removed. null only for an identifier lookup that landed on a record OpenAlex holds no title for (paratext works and other untitled entries) — use `id` to identify it.", "type": [ "string", "null" ] }, "entity_type": { "description": "Entity type — one of: work, author, source, institution, topic, keyword, publisher, funder.", "type": "string" }, "external_id": { "description": "Canonical external ID (DOI, ORCID, ROR, ISSN).", "type": [ "string", "null" ] }, "hint": { "description": "Disambiguation context as plain text — last institution (authors), host organization (sources), place or country (institutions); author names (works) from a name search, publication year from an identifier lookup. null when the record carries none.", "type": [ "string", "null" ] }, "id": { "description": "OpenAlex ID.", "type": "string" }, "works_count": { "description": "Associated works. null for works themselves.", "type": [ "number", "null" ] } }, "required": [ "id", "external_id", "display_name", "entity_type", "cited_by_count", "works_count", "hint" ], "type": "object" }, "type": "array" } }, "type": "object" } }, { "description": "Search, filter, sort, or retrieve by ID. Covers all OpenAlex entity types (works, authors, sources, institutions, topics, keywords, publishers, funders). Pass `id` to retrieve a single entity. Otherwise, use `query` and/or `filters` for discovery. Supports keyword search with boolean operators, exact phrase matching, and AI semantic search. Use openalex_resolve_name to resolve names to IDs before filtering. Searches and ID lookups return a curated set of fields by default; pass `select` to override with specific fields, or `[\"*\"]` for the full record. Responses cap at 64,000 bytes per surface unless the least a call can return is larger (`over_budget`); `omitted` and `windows` give the calls that continue a cut, and `slice` pages a long array.", "inputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "cursor": { "description": "Pagination cursor from a previous response. Pass to get the next page. Omit it on the first call — an empty string is rejected, since a supplied-but-blank cursor is a caller mistake rather than a request for page 1. Keyword and exact modes only — semantic search walks its candidates with `page`, and a `cursor` sent with it is rejected.", "minLength": 1, "type": "string" }, "entity_type": { "description": "Type of scholarly entity to search.", "enum": [ "works", "authors", "sources", "institutions", "topics", "keywords", "publishers", "funders" ], "type": "string" }, "filters": { "additionalProperties": { "type": "string" }, "description": "Filter criteria as field:value pairs. AND across fields (multiple keys). OR within field: pipe-separate (\"us|gb\"). NOT: prefix \"!\" (\"!us\"). Range: \"2020-2024\". Comparison: \">100\", \"<50\". AND within same field: \"+\"-separate. Two keys that resolve to the same upstream field (an alias and its canonical name, e.g. `year` and `publication_year`) are both applied and AND'd, so they narrow rather than override each other. Use OpenAlex IDs (not names) for entity filters — resolve names first. Common keys: `openalex` (filter by entity ID, e.g. {\"openalex\": \"W123|W456\"}), `cites` (works citing a given work), `publication_year` (range \"2020-2024\"), `authorships.author.id`, `type`, `is_oa`.", "propertyNames": { "type": "string" }, "type": "object" }, "id": { "description": "Retrieve a single entity by ID. Supports: OpenAlex ID (\"W2741809807\"), DOI (\"10.1038/nature12373\"), ORCID (\"0000-0002-1825-0097\"), ROR (\"https://ror.org/00hx57361\"), PMID (\"12345678\" or \"https://pubmed.ncbi.nlm.nih.gov/12345678\"), ISSN (\"1234-5678\"). Keywords are identified by slug rather than a native ID — pass either the slug (\"groundwater\") or the URL a search returns (\"https://openalex.org/keywords/groundwater\"). A PMCID is recognized too, bare (\"PMC1234567\") or as a PubMed Central URL, but OpenAlex indexes no PMCIDs, so it resolves nothing — pass the work's PMID or DOI instead. When provided, `query`, `search_mode`, `filters`, `sort`, `sample`, and `seed` are not applied — the returned record is the entity at that ID regardless of them, and the response `notice` names any you passed. `select` still applies: the curated per-entity-type default is returned unless you pass `select` (use `[\"*\"]` for the complete record). An array too long for the response budget comes back as a window (`windows`); page the rest with `slice`. To filter, drop `id` and search. Use openalex_resolve_name to find the ID if unknown.", "minLength": 1, "type": "string" }, "page": { "description": "Page number (1-based) for semantic search, the one mode that paginates with `page` instead of `cursor`. Semantic search ranks a query-dependent candidate set whose size `meta.count` reports, so the last reachable page is ceil(meta.count / per_page) — e.g. page 14 for a count of 70 with per_page=5. Passing it under any other search_mode is rejected.", "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "per_page": { "default": 25, "description": "Results per page (1-100). Default 25. Semantic search caps at 50 — when search_mode=\"semantic\", set per_page ≤ 50 (also subject to a 1 req/sec rate limit upstream). The cap applies to searches only; an `id` lookup returns its one record regardless of both. A budget-cut page returns fewer (`omitted`).", "maximum": 100, "minimum": 1, "type": "integer" }, "query": { "description": "Text search query. Supports boolean operators (AND, OR, NOT), quoted phrases (\"exact match\"), wildcards (machin*), fuzzy matching (machin~1), and proximity (\"climate change\"~5). Omit for filter-only queries — an empty string is rejected, since a blank search is a mistake rather than a request for the whole catalog.", "minLength": 1, "type": "string" }, "sample": { "description": "Return a random sample of this many entities matching the filters (1-100). Single page only — neither `cursor` nor `page` pagination applies to sampling, and a search that passes either alongside it is rejected. Keyword and exact modes only: OpenAlex does not sample a semantic search, so `sample` with search_mode \"semantic\" is rejected. Cannot be combined with `sort` — a sample has no order, and a search passing both is rejected. Overrides `per_page`. Useful for unbiased exploration: spot-checking filter correctness, stratified review prompts, or generating exploration sets without bias toward most-cited.", "maximum": 100, "minimum": 1, "type": "integer" }, "search_mode": { "default": "keyword", "description": "Search strategy. \"keyword\": stemmed full-text (default). \"exact\": no stemming, matches individual words (use quoted phrases for multi-word exact match). \"semantic\": AI embedding similarity over a query-dependent candidate set whose size `meta.count` reports, at ~1 req/sec, up to 50 per page, and paginated with `page` rather than `cursor`.", "enum": [ "keyword", "exact", "semantic" ], "type": "string" }, "seed": { "description": "Deterministic seed for `sample`. Same seed + same filters = same results — pass when reproducibility matters. Has no effect without `sample`, and a search that passes it alone is rejected.", "type": "string" }, "select": { "description": "OpenAlex top-level field names to return. Always returned: `id`, `display_name` — additional fields you list are appended. A curated default per entity type applies to both searches and single-entity (`id`) lookups; pass field names to override it, or `[\"*\"]` to retrieve the complete record (every field). Only top-level fields project, so a nested value is requested by its parent object: bibliometrics (`h_index`, `i10_index`, `2yr_mean_citedness`) live under `summary_stats` on authors, sources, institutions, publishers, and funders, and naming a leaf returns that object. Invalid field names produce an error identifying the rejected field. Large projections may be cut to fit the response budget (`omitted`, `windows`). Not applied with `slice`. Example: [\"doi\", \"authorships\", \"primary_topic\"].", "items": { "type": "string" }, "type": "array" }, "slice": { "description": "Page one array of the record at `id`: returns `id`, `display_name`, and `field` from `offset` onward, as many elements as fit the response budget (at least one), with the window and its `next` call in `windows`. Requires `id`; replaces `select`. An offset at or past the end returns an empty window. Walks any partial array, including a possibly capped 100-authorship list.", "properties": { "field": { "description": "Top-level array field to page, such as \"authorships\" or \"referenced_works\". Leave it empty to skip slicing.", "type": "string" }, "offset": { "default": 0, "description": "0-based index of the first element to return.", "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "required": [ "field" ], "type": "object" }, "sort": { "description": "Sort field. Prefix with \"-\" for descending. Comma-separate for a multi-key sort, applied left to right, with the \"-\" prefix set per key (\"-publication_year,cited_by_count\" sorts by year descending, then citations ascending). Common: \"cited_by_count\", \"-publication_date\", \"-relevance_score\" (default when query present). Note: when combined with a keyword query, an explicit sort overrides relevance ranking entirely — top results may be highly cited but only tangentially on-topic. Use \"-relevance_score\" or omit sort to keep the most relevant results first. \"-relevance_score\" requires an active search via \"query\" or a \"filter:search\" filter — passing it without one will fail. Not combinable with `sample` — a search passing both is rejected.", "type": "string" } }, "required": [ "entity_type" ], "type": "object" }, "name": "openalex_search_entities", "outputSchema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "anyOf": [ { "not": { "required": [ "error" ] }, "required": [ "meta", "results", "echo", "totalCount" ] }, { "required": [ "error" ] } ], "properties": { "budget": { "additionalProperties": false, "description": "What this call cost against the OpenAlex daily budget and what is left of it. Price a full traversal before committing to it: `totalCount` ÷ `per_page` × `costUsd` against `remainingUsd`. Absent when OpenAlex omitted the accounting headers.", "properties": { "costUsd": { "description": "USD this call spent. 0 for an `id` lookup — OpenAlex does not bill single-entity fetches, so batching known IDs beats paging a filtered list.", "type": "number" }, "prepaidRemainingUsd": { "description": "USD left in the prepaid balance — a separate pool OpenAlex draws on only after the daily allowance runs out, and which the daily reset does not refill. Add it to `remainingUsd` for the full spendable amount. Absent when the account holds no prepaid balance.", "type": "number" }, "remainingUsd": { "description": "USD left in today's OpenAlex budget after this call.", "type": "number" }, "resetsInSeconds": { "description": "Seconds until the daily budget refills (midnight UTC).", "type": "number" } }, "required": [ "costUsd", "remainingUsd", "resetsInSeconds" ], "type": "object" }, "echo": { "description": "Compact echo of the criteria that actually ran (entity_type, query, filters, sort, search_mode) — surfaces what was searched when results are empty. An `id` lookup echoes entity_type and id alone, because the search criteria are not applied on that path.", "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. Declared by this tool: `semantic_per_page_cap`: A search (no `id`) set per_page above the semantic-search cap of 50. `semantic_without_query`: A search set search_mode to \"semantic\" without supplying the `query` it embeds. `semantic_with_cursor`: A search set search_mode to \"semantic\" and supplied `cursor`, which OpenAlex rejects on a semantic query. `page_without_semantic`: A search supplied `page` under a search_mode other than \"semantic\". `sample_with_cursor`: A search (no `id`) provided both `sample` and `cursor`. `sample_with_page`: A search (no `id`) provided both `sample` and `page`. `sample_with_semantic`: A search (no `id`) provided `sample` with search_mode \"semantic\", which OpenAlex does not sample — it returns the same ranked candidates under every seed. `sample_with_sort`: A search (no `id`) provided both `sample` and `sort`, which OpenAlex refuses together. `seed_without_sample`: A search (no `id`) provided `seed` without `sample`. `slice_without_id`: A search passed `slice` without `id` — slice pages one array of one record. `slice_field_not_array`: The `slice` field is `*`, or is not an array on the record at `id` — absent, null, a scalar, or an object. `entity_not_found`: Lookup by id matched no OpenAlex entity. `rate_limited`: OpenAlex throttled the request for exceeding its per-second ceiling (HTTP 429). `upstream_budget_exhausted`: The OpenAlex daily usage budget is spent (HTTP 429). `upstream_timeout`: OpenAlex did not respond within the request deadline. `upstream_unavailable`: OpenAlex was unreachable or unusable — HTTP 503, a connection failure, or a body that was empty, HTML, or unparseable JSON. `upstream_unauthorized`: OpenAlex rejected the API key (HTTP 401). `upstream_forbidden`: OpenAlex denied access to the requested resource (HTTP 403). `comma_in_filter_value`: A filter value contains a comma, which collides with the OpenAlex filter separator. `upstream_invalid_params`: OpenAlex rejected an invalid filter, select, or sort field name (HTTP 400). `upstream_invalid_id_value`: An entity-ID filter received a value that is not an OpenAlex ID — usually a name (HTTP 400). `upstream_sort_requires_search`: sort=-relevance_score was used without an active search (HTTP 400). `query_too_long`: OpenAlex rejected `query` as longer than the search length it accepts (HTTP 400). `upstream_invalid_params_other`: OpenAlex rejected the request (HTTP 400) for a reason other than an invalid field name. `upstream_validation_failed`: OpenAlex rejected the request as semantically invalid (HTTP 422). Other values are possible when a failure originates below the handler.", "examples": [ "semantic_per_page_cap", "semantic_without_query", "semantic_with_cursor", "page_without_semantic", "sample_with_cursor", "sample_with_page", "sample_with_semantic", "sample_with_sort", "seed_without_sample", "slice_without_id", "slice_field_not_array", "entity_not_found", "rate_limited", "upstream_budget_exhausted", "upstream_timeout", "upstream_unavailable", "upstream_unauthorized", "upstream_forbidden", "comma_in_filter_value", "upstream_invalid_params", "upstream_invalid_id_value", "upstream_sort_requires_search", "query_too_long", "upstream_invalid_params_other", "upstream_validation_failed" ], "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" }, "meta": { "additionalProperties": false, "description": "Result metadata including pagination.", "properties": { "count": { "description": "Total results matching the query/filters. Under search_mode \"semantic\" it is instead the size of the ranked candidate set — the most results `page` can reach — not an exhaustive match total.", "type": "number" }, "next_cursor": { "description": "Cursor for next page. null if no more results. Continues after the full upstream page, `omitted` records included.", "type": [ "string", "null" ] }, "per_page": { "description": "Page size OpenAlex echoed for this request — the requested per_page, not the number of records returned. A short or exhausted page carries fewer records than this, as does a page the response budget cut (`omitted`).", "type": "number" } }, "required": [ "count", "per_page", "next_cursor" ], "type": "object" }, "notice": { "description": "Guidance notice. Set when a first call returns no results (echoes the criteria and suggests how to broaden), when a paginated call ran past its last page (says the traversal is finished instead of advising a broader query), when an `id` lookup was passed search criteria it does not apply (names them), on every semantic search to disclose that `meta.count` is a candidate total rather than a match total, when the response budget cut records, windowed an array, or ran over, when a list record carries exactly 100 authorships (possibly capped), when a `slice` offset is past the end of its array, and when `slice` was passed with `select`, which it replaces. Absent otherwise.", "type": "string" }, "omitted": { "additionalProperties": false, "description": "Present when the response budget cut whole records from the page end; pagination continues after the full upstream page.", "properties": { "ids": { "description": "Bare IDs of the records left out, in page order (a keyword keeps its URL).", "items": { "type": "string" }, "type": "array" }, "next": { "additionalProperties": false, "description": "One call returning those records as a set, in OpenAlex's order, not page order. Budgeted too, so it may carry its own `omitted`.", "properties": { "arguments": { "additionalProperties": {}, "description": "Arguments to pass as-is.", "properties": {}, "type": "object" }, "tool": { "const": "openalex_search_entities", "description": "Tool to call.", "type": "string" } }, "required": [ "tool", "arguments" ], "type": "object" } }, "required": [ "ids", "next" ], "type": "object" }, "over_budget": { "description": "True when even the least this call can return — the first record's non-array fields (its arrays windowed to empty), or one `slice` element — exceeds the budget.", "type": "boolean" }, "results": { "description": "OpenAlex entity objects. Text values are plain text — HTML entities decoded, HTML/JATS/MathML markup removed — except identifier and URL fields such as `id`, `doi`, `ids`, and `*_url`, returned exactly as OpenAlex stores them; an abstract arrives reconstructed as `abstract`. Additional fields depend on entity_type and select. Records cut by the response budget are in `omitted`; partial or possibly capped arrays are in `windows`.", "items": { "additionalProperties": {}, "description": "A single OpenAlex entity record. `id` is always present and `display_name` is always returned (though it may be null); additional fields vary by entity_type and `select`.", "properties": { "display_name": { "description": "Entity name or work title. null when OpenAlex holds no title for the record (paratext works and other untitled entries) — use `id` to identify it.", "type": [ "string", "null" ] }, "id": { "description": "OpenAlex ID URL (e.g., \"https://openalex.org/W2741809807\"). `windows` and `omitted` name records by the bare ID (\"W2741809807\"); a keyword keeps its URL.", "type": "string" } }, "required": [ "id", "display_name" ], "type": "object" }, "type": "array" }, "totalCount": { "description": "Total results matching the query/filters across all pages.", "type": "number" }, "windows": { "description": "Arrays returned in part — windowed to fit the budget, paged by `slice`, or 100 possibly capped authorships — each with its continuation. A `slice` call always carries its window, even for a whole array; otherwise absent when every array is whole.", "items": { "additionalProperties": false, "description": "An array returned in part.", "properties": { "field": { "description": "Array field.", "type": "string" }, "id": { "description": "Bare ID of the record.", "type": "string" }, "next": { "anyOf": [ { "additionalProperties": false, "properties": { "arguments": { "additionalProperties": {}, "description": "Arguments to pass as-is.", "properties": {}, "type": "object" }, "tool": { "const": "openalex_search_entities", "description": "Tool to call.", "type": "string" } }, "required": [ "tool", "arguments" ], "type": "object" }, { "type": "null" } ], "description": "`id` + `slice` call for the next elements; null at the array end." }, "offset": { "description": "Index of the first element shown.", "type": "number" }, "possibly_capped": { "description": "True for exactly 100 authorships on a list record (OpenAlex's cap): the list may be longer.", "type": "boolean" }, "shown": { "description": "Elements shown.", "type": "number" }, "total": { "description": "Array length as returned to this call.", "type": "number" } }, "required": [ "id", "field", "offset", "shown", "total", "possibly_capped", "next" ], "type": "object" }, "type": "array" } }, "type": "object" } } ] }
Verify it yourselfcurl -s https://api.teppi.xyz/v1/evidence/sha256:8a39cbd909f2957938165a4ef8ff92e72deec52633f0a14dde45dddffb1b19a4 | sha256sum