Skip to main content
Glama

get_balance_sheet

Retrieve company balance sheet data by specifying a stock symbol and the number of recent records needed for financial analysis or insights.

Instructions

Get company balance sheet data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recent_nNoNumber of most recent records to return
symbolYesStock symbol/ticker (e.g. '000001')

Implementation Reference

  • The handler function for the 'get_balance_sheet' tool. It is registered via the @mcp.tool decorator. Fetches balance sheet data using ako.get_balance_sheet for the given symbol from 'sina' source, limits to recent_n rows if specified, and returns as JSON string.
    @mcp.tool def get_balance_sheet( symbol: Annotated[str, Field(description="Stock symbol/ticker (e.g. '000001')")], recent_n: Annotated[ int | None, Field(description="Number of most recent records to return", ge=1) ] = 10, ) -> str: """Get company balance sheet data.""" df = ako.get_balance_sheet(symbol=symbol, source="sina") if recent_n is not None: df = df.head(recent_n) return df.to_json(orient="records") or "[]"

Other Tools

Related 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/zwldarren/akshare-one-mcp'

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