get_recommendation_trends

Pack: finnhub · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_recommendation_trends for the schema, then POST the same URL with its arguments for the data.

Analyst recommendation trends for a company — counts of Strong Buy / Buy / Hold / Sell / Strong Sell, by month, for the last several months. Example: get_recommendation_trends({ symbol: “AAPL” })

Parameters

NameTypeRequiredDescription
symbolstringyesStock ticker symbol, e.g. “AAPL”, “MSFT”, “TSLA”
_apiKeystringyesFinnhub API key (get one free at finnhub.io)

Example call

Arguments

{
  "symbol": "AAPL"
}

curl

curl -X POST https://gateway.pipeworx.io/finnhub/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_recommendation_trends","arguments":{"symbol":"AAPL"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_recommendation_trends', {
  "symbol": "AAPL"
});

More examples

{
  "symbol": "MSFT"
}

Response shape

Always returns: symbol, source, data_as_of, periods

FieldTypeDescription
symbolstringStock ticker symbol
sourcestringData source attribution
data_as_ofstringDate the data was retrieved (YYYY-MM-DD)
periodsarrayMonthly analyst recommendation counts, most recent period first
Full JSON Schema
{
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string",
      "description": "Stock ticker symbol"
    },
    "source": {
      "type": "string",
      "description": "Data source attribution"
    },
    "data_as_of": {
      "type": "string",
      "description": "Date the data was retrieved (YYYY-MM-DD)"
    },
    "periods": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "description": "Month the recommendations were recorded (YYYY-MM-DD)"
          },
          "strong_buy": {
            "type": "integer",
            "description": "Number of Strong Buy ratings"
          },
          "buy": {
            "type": "integer",
            "description": "Number of Buy ratings"
          },
          "hold": {
            "type": "integer",
            "description": "Number of Hold ratings"
          },
          "sell": {
            "type": "integer",
            "description": "Number of Sell ratings"
          },
          "strong_sell": {
            "type": "integer",
            "description": "Number of Strong Sell ratings"
          },
          "total_analysts": {
            "type": "integer",
            "description": "Total analysts covering this period"
          }
        },
        "required": [
          "period",
          "strong_buy",
          "buy",
          "hold",
          "sell",
          "strong_sell",
          "total_analysts"
        ]
      },
      "description": "Monthly analyst recommendation counts, most recent period first"
    }
  },
  "required": [
    "symbol",
    "source",
    "data_as_of",
    "periods"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the finnhub pack
{
  "mcpServers": {
    "finnhub": {
      "url": "https://gateway.pipeworx.io/finnhub/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 3, 2026