Skip to main content
Glama

SEC Filing MCP Server

prompt.cpython-311.pyc9.97 kB
� �q�h &��*�ddlmZdZdZdZdZdZdZdS) �)�HTASKz� 'AAPL': 'Apple Inc.', 'AMZN': 'Amazon.com Inc.', 'FL': 'Foot Locker Inc.', 'KO': 'The Coca-Cola Company', 'META': 'Meta Platforms Inc.', 'MSFT': 'Microsoft Corporation', 'NVDA': 'NVIDIA Corporation', 'TSLA': 'Tesla Inc.' z= '10-K': 'Annual Report', '10-Q': 'Quarterly Report' ue AAPL │ ├── AAPL_10K_2020-10-30 │ ├── AAPL_10K_2021-10-29 │ ├── AAPL_10K_2022-10-28 │ ├── AAPL_10K_2023-11-03 │ ├── AAPL_10K_2024-11-01 │ ├── AAPL_10Q_2020-01-29 │ ├── AAPL_10Q_2020-05-01 │ ├── AAPL_10Q_2020-07-31 │ ├── AAPL_10Q_2021-01-28 │ ├── AAPL_10Q_2021-04-29 │ ├── AAPL_10Q_2021-07-28 │ ├── AAPL_10Q_2022-01-28 │ ├── AAPL_10Q_2022-04-29 │ ├── AAPL_10Q_2022-07-29 │ ├── AAPL_10Q_2023-02-03 │ ├── AAPL_10Q_2023-05-05 │ ├── AAPL_10Q_2023-08-04 │ ├── AAPL_10Q_2024-02-02 │ ├── AAPL_10Q_2024-05-03 │ ├── AAPL_10Q_2024-08-02 │ ├── AAPL_10Q_2025-01-31 │ └── AAPL_10Q_2025-05-02 ├── AMZN │ ├── AMZN_10K_2020-01-31 │ ├── AMZN_10K_2021-02-03 │ ├── AMZN_10K_2022-02-04 │ ├── AMZN_10K_2023-02-03 │ ├── AMZN_10K_2024-02-02 │ ├── AMZN_10K_2025-02-07 │ ├── AMZN_10Q_2020-05-01 │ ├── AMZN_10Q_2020-07-31 │ ├── AMZN_10Q_2020-10-30 │ ├── AMZN_10Q_2021-04-30 │ ├── AMZN_10Q_2021-07-30 │ ├── AMZN_10Q_2021-10-29 │ ├── AMZN_10Q_2022-04-29 │ ├── AMZN_10Q_2022-07-29 │ ├── AMZN_10Q_2022-10-28 │ ├── AMZN_10Q_2023-04-28 │ ├── AMZN_10Q_2023-08-04 │ ├── AMZN_10Q_2023-10-27 │ ├── AMZN_10Q_2024-05-01 │ ├── AMZN_10Q_2024-08-02 │ ├── AMZN_10Q_2024-11-01 │ └── AMZN_10Q_2025-05-02 ├── FL │ ├── FL_10K_2020-03-27 │ ├── FL_10K_2021-03-25 │ ├── FL_10K_2022-03-24 │ ├── FL_10K_2023-03-27 │ ├── FL_10K_2024-03-28 │ ├── FL_10K_2025-03-27 │ ├── FL_10Q_2020-06-10 │ ├── FL_10Q_2020-09-09 │ ├── FL_10Q_2020-12-09 │ ├── FL_10Q_2021-06-09 │ ├── FL_10Q_2021-09-09 │ ├── FL_10Q_2021-12-08 │ ├── FL_10Q_2022-06-08 │ ├── FL_10Q_2022-09-07 │ ├── FL_10Q_2022-12-07 │ ├── FL_10Q_2023-06-07 │ ├── FL_10Q_2023-09-06 │ ├── FL_10Q_2023-12-06 │ ├── FL_10Q_2024-06-12 │ ├── FL_10Q_2024-09-11 │ └── FL_10Q_2024-12-11 ├── KO │ ├── KO_10K_2020-02-24 │ ├── KO_10K_2021-02-25 │ ├── KO_10K_2022-02-22 │ ├── KO_10K_2023-02-21 │ ├── KO_10K_2024-02-20 │ ├── KO_10K_2025-02-20 │ ├── KO_10Q_2020-04-24 │ ├── KO_10Q_2020-07-22 │ ├── KO_10Q_2020-10-22 │ ├── KO_10Q_2021-04-27 │ ├── KO_10Q_2021-07-26 │ ├── KO_10Q_2021-10-28 │ ├── KO_10Q_2022-04-28 │ ├── KO_10Q_2022-07-27 │ ├── KO_10Q_2022-10-26 │ ├── KO_10Q_2023-04-26 │ ├── KO_10Q_2023-07-27 │ ├── KO_10Q_2023-10-24 │ ├── KO_10Q_2024-05-02 │ ├── KO_10Q_2024-07-29 │ ├── KO_10Q_2024-10-24 │ └── KO_10Q_2025-05-01 ├── META │ ├── META_10K_2020-01-30 │ ├── META_10K_2021-01-28 │ ├── META_10K_2022-02-03 │ ├── META_10K_2023-02-02 │ ├── META_10K_2024-02-02 │ ├── META_10K_2025-01-30 │ ├── META_10Q_2020-04-30 │ ├── META_10Q_2020-07-31 │ ├── META_10Q_2020-10-30 │ ├── META_10Q_2021-04-29 │ ├── META_10Q_2021-07-29 │ ├── META_10Q_2021-10-26 │ ├── META_10Q_2022-04-28 │ ├── META_10Q_2022-07-28 │ ├── META_10Q_2022-10-27 │ ├── META_10Q_2023-04-27 │ ├── META_10Q_2023-07-27 │ ├── META_10Q_2023-10-26 │ ├── META_10Q_2024-04-25 │ ├── META_10Q_2024-08-01 │ ├── META_10Q_2024-10-31 │ └── META_10Q_2025-05-01 ├── MSFT │ ├── MSFT_10K_2020-07-30 │ ├── MSFT_10K_2021-07-29 │ ├── MSFT_10K_2022-07-28 │ ├── MSFT_10K_2023-07-27 │ ├── MSFT_10K_2024-07-30 │ ├── MSFT_10Q_2020-01-29 │ ├── MSFT_10Q_2020-04-29 │ ├── MSFT_10Q_2020-10-27 │ ├── MSFT_10Q_2021-01-26 │ ├── MSFT_10Q_2021-04-27 │ ├── MSFT_10Q_2021-10-26 │ ├── MSFT_10Q_2022-01-25 │ ├── MSFT_10Q_2022-04-26 │ ├── MSFT_10Q_2022-10-25 │ ├── MSFT_10Q_2023-01-24 │ ├── MSFT_10Q_2023-04-25 │ ├── MSFT_10Q_2023-10-24 │ ├── MSFT_10Q_2024-01-30 │ ├── MSFT_10Q_2024-04-25 │ ├── MSFT_10Q_2024-10-30 │ ├── MSFT_10Q_2025-01-29 │ └── MSFT_10Q_2025-04-30 ├── NVDA │ ├── NVDA_10K_2020-02-20 │ ├── NVDA_10K_2021-02-26 │ ├── NVDA_10K_2022-03-18 │ ├── NVDA_10K_2023-02-24 │ ├── NVDA_10K_2024-02-21 │ ├── NVDA_10K_2025-02-26 │ ├── NVDA_10Q_2020-05-21 │ ├── NVDA_10Q_2020-08-19 │ ├── NVDA_10Q_2020-11-18 │ ├── NVDA_10Q_2021-05-26 │ ├── NVDA_10Q_2021-08-20 │ ├── NVDA_10Q_2021-11-22 │ ├── NVDA_10Q_2022-05-27 │ ├── NVDA_10Q_2022-08-31 │ ├── NVDA_10Q_2022-11-18 │ ├── NVDA_10Q_2023-05-26 │ ├── NVDA_10Q_2023-08-28 │ ├── NVDA_10Q_2023-11-21 │ ├── NVDA_10Q_2024-05-29 │ ├── NVDA_10Q_2024-08-28 │ └── NVDA_10Q_2024-11-20 └── TSLA ├── TSLA_10K_2020-02-13 ├── TSLA_10K_2021-02-08 ├── TSLA_10K_2022-02-07 ├── TSLA_10K_2023-01-31 ├── TSLA_10K_2024-01-29 ├── TSLA_10K_2025-01-30 ├── TSLA_10Q_2020-04-30 ├── TSLA_10Q_2020-07-28 ├── TSLA_10Q_2020-10-26 ├── TSLA_10Q_2021-04-28 ├── TSLA_10Q_2021-07-27 ├── TSLA_10Q_2021-10-25 ├── TSLA_10Q_2022-04-25 ├── TSLA_10Q_2022-07-25 ├── TSLA_10Q_2022-10-24 ├── TSLA_10Q_2023-04-24 ├── TSLA_10Q_2023-07-24 ├── TSLA_10Q_2023-10-23 ├── TSLA_10Q_2024-04-24 ├── TSLA_10Q_2024-07-24 ├── TSLA_10Q_2024-10-24 └── TSLA_10Q_2025-04-23 a� [ROLE] You are a world-class stock information analyst. You specialize in understanding user queries about SEC filings. [TASK] The user will ask a question related to SEC filings. Your task is to analyze the question and produce a structured query containing the relevant details. [INSTRUCTIONS] The user's question may include references to: - A specific **company** (from the list of companies provided below). - A specific **filing type** (from the defined filing types, e.g., 10-K or 10-Q). - A specific **filing date** (matching one of the available filing dates for the documents you have). You have access to information on the following companies: {COMPANIES} The SEC filing types you can recognize are: {FILING_TYPES} For each company, the following filing dates and documents are available: {FILING_DATES} Follow these rules when constructing the structured query: - If and only if the user explicitly asks about a specific **company**, return the corresponding **company ticker** (as listed above). - If and only if the user explicitly asks about a specific type of **filing**, return that **filing type** (e.g., "10-K" or "10-Q"). - If and only if the user explicitly asks about a specific **filing date**, return that **filing date** (in YYYY-MM-DD format, as listed above). - Do **not** make up any information. If the user's question does not specify a company, filing type, or filing date, return **None** for that field. [INPUT] The input is a question from the user about SEC filings. [OUTPUT] The output should be a structured query with the following fields: query: <the user's question verbatim> company_ticker: <the company ticker if specified, otherwise None> filing_type: <the filing type if specified, otherwise None> filing_date: <the filing date if specified, otherwise None> an [ROLE] You are a world-class stock information analyst specializing in SEC filings. [TASK] The user has asked a question about information in SEC filings. Your job is to provide a helpful and accurate answer based on the content of those filings. You will be given a set of relevant documents (excerpts from SEC filings) related to the user's question. Use **only** the information from the provided documents to answer the question. If the answer is not contained in the provided documents, do not invent details. Your answer should be clear, concise, and directly address the user's query. ag You are a helpful assistant knowledgeable about SEC filings. The user's question is: {question} Here are the relevant documents from SEC filings that relate to the question: {documents} Based on the above documents, please answer the user's question. Use the information from the documents to provide a complete and accurate answer. N)�ctypes.wintypesr� COMPANIES� FILING_TYPES� FILING_DATES�QUERY_SYSTEM_PROMPT�SEC_SYSTEM_PROMPT�SEC_USER_PROMPT���#/Users/sharhad/mcp/server/prompt.py�<module>rsJ��!�!�!�!�!�!� � �� � w� �r#��L�� ���r

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SharhadBashar/SEC-filing-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server