Skip to main content
Glama
zlinzzzz

FinData MCP Server

by zlinzzzz

income

Retrieve income statement data for listed companies, including revenue, net profit, earnings per share, and more. Filter by stock code, report period, or announcement date.

Instructions

Name:
    上市公司财务利润表。

Description:
    获取上市公司财务三大报表之利润表数据。

Args:
    | 名称       | 类型   | 必选 | 描述                                                                 |
    |------------|--------|------|----------------------------------------------------------------------|
    | ts_code    | str    | 是    | 股票代码,每次只能查询一支股票                                                                |
    | ann_date   | str    | 否    | 公告日期(YYYYMMDD格式)                                       |
    | f_ann_date | str    | 否    | 实际公告日期(YYYYMMDD格式)                                           |
    | start_date | str    | 否    | 公告开始日期(YYYYMMDD格式)                                           |
    | end_date   | str    | 否    | 公告结束日期 (YYYYMMDD格式)                                          |
    | period     | str    | 否    | 报告期(每个季度最后一天的日期,比如20171231表示年报,20170630半年报,20170930三季报) |
    | report_type| str    | 否    | 报告类型,参考文档最下方说明                                         |
    | comp_type  | str    | 否    | 公司类型(一般工商业:1,银行:2,保险:3,证券:4)                               |
    | fields     | list  | 否    | 从Fields中选取需要查询的字段  |

Fields:
    - ts_code:TS代码
    - ann_date:公告日期
    - f_ann_date:实际公告日期
    - end_date:报告期(每个季度最后一天的日期,比如20171231表示年报,20170630半年报,20170930三季报)
    - report_type:报告类型 见底部表
    - comp_type:公司类型(1一般工商业2银行3保险4证券)
    - end_type:报告期类型
    - basic_eps:基本每股收益
    - diluted_eps:稀释每股收益
    - total_revenue:营业总收入
    - revenue:营业收入
    - int_income:利息收入
    - prem_earned:已赚保费
    - comm_income:手续费及佣金收入
    - n_commis_income:手续费及佣金净收入
    - n_oth_income:其他经营净收益
    - n_oth_b_income:加:其他业务净收益
    - prem_income:保险业务收入
    - out_prem:减:分出保费
    - une_prem_reser:提取未到期责任准备金
    - reins_income:其中:分保费收入
    - n_sec_tb_income:代理买卖证券业务净收入
    - n_sec_uw_income:证券承销业务净收入
    - n_asset_mg_income:受托客户资产管理业务净收入
    - oth_b_income:其他业务收入
    - fv_value_chg_gain:加:公允价值变动净收益
    - invest_income:加:投资净收益
    - ass_invest_income:其中:对联营企业和合营企业的投资收益
    - forex_gain:加:汇兑净收益
    - total_cogs:营业总成本
    - oper_cost:减:营业成本
    - int_exp:减:利息支出
    - comm_exp:减:手续费及佣金支出
    - biz_tax_surchg:减:营业税金及附加
    - sell_exp:减:销售费用
    - admin_exp:减:管理费用
    - fin_exp:减:财务费用
    - assets_impair_loss:减:资产减值损失
    - prem_refund:退保金
    - compens_payout:赔付总支出
    - reser_insur_liab:提取保险责任准备金
    - div_payt:保户红利支出
    - reins_exp:分保费用
    - oper_exp:营业支出
    - compens_payout_refu:减:摊回赔付支出
    - insur_reser_refu:减:摊回保险责任准备金
    - reins_cost_refund:减:摊回分保费用
    - other_bus_cost:其他业务成本
    - operate_profit:营业利润
    - non_oper_income:加:营业外收入
    - non_oper_exp:减:营业外支出
    - nca_disploss:其中:减:非流动资产处置净损失
    - total_profit:利润总额
    - income_tax:所得税费用
    - n_income:净利润(含少数股东损益)
    - n_income_attr_p:净利润(不含少数股东损益)
    - minority_gain:少数股东损益
    - oth_compr_income:其他综合收益
    - t_compr_income:综合收益总额
    - compr_inc_attr_p:归属于母公司(或股东)的综合收益总额
    - compr_inc_attr_m_s:归属于少数股东的综合收益总额
    - ebit:息税前利润
    - ebitda:息税折旧摊销前利润
    - insurance_exp:保险业务支出
    - undist_profit:年初未分配利润
    - distable_profit:可分配利润
    - rd_exp:研发费用
    - fin_exp_int_exp:财务费用:利息费用
    - fin_exp_int_inc:财务费用:利息收入
    - transfer_surplus_rese:盈余公积转入
    - transfer_housing_imprest:住房周转金转入
    - transfer_oth:其他转入
    - adj_lossgain:调整以前年度损益
    - withdra_legal_surplus:提取法定盈余公积
    - withdra_legal_pubfund:提取法定公益金
    - withdra_biz_devfund:提取企业发展基金
    - withdra_rese_fund:提取储备基金
    - withdra_oth_ersu:提取任意盈余公积金
    - workers_welfare:职工奖金福利
    - distr_profit_shrhder:可供股东分配的利润
    - prfshare_payable_dvd:应付优先股股利
    - comshare_payable_dvd:应付普通股股利
    - capit_comstock_div:转作股本的普通股股利
    - net_after_nr_lp_correct:扣除非经常性损益后的净利润(更正前)
    - credit_impa_loss:信用减值损失
    - net_expo_hedging_benefits:净敞口套期收益
    - oth_impair_loss_assets:其他资产减值损失
    - total_opcost:营业总成本(二)
    - amodcost_fin_assets:以摊余成本计量的金融资产终止确认收益
    - oth_income:其他收益
    - asset_disp_income:资产处置收益
    - continued_net_profit:持续经营净利润
    - end_net_profit:终止经营净利润
    - update_flag:更新标识

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ts_codeNo
ann_dateNo
f_ann_dateNo
start_dateNo
end_dateNo
periodNo
report_typeNo
comp_typeNo
fieldsNo
Behavior2/5

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

No annotations are provided, and the description lacks disclosure of behavioral traits such as required permissions, rate limits, or data freshness. The read-only nature is implied but not stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a clear purpose but is lengthy due to a large field list and parameter table. While organized, it could be more concise for efficient use by an AI agent.

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

Completeness3/5

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

The description covers parameters and output fields adequately but lacks examples or explanations of parameter interactions (e.g., period vs date range). No output schema is provided, so return values are inferred from the field list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description includes a detailed table with parameter names, types, required status, and descriptions, compensating for the 0% schema description coverage. The extensive field list further clarifies the output options.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states in Chinese that the tool retrieves income statement data for listed companies, distinguishing it from sibling tools like balancesheet and cashflow, which cover other financial statements.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for income statements but provides no explicit guidance on when to use this tool versus alternatives like balancesheet or cashflow, nor any conditions for when not to use it.

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

Install Server

Other Tools

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/zlinzzzz/finData-mcp-server'

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