{"uid":"cap_pQu7OJDqA2FyPJFHTKQKc","slug":"agent402-tools-trend-analysis-workflow-a89a88e1","name":"agent402.tools Trend Analysis Workflow","description":"Bundled execution of the Trend analysis workflow - Take any numeric time series - a stock's daily close, a FRED macro indicator, a treasury yield history - and run it through the full quantitative workup: descriptives, moving averages, trend line, outliers, optional correlation against a benchmark, and a deterministic forecast forward with a 95% prediction interval. Everything an analyst writes a notebook for, in one chain of cheap calls.","url":"https://agent402.tools/api/skill/trend-analysis","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"series":{"type":"string","description":"What to analyze - a ticker (AAPL), a FRED series id (UNRATE), or a treasury maturity (10Y)"},"horizon":{"type":"string","description":"Lookback window for the fetch - e.g. \"1y\", \"5y\", \"6mo\". Maps to the upstream tool's range parameter."}}},"responseSchema":{"type":"json","example":{"args":{"series":"AAPL","horizon":"1y"},"pack":"trend-analysis","steps":[{"ok":true,"slug":"stock-history","result":{}},{"ok":true,"slug":"fred-series","result":{}},{"ok":true,"slug":"stats-summary","result":{}},{"ok":true,"slug":"moving-average","result":{}},{"ok":true,"slug":"linear-regression","result":{}},{"ok":true,"slug":"outliers","result":{}},{"ok":true,"slug":"correlation","result":{}},{"ok":true,"slug":"forecast-eval","result":{}}],"summary":"8/8 steps succeeded"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-jVQTLcwMl3mtGzFxUCfV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a full quantitative trend analysis on a numeric time series — stock ticker, FRED macro indicator, or treasury yield — including descriptives, moving averages, and trend lines","exampleAgentPrompt":"Run a full trend analysis on AAPL over the last 1 year — I want descriptives, moving averages, and the trend line.","exampleUseCases":null,"resultDescription":"A comprehensive quantitative workup of the requested time series, including descriptive statistics, moving averages, a fitted trend line, and trend summary metrics for the specified lookback window.","failureModes":["Invalid or unrecognized ticker symbol returns an error","Unknown FRED series ID causes upstream fetch failure","Unsupported horizon format results in a parameter error","Insufficient historical data for the requested window may return partial results","Payment not received (x402) causes request to be rejected"],"whenToPreferThis":"Use this endpoint when you need a bundled, single-call quantitative trend analysis on financial or macroeconomic time series data — especially when you want descriptives, moving averages, and trend lines computed together without chaining multiple API calls. Prefer it over rolling your own analysis pipeline when the input is a stock ticker, FRED series ID, or treasury maturity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:18:45.758Z","isFirstParty":false}