MCPサーバー

oeis-mcp-server

io.github.cyanheads/oeis-mcp-server
科学・工学 検索・リサーチ 公開・接続可能 MCP 2025-11-25

このMCPでできること

Identifies and searches OEIS integer sequences and retrieves their terms, formulas, programs, references, and cross-references.

oeis_get_cross_refs
Get OEIS Cross-References
List sequences related to an OEIS entry. direction outgoing returns the A-numbers named in the entry's cross-reference (Cf.) lines, with any parenthetical note beside each; direction incoming returns entries that mention this A-number anywhere. Each row carries the related sequence's name and first terms. 10 rows per page.
読み取り専用 外部アクセスあり 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['aNumber'], 'properties': {'start': {'type': 'integer', 'default': 0, 'maximum': 100, 'minimum': 0, 'multipleOf': 10, 'description': 'Row offset: 0, 10, â\x80¦ 100 (at most 110 rows are reachable per entry and direction). Pass nextStart from the previous page.'}, 'aNumber': {'type': 'string', 'description': 'OEIS A-number, e.g. "A000045"; oeis_identify_sequence and oeis_search_sequences return them. Also accepts "a000045", "A45", "45", and an oeis.org sequence URL; all normalize to the zero-padded form. Legacy M/N book numbers (e.g. "M1459") are not A-numbers: find them with oeis_search_sequences.'}, 'direction': {'enum': ['outgoing', 'incoming'], 'type': 'string', 'default': 'outgoing', 'description': 'outgoing (default): the A-numbers this entry cross-references. incoming: the entries that mention this A-number.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['aNumber', 'direction', 'related', 'start', 'truncated', 'shown', 'cap']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'cap': {'type': 'number', 'description': 'Page size: 10, fixed by OEIS.'}, 'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'examples': ['sequence_not_found', 'pacer_shed', 'upstream_rate_limited'], 'description': 'Machine-readable failure mode. Declared by this tool: `sequence_not_found`: No OEIS entry exists for the requested A-number. Raised for direction outgoing only; direction incoming reports that no entry mentions it. `pacer_shed`: The oeis.org request queue would exceed its wait budget on the record fetch or the incoming search. `upstream_rate_limited`: oeis.org answered HTTP 429 Too Many Requests on the record fetch or the incoming search, and retries within the call did not clear it. Other values are possible when a failure originates below the handler.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'lines': {'type': 'array', 'items': {'type': 'string'}, 'description': "Outgoing only: the entry's cross-reference lines verbatim, written by OEIS contributors; lineIndex points into this list."}, 'shown': {'type': 'number', 'description': 'Rows on this page.'}, 'start': {'type': 'number', 'description': 'The row offset of this page. For incoming, as OEIS served it: below the requested start when that start was past the last entry (OEIS then serves the last page).'}, 'notice': {'type': 'string', 'description': 'Guidance: why nothing matched, how to narrow the query, or how to reach the next page.'}, 'aNumber': {'type': 'string', 'description': 'The entry whose relations are listed, e.g. "A000045".'}, 'related': {'type': 'array', 'items': {'type': 'object', 'required': ['aNumber', 'resolved', 'url'], 'properties': {'url': {'type': 'string', 'description': 'Sequence page on oeis.org; cite it wherever the entry is reused.'}, 'name': {'type': 'string', 'description': 'Sequence name, written by OEIS contributors; absent when not resolved.'}, 'note': {'type': 'string', 'description': 'Outgoing only: the parenthetical written beside the A-number in a cross-reference line, e.g. "phi"; written by OEIS contributors.'}, 'terms': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Data-line terms as exact decimal strings, signs kept; absent when not resolved.'}, 'author': {'type': 'string', 'description': 'Author line as OEIS records it, written by OEIS contributors; absent when not resolved, and when the entry has none, as on a reserved or recycled A-number.'}, 'offset': {'type': 'string', 'description': 'Offset "i,p": i is the index n of the first term, p the 1-based position of the first term with |a(n)| > 1. Absent when not resolved, and on a reserved or recycled A-number (keyword allocated or recycled).'}, 'aNumber': {'type': 'string', 'description': 'Related A-number; pass it to oeis_get_sequence for the full entry.'}, 'keywords': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Keyword flags such as nonn, core, tabl (oeis_list_reference topic keywords decodes them); absent when not resolved.'}, 'modified': {'type': 'string', 'description': 'When the entry was last edited, ISO 8601 with offset, e.g. "2026-09-23T16:08:09-04:00"; absent when not resolved, and when OEIS sends no readable edit time.'}, 'resolved': {'type': 'boolean', 'description': 'True when name and terms were fetched. False when OEIS returned no record for this A-number or the lookup could not be made (see notice); name, terms, offset, firstIndex, keywords, author, legacyIds, and modified are then absent.'}, 'legacyIds': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Legacy book numbers, e.g. ["M0692", "N0256"]; absent when not resolved, on entries that have none, and when OEIS sends no readable edit line.'}, 'lineIndex': {'type': 'number', 'description': 'Outgoing only: 0-based index into lines of the first cross-reference line naming this A-number.'}, 'firstIndex': {'type': 'number', 'description': 'The index n of the first term; absent with offset.'}}, 'description': 'One related sequence.', 'additionalProperties': False}, 'description': 'Related sequences on this page: outgoing in order of first mention, incoming in OEIS relevance order.'}, 'direction': {'enum': ['outgoing', 'incoming'], 'type': 'string', 'description': 'The direction listed.'}, 'nextStart': {'type': 'number', 'description': 'Pass as start for the next page; absent on the last reachable page.'}, 'truncated': {'type': 'boolean', 'description': 'True when more rows exist than this page shows.'}, 'totalCount': {'type': 'number', 'description': 'Total rows: the match count OEIS reported, or for outgoing cross-references the number of distinct A-numbers the entry names.'}, 'effectiveQuery': {'type': 'string', 'description': 'The query as OEIS parsed it (lowercased upstream), e.g. seq:1,2,5,14,42.'}}, 'additionalProperties': False}
oeis_get_sequence
Get OEIS Sequence
Fetch one OEIS entry by A-number. Returns the name, data-line terms, offset, keywords, author, dates, and the sections: comments, formulas (recurrences and generating functions), examples, programs (Maple, Mathematica, PARI, Python, …), references, links, cross-references, and extensions. When the sections together exceed 24,000 characters of serialized JSON, the core fields come back with a section outline instead; call again with sections to pick what to read. A selection past 100,000 bytes comes back in parts cut between items: pass nextFromItem as fromItem, with the same sections, for the next part.
読み取り専用 外部アクセスあり 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['aNumber'], 'properties': {'aNumber': {'type': 'string', 'description': 'OEIS A-number, e.g. "A000045"; oeis_identify_sequence and oeis_search_sequences return them. Also accepts "a000045", "A45", "45", and an oeis.org sequence URL; all normalize to the zero-padded form. Legacy M/N book numbers (e.g. "M1459") are not A-numbers: find them with oeis_search_sequences.'}, 'fromItem': {'type': 'object', 'required': ['section', 'index'], 'properties': {'index': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 0, 'description': '0-based position of the item within its section.'}, 'section': {'enum': ['comments', 'formulas', 'examples', 'programs', 'references', 'links', 'crossReferences', 'extensions'], 'type': 'string', 'description': 'Section name.'}}, 'description': "Where to resume a cut selection: the previous response's nextFromItem, passed unchanged with the same sections. The selected sections before fromItem.section are left out. Omit to start at the beginning."}, 'sections': {'type': 'array', 'items': {'enum': ['comments', 'formulas', 'examples', 'programs', 'references', 'links', 'crossReferences', 'extensions'], 'type': 'string'}, 'description': 'Sections to return with the core fields, e.g. ["formulas", "programs"]. A selection past the 100,000-byte response budget is cut between items; fromItem continues it. Omit (or pass []) for the full entry, or the core fields plus an outline when the entry is large.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['kind', 'aNumber', 'name', 'terms', 'keywords', 'referenceCount', 'revision', 'url']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'url': {'type': 'string', 'description': 'Sequence page on oeis.org; cite it wherever the entry is reused.'}, 'kind': {'enum': ['full', 'outline'], 'type': 'string', 'description': 'full: every section, or the selected ones (a selection past the 100,000-byte response budget is cut between items, and nextFromItem continues it). outline: the entry is too large, so sections lists the sections to request by name.'}, 'name': {'type': 'string', 'description': 'Sequence name, written by OEIS contributors.'}, 'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'examples': ['sequence_not_found', 'from_item_not_selected', 'pacer_shed', 'upstream_rate_limited'], 'description': 'Machine-readable failure mode. Declared by this tool: `sequence_not_found`: No OEIS entry exists for the requested A-number. `from_item_not_selected`: fromItem is given without sections, or names a section that sections does not select. `pacer_shed`: The oeis.org request queue would exceed its wait budget. `upstream_rate_limited`: oeis.org answered HTTP 429 Too Many Requests and retries within the call did not clear it. Other values are possible when a failure originates below the handler.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'links': {'type': 'array', 'items': {'type': 'object', 'required': ['text', 'urls'], 'properties': {'text': {'type': 'string', 'description': 'The link line with HTML removed.'}, 'urls': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Absolute URL of every link on the line.'}}, 'description': 'One link line.', 'additionalProperties': False}, 'description': "Link lines. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'terms': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Data-line terms as exact decimal strings, signs kept; the first is a(firstIndex).'}, 'author': {'type': 'string', 'description': 'Author line as OEIS records it; absent when the entry has none.'}, 'notice': {'type': 'string', 'description': 'Guidance: the entry is withdrawn (dead) or its A-number reserved or recycled; where a cut selection stopped and the call that continues it; or that fromItem lies past the end of its section.'}, 'offset': {'type': 'string', 'description': 'Offset "i,p": i is the index n of the first term, p the 1-based position of the first term with |a(n)| > 1. Absent on a reserved or recycled A-number (keyword allocated or recycled).'}, 'aNumber': {'type': 'string', 'description': 'A-number, e.g. "A000045".'}, 'created': {'type': 'string', 'description': 'When the entry was created, ISO 8601 with offset.'}, 'bFileUrl': {'type': 'string', 'description': "URL of the entry's b-file of extended terms; oeis_get_terms reads it."}, 'comments': {'type': 'array', 'items': {'type': 'string'}, 'description': "Comment lines, one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'examples': {'type': 'array', 'items': {'type': 'string'}, 'description': "Example lines; whitespace matters for triangles and tables, one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'formulas': {'type': 'array', 'items': {'type': 'string'}, 'description': "Formula lines: recurrences, generating functions, closed forms, one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'keywords': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Keyword flags such as nonn, core, tabl; oeis_list_reference topic keywords decodes them.'}, 'modified': {'type': 'string', 'description': 'When the entry was last edited, ISO 8601 with offset.'}, 'programs': {'type': 'array', 'items': {'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'Program text, one upstream line per line.'}, 'language': {'type': 'string', 'description': 'Language, e.g. Maple, Mathematica, PARI, Python; absent when untagged.'}}, 'description': 'One program block.', 'additionalProperties': False}, 'description': "Programs that compute the terms. Present on a full entry or when selected; a cut selection carries only this part's blocks."}, 'revision': {'type': 'number', 'description': 'Revision number of the entry.'}, 'sections': {'type': 'array', 'items': {'type': 'object', 'required': ['name', 'bytes'], 'properties': {'name': {'type': 'string', 'description': 'Section name to pass in sections.'}, 'bytes': {'type': 'number', 'description': 'Size of the section as serialized JSON, counted in characters (UTF-16 code units, equal to bytes for ASCII text): the unit of the 24,000 outline budget.'}}, 'description': 'One section of the entry and its size.', 'additionalProperties': False}, 'description': 'Outline only: the sections of the entry, largest first.'}, 'legacyIds': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Legacy book numbers, e.g. ["M0692", "N0256"]; absent on entries that have none.'}, 'extensions': {'type': 'array', 'items': {'type': 'string'}, 'description': "Extension lines: who added terms or corrections, and when, one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'firstIndex': {'type': 'number', 'description': 'The index n of the first term (the first number of offset); absent with offset.'}, 'references': {'type': 'array', 'items': {'type': 'string'}, 'description': "Reference lines (books and papers), one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}, 'nextFromItem': {'type': 'object', 'required': ['section', 'index'], 'properties': {'index': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 0, 'description': '0-based position of the item within its section.'}, 'section': {'enum': ['comments', 'formulas', 'examples', 'programs', 'references', 'links', 'crossReferences', 'extensions'], 'type': 'string', 'description': 'Section name.'}}, 'description': 'Present when the selection was cut at the 100,000-byte response budget: the first item left out. Pass it unchanged as fromItem, with the same sections, to continue.', 'additionalProperties': False}, 'outlineNotice': {'type': 'string', 'description': 'Outline only: how to request sections, and how a large selection continues.'}, 'referenceCount': {'type': 'number', 'description': 'How many OEIS entries mention this A-number, the entry itself included.'}, 'crossReferences': {'type': 'array', 'items': {'type': 'string'}, 'description': "Cross-reference lines naming related A-numbers, one element per upstream line, written by OEIS contributors. Present on a full entry or when selected; a cut selection carries only this part's lines."}}, 'additionalProperties': False}
oeis_get_terms
Get OEIS Sequence Terms
List terms a(n) of a sequence with their indices n. Reads the entry's b-file when it has one — often thousands of terms beyond the data line — and otherwise the data line itself. Values are exact decimal strings of any size. A slice stops at limit terms, at about 100,000 bytes, or at the end of one 1 MiB part of a larger b-file, whichever comes first; nextFromIndex continues it.
読み取り専用 外部アクセスあり 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['aNumber'], 'properties': {'limit': {'type': 'integer', 'default': 100, 'maximum': 1000, 'minimum': 1, 'description': 'Maximum number of terms to return, 1â\x80\x931000 (default 100). A slice stops sooner at about 100,000 bytes of large terms or at the end of one 1 MiB part of a larger b-file; continue with nextFromIndex.'}, 'aNumber': {'type': 'string', 'description': 'OEIS A-number, e.g. "A000045"; oeis_identify_sequence and oeis_search_sequences return them. Also accepts "a000045", "A45", "45", and an oeis.org sequence URL; all normalize to the zero-padded form. Legacy M/N book numbers (e.g. "M1459") are not A-numbers: find them with oeis_search_sequences.'}, 'fromIndex': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'First index n to return; defaults to the first available index. Pass nextFromIndex from the previous call to continue.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['aNumber', 'source', 'terms', 'bFileCut', 'url', 'truncated', 'shown', 'cap']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'cap': {'type': 'number', 'description': 'The limit that was applied.'}, 'url': {'type': 'string', 'description': 'Sequence page on oeis.org; cite it wherever the terms are reused.'}, 'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'examples': ['sequence_not_found', 'pacer_shed', 'upstream_rate_limited'], 'description': 'Machine-readable failure mode. Declared by this tool: `sequence_not_found`: No OEIS entry exists for the requested A-number. `pacer_shed`: The oeis.org request queue would exceed its wait budget. `upstream_rate_limited`: oeis.org answered HTTP 429 Too Many Requests on the b-file or the record and retries within the call did not clear it. Other values are possible when a failure originates below the handler.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'shown': {'type': 'number', 'description': 'Terms in this slice.'}, 'terms': {'type': 'array', 'items': {'type': 'object', 'required': ['n', 'value'], 'properties': {'n': {'type': 'number', 'description': 'The index n.'}, 'value': {'type': 'string', 'description': 'a(n) as an exact decimal string, sign kept.'}}, 'description': 'One term.', 'additionalProperties': False}, 'description': 'Terms in index order, from the first index at or after fromIndex (or the first available index).'}, 'notice': {'type': 'string', 'description': 'Guidance: where the next slice starts and whether the byte budget ended this one, why no terms came back (past the last index, or not yet reached in a large b-file), that a b-file line too long to read was skipped, that only the first 1 MiB of the b-file could be read, or that the terms are data-line only.'}, 'source': {'enum': ['bfile', 'data'], 'type': 'string', 'description': "bfile: read from the entry's b-file of extended terms. data: the entry has no b-file, so these are its data-line terms."}, 'aNumber': {'type': 'string', 'description': 'A-number, e.g. "A000045".'}, 'bFileCut': {'type': 'boolean', 'description': 'True while the b-file goes on past lastAvailableIndex. Its later terms are at bFileUrl; nextFromIndex or a larger fromIndex reaches them unless the notice says only the first 1 MiB was read.'}, 'bFileUrl': {'type': 'string', 'description': 'URL of the b-file the terms came from; absent when source is data.'}, 'truncated': {'type': 'boolean', 'description': 'True when nextFromIndex is set.'}, 'nextFromIndex': {'type': 'number', 'description': 'Pass as fromIndex for the next slice. Absent when no slice follows this one: the terms ended, or the notice says how to reach the rest.'}, 'bFileSizeInBytes': {'type': 'number', 'description': 'Full size of the b-file as OEIS reported it; absent when not reported.'}, 'lastAvailableIndex': {'type': 'number', 'description': 'Highest index n read so far for this entry; when bFileCut is true the b-file goes on past it. Absent when no terms were read.'}, 'firstAvailableIndex': {'type': 'number', 'description': 'Lowest index n read for this entry; absent when no terms were read.'}}, 'additionalProperties': False}
oeis_identify_sequence
Identify OEIS Sequence
Identify integer sequences that contain a run of consecutive terms, e.g. "1, 2, 5, 14, 42". Returns up to 10 matches per page in OEIS relevance order, each with the index n at which the supplied run begins. For the best hit rate supply about 6 terms and leave off the first one or two, since sources disagree on where a sequence starts. OEIS matches only the first terms of each entry (its data line, at most about 270 characters), not its b-file, so a run from far into a sequence is not found. Takes up to 60 terms, each an integer of at most 200 digits or the wildcard _ for one unknown term.
読み取り専用 外部アクセスあり 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['terms'], 'properties': {'start': {'type': 'integer', 'default': 0, 'maximum': 100, 'minimum': 0, 'multipleOf': 10, 'description': 'Result offset: 0, 10, â\x80¦ 100 (OEIS shows at most 110 results per query). Pass nextStart from the previous page.'}, 'terms': {'type': 'string', 'description': 'Up to 60 consecutive terms separated by commas or spaces, e.g. "1, 2, 5, 14, 42" (a bracketed list or a trailing ... is accepted). Each term is an integer of at most 200 digits, or _ for a single unknown term.'}, 'matchSigns': {'type': 'boolean', 'default': False, 'description': 'false (default) matches ignoring signs, so a sign-convention difference does not hide the sequence; true requires the signs to match.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['results', 'start', 'truncated', 'shown', 'cap']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'cap': {'type': 'number', 'description': 'Page size: 10, fixed by OEIS.'}, 'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'examples': ['pacer_shed', 'upstream_rate_limited'], 'description': 'Machine-readable failure mode. Declared by this tool: `pacer_shed`: The oeis.org request queue would exceed its wait budget. `upstream_rate_limited`: oeis.org answered HTTP 429 Too Many Requests and retries within the call did not clear it. Other values are possible when a failure originates below the handler.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'shown': {'type': 'number', 'description': 'Rows on this page.'}, 'start': {'type': 'number', 'description': 'The result offset of this page as OEIS served it; below the requested start when that start was past the last result (OEIS then serves the last page).'}, 'notice': {'type': 'string', 'description': 'Guidance: why nothing matched, how to narrow the query, or how to reach the next page.'}, 'results': {'type': 'array', 'items': {'type': 'object', 'required': ['aNumber', 'name', 'terms', 'keywords', 'url'], 'properties': {'url': {'type': 'string', 'description': 'Sequence page on oeis.org; cite it wherever the entry is reused.'}, 'name': {'type': 'string', 'description': 'Sequence name, written by OEIS contributors.'}, 'terms': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Data-line terms as exact decimal strings, signs kept.'}, 'author': {'type': 'string', 'description': 'Author line as OEIS records it, written by OEIS contributors; absent when the entry has none, as on a reserved or recycled A-number.'}, 'offset': {'type': 'string', 'description': 'Offset "i,p": i is the index n of the first term, p the 1-based position of the first term with |a(n)| > 1. Absent on a reserved or recycled A-number (keyword allocated or recycled).'}, 'aNumber': {'type': 'string', 'description': 'A-number, e.g. "A000108"; pass it to oeis_get_sequence for the full entry.'}, 'keywords': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Keyword flags such as nonn, core, tabl; oeis_list_reference topic keywords decodes them.'}, 'modified': {'type': 'string', 'description': 'When the entry was last edited, ISO 8601 with offset, e.g. "2026-09-23T16:08:09-04:00"; absent when OEIS sends no readable edit time.'}, 'legacyIds': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Legacy book numbers, e.g. ["M0692", "N0256"]; absent on entries that have none, and when OEIS sends no readable edit line.'}, 'firstIndex': {'type': 'number', 'description': 'The index n of the first term (the first number of offset); absent with offset.'}, 'matchStartIndex': {'type': 'number', 'description': "The index n where the supplied run begins in this entry's data line; absent when the run is not in the data line (OEIS matched it another way)."}}, 'description': 'One candidate sequence.', 'additionalProperties': False}, 'description': 'Candidate sequences on this page, in OEIS relevance order.'}, 'nextStart': {'type': 'number', 'description': 'Pass as start for the next page; absent on the last reachable page.'}, 'truncated': {'type': 'boolean', 'description': 'True when more rows exist than this page shows.'}, 'totalCount': {'type': 'number', 'description': 'Total rows: the match count OEIS reported, or for outgoing cross-references the number of distinct A-numbers the entry names.'}, 'effectiveQuery': {'type': 'string', 'description': 'The query as OEIS parsed it (lowercased upstream), e.g. seq:1,2,5,14,42.'}}, 'additionalProperties': False}
oeis_list_reference
List OEIS Reference
Look up OEIS vocabulary used by the other tools: keyword flags (nonn, core, tabl, cons, …), search syntax (prefixes, operators, wildcards, sort orders, paging window), and identifier conventions (A-numbers, legacy M/N numbers, offsets, b-files).
読み取り専用 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['topic'], 'properties': {'topic': {'enum': ['keywords', 'search_syntax', 'identifiers'], 'type': 'string', 'description': 'keywords: keyword flags such as nonn, core, tabl. search_syntax: prefixes, operators, wildcards, sort orders, and paging. identifiers: A-numbers, legacy M/N numbers, offsets, and b-files.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['topic', 'entries', 'notes']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'description': 'Machine-readable failure mode.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'notes': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Usage notes that apply across the topic.'}, 'topic': {'type': 'string', 'description': 'The topic listed.'}, 'entries': {'type': 'array', 'items': {'type': 'object', 'required': ['name', 'description'], 'properties': {'name': {'type': 'string', 'description': 'The keyword, prefix, operator, or identifier.'}, 'description': {'type': 'string', 'description': 'What it means and how to use it.'}}, 'description': 'One vocabulary entry.', 'additionalProperties': False}, 'description': 'Vocabulary entries for the topic.'}}, 'additionalProperties': False}
oeis_search_sequences
Search OEIS Sequences
Search the OEIS using its query syntax: plain words, "quoted phrases", comma-separated terms, prefixes (keyword:, author:, name:, comment:, formula:, program:, xref:, id:), | for OR, and a leading - to exclude. Returns up to 10 summaries per page. For identifying a sequence from its terms, oeis_identify_sequence is the direct route.
読み取り専用 外部アクセスあり 冪等
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['query'], 'properties': {'sort': {'enum': ['relevance', 'number', 'created', 'modified'], 'type': 'string', 'default': 'relevance', 'description': 'Result order: relevance (default), number (ascending A-number), created (newest entry first), or modified (most recently edited first).'}, 'query': {'type': 'string', 'maxLength': 1000, 'minLength': 1, 'description': 'OEIS query, sent as written. Examples: keyword:core fibonacci; author:Sloane; "Catalan numbers" (a quoted phrase); 1,2,5,14,42. oeis_list_reference topic search_syntax lists the prefixes and operators.'}, 'start': {'type': 'integer', 'default': 0, 'maximum': 100, 'minimum': 0, 'multipleOf': 10, 'description': 'Result offset: 0, 10, â\x80¦ 100 (OEIS shows at most 110 results per query). Pass nextStart from the previous page.'}}, 'additionalProperties': False}
出力スキーマ
{'type': 'object', 'anyOf': [{'not': {'required': ['error']}, 'required': ['results', 'start', 'sort', 'truncated', 'shown', 'cap']}, {'required': ['error']}], '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'cap': {'type': 'number', 'description': 'Page size: 10, fixed by OEIS.'}, 'sort': {'enum': ['relevance', 'number', 'created', 'modified'], 'type': 'string', 'description': 'The result order applied.'}, 'error': {'type': 'object', 'required': ['code', 'message'], 'properties': {'code': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': -9007199254740991, 'description': 'JSON-RPC error code for this failure.'}, 'data': {'type': 'object', 'properties': {'reason': {'type': 'string', 'examples': ['pacer_shed', 'upstream_rate_limited'], 'description': 'Machine-readable failure mode. Declared by this tool: `pacer_shed`: The oeis.org request queue would exceed its wait budget. `upstream_rate_limited`: oeis.org answered HTTP 429 Too Many Requests and retries within the call did not clear it. Other values are possible when a failure originates below the handler.'}, 'recovery': {'type': 'object', 'required': ['hint'], 'properties': {'hint': {'type': 'string'}}, 'description': 'Actionable next step for the caller.', 'additionalProperties': {}}, 'retryable': {'type': 'boolean', 'description': 'Whether retrying may succeed.'}}, 'additionalProperties': {}}, 'message': {'type': 'string', 'description': 'Human-readable description of what went wrong.'}}, 'description': 'Present when the call failed. Absent on success.', 'additionalProperties': {}}, 'shown': {'type': 'number', 'description': 'Rows on this page.'}, 'start': {'type': 'number', 'description': 'The result offset of this page as OEIS served it; below the requested start when that start was past the last result (OEIS then serves the last page).'}, 'notice': {'type': 'string', 'description': 'Guidance: why nothing matched, how to narrow the query, or how to reach the next page.'}, 'results': {'type': 'array', 'items': {'type': 'object', 'required': ['aNumber', 'name', 'terms', 'keywords', 'url'], 'properties': {'url': {'type': 'string', 'description': 'Sequence page on oeis.org; cite it wherever the entry is reused.'}, 'name': {'type': 'string', 'description': 'Sequence name, written by OEIS contributors.'}, 'terms': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Data-line terms as exact decimal strings, signs kept.'}, 'author': {'type': 'string', 'description': 'Author line as OEIS records it, written by OEIS contributors; absent when the entry has none, as on a reserved or recycled A-number.'}, 'offset': {'type': 'string', 'description': 'Offset "i,p": i is the index n of the first term, p the 1-based position of the first term with |a(n)| > 1. Absent on a reserved or recycled A-number (keyword allocated or recycled).'}, 'aNumber': {'type': 'string', 'description': 'A-number, e.g. "A000108"; pass it to oeis_get_sequence for the full entry.'}, 'keywords': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Keyword flags such as nonn, core, tabl; oeis_list_reference topic keywords decodes them.'}, 'modified': {'type': 'string', 'description': 'When the entry was last edited, ISO 8601 with offset, e.g. "2026-09-23T16:08:09-04:00"; absent when OEIS sends no readable edit time.'}, 'legacyIds': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Legacy book numbers, e.g. ["M0692", "N0256"]; absent on entries that have none, and when OEIS sends no readable edit line.'}, 'firstIndex': {'type': 'number', 'description': 'The index n of the first term (the first number of offset); absent with offset.'}}, 'description': 'One matching sequence.', 'additionalProperties': False}, 'description': 'Matching sequences on this page, in the applied order.'}, 'nextStart': {'type': 'number', 'description': 'Pass as start for the next page; absent on the last reachable page.'}, 'truncated': {'type': 'boolean', 'description': 'True when more rows exist than this page shows.'}, 'totalCount': {'type': 'number', 'description': 'Total rows: the match count OEIS reported, or for outgoing cross-references the number of distinct A-numbers the entry names.'}, 'effectiveQuery': {'type': 'string', 'description': 'The query as OEIS parsed it (lowercased upstream), e.g. seq:1,2,5,14,42.'}}, 'additionalProperties': False}
追加
oeis_list_reference
2026年10月3日2:40
追加
oeis_get_cross_refs
2026年10月3日2:40
追加
oeis_get_terms
2026年10月3日2:40
追加
oeis_get_sequence
2026年10月3日2:40
追加
oeis_search_sequences
2026年10月3日2:40
追加
oeis_identify_sequence
2026年10月3日2:40