finance_stock_profile
Retrieve detailed company profiles for stocks, including sector, industry, employee count, market capitalization, P/E ratio, and business descriptions to support investment research and analysis.
Instructions
Get company profile including sector, industry, employees, market cap, P/E ratio, and business description. Costs $0.03 USDC per request via x402 on Base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker (e.g., AAPL, MSFT, GOOGL) |
Implementation Reference
- src/index.ts:144-159 (handler)The tool "finance_stock_profile" is registered and its logic implemented directly within the call to `server.registerTool`. It fetches stock profile data from the `FINANCE_API` endpoint.
server.registerTool( "finance_stock_profile", { title: "Get Company Profile", description: `Get company profile including sector, industry, employees, market cap, P/E ratio, and business description. Costs $0.03 USDC per request via x402 on Base.`, inputSchema: { symbol: z.string().min(1).max(10).describe("Stock ticker (e.g., AAPL, MSFT, GOOGL)"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ symbol }) => { const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/profile/${symbol.toUpperCase()}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );