Skip to main content
Glama
zlinzzzz

FinData MCP Server

by zlinzzzz

cashflow

Retrieve cash flow statements for listed companies, including operating, investing, and financing activities. Filter by stock code, date, and report type to analyze financial health.

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)                               |
    | is_calc  | int    | 否    | 是否计算报表                               |
    | fields     | list  | 否    | 从Fields中选取需要查询的字段,必须包含ann_date、f_ann_date、end_date  |

Fields:
    - ts_code:TS股票代码  
    - ann_date:公告日期  
    - f_ann_date:实际公告日期  
    - end_date:报告期  
    - comp_type:公司类型(1一般工商业2银行3保险4证券)  
    - report_type:报表类型  
    - end_type:报告期类型  
    - net_profit:净利润  
    - finan_exp:财务费用  
    - c_fr_sale_sg:销售商品、提供劳务收到的现金  
    - recp_tax_rends:收到的税费返还  
    - n_depos_incr_fi:客户存款和同业存放款项净增加额  
    - n_incr_loans_cb:向中央银行借款净增加额  
    - n_inc_borr_oth_fi:向其他金融机构拆入资金净增加额  
    - prem_fr_orig_contr:收到原保险合同保费取得的现金  
    - n_incr_insured_dep:保户储金净增加额  
    - n_reinsur_prem:收到再保业务现金净额  
    - n_incr_disp_tfa:处置交易性金融资产净增加额  
    - ifc_cash_incr:收取利息和手续费净增加额  
    - n_incr_disp_faas:处置可供出售金融资产净增加额  
    - n_incr_loans_oth_bank:拆入资金净增加额  
    - n_cap_incr_repur:回购业务资金净增加额  
    - c_fr_oth_operate_a:收到其他与经营活动有关的现金  
    - c_inf_fr_operate_a:经营活动现金流入小计  
    - c_paid_goods_s:购买商品、接受劳务支付的现金  
    - c_paid_to_for_empl:支付给职工以及为职工支付的现金  
    - c_paid_for_taxes:支付的各项税费  
    - n_incr_clt_loan_adv:客户贷款及垫款净增加额  
    - n_incr_dep_cbob:存放央行和同业款项净增加额  
    - c_pay_claims_orig_inco:支付原保险合同赔付款项的现金  
    - pay_handling_chrg:支付手续费的现金  
    - pay_comm_insur_plcy:支付保单红利的现金  
    - oth_cash_pay_oper_act:支付其他与经营活动有关的现金  
    - st_cash_out_act:经营活动现金流出小计  
    - n_cashflow_act:经营活动产生的现金流量净额  
    - oth_recp_ral_inv_act:收到其他与投资活动有关的现金  
    - c_disp_withdrwl_invest:收回投资收到的现金  
    - c_recp_return_invest:取得投资收益收到的现金  
    - n_recp_disp_fiolta:处置固定资产、无形资产和其他长期资产收回的现金净额  
    - n_recp_disp_sobu:处置子公司及其他营业单位收到的现金净额  
    - stot_inflows_inv_act:投资活动现金流入小计  
    - c_pay_acq_const_fiolta:购建固定资产、无形资产和其他长期资产支付的现金  
    - c_paid_invest:投资支付的现金  
    - n_disp_subs_oth_biz:取得子公司及其他营业单位支付的现金净额  
    - oth_pay_ral_inv_act:支付其他与投资活动有关的现金  
    - n_incr_pledge_loan:质押贷款净增加额  
    - stot_out_inv_act:投资活动现金流出小计  
    - n_cashflow_inv_act:投资活动产生的现金流量净额  
    - c_recp_borrow:取得借款收到的现金  
    - proc_issue_bonds:发行债券收到的现金  
    - oth_cash_recp_ral_fnc_act:收到其他与筹资活动有关的现金  
    - stot_cash_in_fnc_act:筹资活动现金流入小计  
    - free_cashflow:企业自由现金流量  
    - c_prepay_amt_borr:偿还债务支付的现金  
    - c_pay_dist_dpcp_int_exp:分配股利、利润或偿付利息支付的现金  
    - incl_dvd_profit_paid_sc_ms:其中:子公司支付给少数股东的股利、利润  
    - oth_cashpay_ral_fnc_act:支付其他与筹资活动有关的现金  
    - stot_cashout_fnc_act:筹资活动现金流出小计  
    - n_cash_flows_fnc_act:筹资活动产生的现金流量净额  
    - eff_fx_flu_cash:汇率变动对现金的影响  
    - n_incr_cash_cash_equ:现金及现金等价物净增加额  
    - c_cash_equ_beg_period:期初现金及现金等价物余额  
    - c_cash_equ_end_period:期末现金及现金等价物余额  
    - c_recp_cap_contrib:吸收投资收到的现金  
    - incl_cash_rec_saims:其中:子公司吸收少数股东投资收到的现金  
    - uncon_invest_loss:未确认投资损失  
    - prov_depr_assets:加:资产减值准备  
    - depr_fa_coga_dpba:固定资产折旧、油气资产折耗、生产性生物资产折旧  
    - amort_intang_assets:无形资产摊销  
    - lt_amort_deferred_exp:长期待摊费用摊销  
    - decr_deferred_exp:待摊费用减少  
    - incr_acc_exp:预提费用增加  
    - loss_disp_fiolta:处置固定、无形资产和其他长期资产的损失  
    - loss_scr_fa:固定资产报废损失  
    - loss_fv_chg:公允价值变动损失  
    - invest_loss:投资损失  
    - decr_def_inc_tax_assets:递延所得税资产减少  
    - incr_def_inc_tax_liab:递延所得税负债增加  
    - decr_inventories:存货的减少  
    - decr_oper_payable:经营性应收项目的减少  
    - incr_oper_payable:经营性应付项目的增加  
    - others:其他  
    - im_net_cashflow_oper_act:经营活动产生的现金流量净额(间接法)  
    - conv_debt_into_cap:债务转为资本  
    - conv_copbonds_due_within_1y:一年内到期的可转换公司债券  
    - fa_fnc_leases:融资租入固定资产  
    - im_n_incr_cash_equ:现金及现金等价物净增加额(间接法)  
    - net_dism_capital_add:拆出资金净增加额  
    - net_cash_rece_sec:代理买卖证券收到的现金净额(元)  
    - credit_impa_loss:信用减值损失  
    - use_right_asset_dep:使用权资产折旧  
    - oth_loss_asset:其他资产减值损失  
    - end_bal_cash:现金的期末余额  
    - beg_bal_cash:减:现金的期初余额  
    - end_bal_cash_equ:加:现金等价物的期末余额  
    - beg_bal_cash_equ:减:现金等价物的期初余额  
    - update_flag:更新标志(1最新)

Input Schema

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

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

No annotations are provided, so the description carries full burden. It does not disclose authentication requirements, rate limits, data freshness, or any side effects. The description only lists parameters and fields, omitting behavioral traits essential for an agent to safely invoke the tool.

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?

While the purpose is front-loaded, the description contains an excessively long field list (over 100 lines) that could be referenced externally. The parameter table is helpful but repetitively structured. More conciseness would improve readability without losing necessary detail.

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

Completeness4/5

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

For a data retrieval tool with 10 parameters and many fields, the description covers parameter formats and field names comprehensively. However, it lacks details on required parameters (ts_code is required per description but schema marks all optional), and does not explain the meaning of report_type or comp_type values, leaving minor gaps.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates with a detailed table explaining each parameter and its expected format (e.g., 'ts_code: 股票代码,每次只能查询一支股票', 'ann_date: 公告日期(YYYYMMDD格式)'). This adds significant meaning beyond the schema titles, making the parameters easily interpretable.

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 the tool retrieves cash flow statement data for listed companies (上市公司现金流量表). The verb '获取' and resource '现金流量表数据' are specific. Sibling tools like 'balancesheet' and 'income' handle other financial statements, so this tool is well-distinguished.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as 'balancesheet' or 'income'. It does not mention prerequisites, typical use cases, or exclusions. The agent must infer the tool's purpose from its name and description alone.

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