Skip to main content
Glama
twjackysu

TWSE MCP Server

get_company_profitability_analysis_summary

Retrieve aggregated profitability analysis reports for all companies listed on the Taiwan Stock Exchange. Analyze key financial metrics including gross margin, operating margin, and net margin across different time periods.

Instructions

Get profitability analysis query summary table (all companies aggregate report).

Args: page_size: Number of records per page (default: 20, max: 100) page_number: Page number to retrieve (default: 1, starts from 1) order_by: Field name to sort by. Available fields: - "公司代號" (Company Code) - "公司名稱" (Company Name) - "營業收入(百萬元)" (Revenue in millions) - "毛利率(%)(營業毛利)/(營業收入)" (Gross Margin %) - "營業利益率(%)(營業利益)/(營業收入)" (Operating Margin %) - "稅前純益率(%)(稅前純益)/(營業收入)" (Pre-tax Margin %) - "稅後純益率(%)(稅後純益)/(營業收入)" (Net Margin %) - "年度" (Year) - "季別" (Quarter) order_direction: Sort direction, "asc" for ascending or "desc" for descending (default: "asc")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNo
page_numberNo
order_byNo稅後純益率(%)(稅後純益)/(營業收入)
order_directionNodesc

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes pagination behavior (page_size, page_number defaults and limits) and sorting capabilities (order_by fields, order_direction), which are useful behavioral details. However, it doesn't mention whether this is a read-only operation, what authentication might be required, rate limits, or what happens with invalid parameters. The description adds some behavioral context but leaves significant gaps.

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

Conciseness4/5

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

The description is well-structured and appropriately sized. It starts with the core purpose, then provides a clear 'Args:' section with detailed parameter explanations. Every sentence earns its place by adding necessary information. The bilingual field explanations in order_by are particularly helpful. Minor improvement could be front-loading more behavioral context before the parameter details.

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?

Given the tool's complexity (4 parameters, financial data aggregation), no annotations, but with an output schema present, the description is reasonably complete. It thoroughly documents all parameters and their semantics. The output schema existence means the description doesn't need to explain return values. However, it could benefit from more behavioral context about the data source, update frequency, or typical use cases.

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?

The description provides extensive parameter semantics beyond what the input schema offers. With 0% schema description coverage, the description fully compensates by explaining all 4 parameters in detail: page_size (default, max), page_number (default, starting point), order_by (available fields with bilingual explanations), and order_direction (values, default). This adds crucial meaning that the bare schema lacks.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Get profitability analysis query summary table (all companies aggregate report).' It specifies the verb ('Get'), resource ('profitability analysis query summary table'), and scope ('all companies aggregate report'). However, it doesn't explicitly differentiate from its sibling 'get_company_profitability_analysis', which appears to be a similar tool for individual company analysis.

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. While it mentions 'all companies aggregate report,' it doesn't clarify when to choose this aggregate view over individual company analysis tools like 'get_company_profitability_analysis' or other financial reporting tools in the sibling list. No explicit when/when-not instructions or alternative recommendations are provided.

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/twjackysu/TWSEMCPServer'

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