canli-mcp / Quant finance

Resample returns to weeks, months or years

Compound periodic returns into calendar weeks (ISO), months, quarters or years using their dates.

The tool is resample_returns in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.

Arguments

As the server declares them
ArgumentRequiredType
returnsyesnumber[]
datesyesstring[]
toyesweek|month|quarter|year

How a model reaches it

Ask in plain words. The model finds resample_returns with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:

{
  "name": "resample_returns",
  "arguments": {
    "returns": "<number[]>",
    "dates": "<string[]>",
    "to": "<week|month|quarter|year>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to resample_returns on these words: resample, returns, monthly, weekly, quarterly, annual, compound, aggregate, frequency.

More

Nothing here is investment advice.