Lucas Andersen Mlp API

MLP tax projection + analysis

GitHub OpenAPI

Operations 6

POST /v1/mlp/project Multi-year basis + tax projection #
POST /v1/mlp/estate Estate view across multiple positions: projected value, with the tax on a sale… #
POST /v1/mlp/compare Sell-now vs hold (no sale by the holder) comparison with break-even price #
POST /v1/mlp/etf Direct MLP vs C-corp ETF wrapper comparison #
POST /v1/mlp/stress Distribution cut stress test #
POST /v1/mlp/batch Batch up to 20 endpoint calls in a single request #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lucasandersen-ai:lucasandersen-ai-mlp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lucasandersen-ai-mlp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tax Computation Mlp API
  version: 1.0.0
  description: IRS-cited tax computation for Master Limited Partnership (MLP) positions. Compute basis projections, estate planning analysis, K-1 basis tracking, sell-vs-hold comparisons, and ETF wrapper vs direct MLP analysis. Every response includes specific IRC section citations and source attribution.
  contact:
    name: lucasandersen.ai
    url: https://lucasandersen.ai/api
  license:
    name: Proprietary — commercial use requires paid tier
servers:
- url: https://api.lucasandersen.ai
  description: Production
tags:
- name: mlp
  description: MLP tax projection + analysis
paths:
  /v1/mlp/project:
    post:
      tags:
      - mlp
      summary: Multi-year basis + tax projection
      description: Compute year-by-year basis erosion, §751 accumulation, annual federal tax, terminal FMV (the projected market value), the tax on a sale by the holder at that value (field saleTaxAtProjectedValue; deferredTaxEliminatedAtDeath is a deprecated alias with the same value; not a measure of tax saved or avoided at death; the successor's tax is not computed), and break-even sell price.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectInput'
      responses:
        '200':
          description: Successful computation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/ProjectData'
          headers:
            X-Request-ID:
              schema:
                type: string
            X-Engine-Version:
              schema:
                type: string
            X-Cache:
              schema:
                type: string
                enum:
                - HIT
                - MISS
                - BYPASS
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
            X-RateLimit-Reset:
              schema:
                type: string
                format: date-time
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpProject
      x-operation-id-source: derived
  /v1/mlp/estate:
    post:
      tags:
      - mlp
      summary: 'Estate view across multiple positions: projected value, with the tax on a sale…'
      description: 'Returns the projected market value of each position and in total, the projected value less adjusted basis (projectedValueLessBasis, totalProjectedValueLessBasis) and a per-beneficiary split. Kept apart, for comparison only (ifYouSellInstead): the tax on a sale by the holder at that value and the §751 ordinary income in that sale; not a measure of tax saved or avoided at death; the successor''s tax is not computed. deferredTaxEliminated, totalTaxEliminated, totalSection751Eliminated, stepUpAmount, totalStepUpAmount and comparison.holdAndInherit are deprecated aliases with the same values. Withdrawn (2026-10-19): a request with communityProperty true is rejected (400). The community-property treatment rests on no rule card on this site.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EstateInput'
      responses:
        '200':
          description: Successful computation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/EstateData'
          headers:
            X-Request-ID:
              schema:
                type: string
            X-Engine-Version:
              schema:
                type: string
            X-Cache:
              schema:
                type: string
                enum:
                - HIT
                - MISS
                - BYPASS
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
            X-RateLimit-Reset:
              schema:
                type: string
                format: date-time
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpEstate
      x-operation-id-source: derived
  /v1/mlp/compare:
    post:
      tags:
      - mlp
      summary: Sell-now vs hold (no sale by the holder) comparison with break-even price
      description: 'Returns a sale today and a hold with no sale by the holder through the horizon (holdNoSale). Kept outside both scenarios (saleAtProjectedValue): the tax on a sale by the holder at the projected value at the end of the horizon and the §751 ordinary income in that sale; neither is a measure of tax saved or avoided at death, and the successor''s tax is not computed. holdUntilDeath is a deprecated block with the same values under earlier names. Withdrawn (2026-10-19): a request with communityProperty true is rejected (400). The community-property treatment rests on no rule card on this site.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompareInput'
      responses:
        '200':
          description: Successful computation
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/CompareData'
          headers:
            X-Request-ID:
              schema:
                type: string
            X-Engine-Version:
              schema:
                type: string
            X-Cache:
              schema:
                type: string
                enum:
                - HIT
                - MISS
                - BYPASS
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
            X-RateLimit-Reset:
              schema:
                type: string
                format: date-time
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpCompare
      x-operation-id-source: derived
  /v1/mlp/etf:
    post:
      tags:
      - mlp
      summary: Direct MLP vs C-corp ETF wrapper comparison
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EtfInput'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpEtf
      x-operation-id-source: derived
  /v1/mlp/stress:
    post:
      tags:
      - mlp
      summary: Distribution cut stress test
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StressInput'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpStress
      x-operation-id-source: derived
  /v1/mlp/batch:
    post:
      tags:
      - mlp
      summary: Batch up to 20 endpoint calls in a single request
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchInput'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      operationId: postV1MlpBatch
      x-operation-id-source: derived
components:
  schemas:
    CompareData:
      type: object
      description: Data of /v1/mlp/compare (fields named in OBS-158; other fields as returned).
      properties:
        holdNoSale:
          type: object
          description: 'The hold scenario: no sale by the holder through the horizon.'
          properties:
            terminalMarketValue:
              type: number
              description: Projected market value at the end of the horizon.
            dollarAdvantageVsSelling:
              type: number
              description: Projected value with no tax deducted plus net distributions, less the after-tax proceeds of a sale today. Not a measure of tax saved or avoided at death.
        saleAtProjectedValue:
          type: object
          description: 'Reference, outside both scenarios: a sale by the holder at the projected value at the end of the horizon.'
          properties:
            saleTaxAtProjectedValue:
              type: number
              description: Tax on a sale by the holder at the projected market value at the end of the horizon. Not a measure of tax saved or avoided at death; the successor's tax is not computed.
            section751OrdinaryIncomeOnSale:
              type: number
              description: The §751 ordinary income in that sale (an income amount, not a tax).
        holdUntilDeath:
          type: object
          deprecated: true
          x-sunset: '2027-01-31'
          description: 'Deprecated (to be removed on 2027-01-31): earlier names for values now in holdNoSale and saleAtProjectedValue. heirSteppedUpBasis equals terminalMarketValue, the projected market value; it is not a successor''s basis figure. deferredTaxEliminated equals saleAtProjectedValue.saleTaxAtProjectedValue and section751Eliminated equals saleAtProjectedValue.section751OrdinaryIncomeOnSale. None of them is an amount eliminated or saved at death.'
    EstateData:
      type: object
      description: Data of /v1/mlp/estate (fields named in OBS-158; other fields as returned).
      properties:
        positions:
          type: array
          items:
            type: object
            properties:
              projectedFMV:
                type: number
                description: Projected market value of the position.
              ifYouSellInstead:
                type: object
                description: 'For comparison only: a sale by the holder, kept apart from the estate figures.'
                properties:
                  saleTaxAtProjectedValue:
                    type: number
                    description: Tax on a sale by the holder at the projected market value at the end of the horizon. Not a measure of tax saved or avoided at death; the successor's tax is not computed. The position is priced as if sold alone.
              deferredTaxEliminated:
                type: number
                deprecated: true
                x-sunset: '2027-01-31'
                description: 'Deprecated: the same value as ifYouSellInstead.saleTaxAtProjectedValue, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death.'
              projectedValueLessBasis:
                type: number
                description: 'Projected market value less the holder''s adjusted basis: a difference between two figures, not a tax.'
              stepUpAmount:
                type: number
                deprecated: true
                x-sunset: '2027-01-31'
                description: 'Deprecated: the same value as projectedValueLessBasis, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death. It is not a §1014 basis figure.'
        aggregate:
          type: object
          properties:
            totalFMV:
              type: number
              description: Total projected market value.
            totalTaxEliminated:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as ifYouSellInstead.totalSaleTaxAtProjectedValue, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death.'
            totalSection751Eliminated:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as ifYouSellInstead.totalSection751OrdinaryIncomeOnSale, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death.'
            totalProjectedValueLessBasis:
              type: number
              description: 'Projected market value less the holder''s adjusted basis: a difference between two figures, not a tax.'
            totalStepUpAmount:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as totalProjectedValueLessBasis, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death. It is not a §1014 basis figure.'
        ifYouSellInstead:
          type: object
          description: 'For comparison only: a sale by the holder at the projected values, kept apart from the estate figures.'
          properties:
            totalSaleTaxAtProjectedValue:
              type: number
              description: Tax on a sale by the holder at the projected market value at the end of the horizon. Not a measure of tax saved or avoided at death; the successor's tax is not computed. Each position is priced as if sold alone.
            totalSection751OrdinaryIncomeOnSale:
              type: number
              description: The §751 ordinary income in that sale (an income amount, not a tax).
        comparison:
          type: object
          properties:
            holdNoSaleProjectedValue:
              type: number
              description: The projected market value with no tax deducted (hold, no sale by the holder).
            holdAndInherit:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as holdNoSaleProjectedValue, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death.'
    EtfInput:
      type: object
      required:
      - ticker
      - investmentAmount
      properties:
        ticker:
          $ref: '#/components/schemas/Ticker'
        investmentAmount:
          type: number
          minimum: 100
          maximum: 100000000
        unitPrice:
          type: number
        years:
          type: integer
          default: 20
        taxBracket:
          type: number
          default: 0.32
        etfExpenseRatio:
          type: number
          default: 0.0087
        etfCorporateTaxDrag:
          type: number
          default: 0.21
        etfQualifiedDividendPct:
          type: number
          default: 0.8
    SuccessEnvelope:
      type: object
      required:
      - success
      - data
      - citations
      - computation_id
      - engine_version
      - timestamp
      - attribution
      properties:
        success:
          type: boolean
          enum:
          - true
        data:
          type: object
          description: Endpoint-specific result
        citations:
          type: array
          items:
            type: string
          description: IRC sections and IRS publications used in the computation
        computation_id:
          type: string
          description: Unique per-call ID for audit trail
        engine_version:
          type: string
        timestamp:
          type: string
          format: date-time
        attribution:
          $ref: '#/components/schemas/Attribution'
    BatchInput:
      type: object
      required:
      - requests
      properties:
        requests:
          type: array
          minItems: 1
          maxItems: 20
          items:
            type: object
            required:
            - endpoint
            - params
            properties:
              endpoint:
                type: string
                enum:
                - project
                - estate
                - compare
                - etf
                - stress
              params:
                type: object
    StressInput:
      type: object
      required:
      - ticker
      - units
      - cutPercentage
      properties:
        ticker:
          $ref: '#/components/schemas/Ticker'
        units:
          type: number
          minimum: 1
          maximum: 1000000
        purchasePrice:
          type: number
        years:
          type: integer
          default: 20
        taxBracket:
          type: number
          default: 0.32
        cutPercentage:
          type: number
          minimum: 0.01
          maximum: 0.99
        cutYear:
          type: integer
          default: 5
        recoveryPeriod:
          type: integer
          default: 3
        recoveryShape:
          type: string
          enum:
          - linear
          - step
          - immediate
          default: linear
    CompareInput:
      type: object
      required:
      - ticker
      - units
      properties:
        ticker:
          $ref: '#/components/schemas/Ticker'
        units:
          type: number
          minimum: 1
          maximum: 1000000
        purchasePrice:
          type: number
        yearsHeld:
          type: integer
          default: 10
        yearsToProject:
          type: integer
          default: 10
        taxBracket:
          type: number
          default: 0.32
        communityProperty:
          type: boolean
          default: false
          deprecated: true
          description: 'Withdrawn (2026-10-19): a request with communityProperty true is rejected (400). The community-property treatment rests on no rule card on this site.'
    EstateInput:
      type: object
      required:
      - positions
      properties:
        positions:
          type: array
          minItems: 1
          maxItems: 20
          items:
            $ref: '#/components/schemas/EstatePositionInput'
        beneficiaries:
          type: integer
          minimum: 1
          maximum: 20
          default: 1
        communityProperty:
          type: boolean
          default: false
          deprecated: true
          description: 'Withdrawn (2026-10-19): a request with communityProperty true is rejected (400). The community-property treatment rests on no rule card on this site.'
        taxBracket:
          type: number
          minimum: 0.1
          maximum: 0.5
          default: 0.32
        state:
          type: string
          description: 2-letter state code
    ErrorEnvelope:
      type: object
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          enum:
          - false
        error:
          type: string
        details:
          description: Optional error-specific details
        documentation:
          type: string
          format: uri
        supported_tickers:
          type: array
          items:
            type: string
        limit:
          type: integer
        remaining:
          type: integer
        resetAt:
          type: string
          format: date-time
        upgrade:
          type: string
          format: uri
    ValidationIssue:
      type: object
      required:
      - field
      - issue
      properties:
        field:
          type: string
        issue:
          type: string
        received:
          description: Value received that failed validation
    EstatePositionInput:
      type: object
      required:
      - ticker
      - units
      properties:
        ticker:
          $ref: '#/components/schemas/Ticker'
        units:
          type: number
          minimum: 1
          maximum: 1000000
        purchasePrice:
          type: number
          minimum: 0.01
          maximum: 10000
        yearsHeld:
          type: integer
          minimum: 0
          maximum: 50
          default: 10
    ProjectInput:
      type: object
      required:
      - ticker
      - units
      properties:
        ticker:
          $ref: '#/components/schemas/Ticker'
        units:
          type: number
          minimum: 1
          maximum: 1000000
        purchasePrice:
          type: number
          minimum: 0.01
          maximum: 10000
        years:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
        taxBracket:
          type: number
          minimum: 0.1
          maximum: 0.5
          default: 0.32
        distributionGrowth:
          type: number
          minimum: -0.5
          maximum: 0.5
    Ticker:
      type: string
      enum:
      - EPD
      - ET
      - MPLX
      - WES
      - PAA
      - NRP
      - USAC
      - SUN
      description: Supported MLP ticker symbol
    ProjectData:
      type: object
      description: Data of /v1/mlp/project (fields named in OBS-158; other fields as returned).
      properties:
        summary:
          type: object
          properties:
            terminalFMV:
              type: number
              description: Projected market value at the end of the horizon.
            saleTaxAtProjectedValue:
              type: number
              description: Tax on a sale by the holder at the projected market value at the end of the horizon. Not a measure of tax saved or avoided at death; the successor's tax is not computed.
            deferredTaxEliminatedAtDeath:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as saleTaxAtProjectedValue, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death.'
            projectedValueLessBasis:
              type: number
              description: 'Projected market value less the holder''s adjusted basis, floored at $0: a difference between two figures, not a tax.'
            stepUpValue:
              type: number
              deprecated: true
              x-sunset: '2027-01-31'
              description: 'Deprecated: the same value as projectedValueLessBasis, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death. It is not a §1014 basis figure.'
    Attribution:
      type: object
      required:
      - source
      - methodology
      - url
      properties:
        source:
          type: string
        methodology:
          type: string
        url:
          type: string
          format: uri
  responses:
    ValidationError:
      description: Validation failed
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorEnvelope'
            - type: object
              properties:
                details:
                  type: array
                  items:
                    $ref: '#/components/schemas/ValidationIssue'
    RateLimitExceeded:
      description: Rate limit exceeded for this key/IP
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Success:
      description: Successful computation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SuccessEnvelope'
      headers:
        X-Request-ID:
          schema:
            type: string
        X-Engine-Version:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
            - HIT
            - MISS
            - BYPASS
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: string
            format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key as Bearer token. Unauthenticated requests permitted at lower rate limit (10/day per IP).
x-engine-version: 0.1.2