get_treasury_rates

Pack: treasury · Endpoint: https://gateway.pipeworx.io/treasury/mcp

Get US Treasury average interest rates. Returns the 10 most recent rate records, optionally filtered by a specific date (YYYY-MM-DD).

Parameters

NameTypeRequiredDescription
datestringnoFilter by record date in YYYY-MM-DD format (optional)

Example call

Arguments

{}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_treasury_rates', {});

More examples

{
  "date": "2024-01-15"
}

Response shape

Always returns: filter_date, total_records, rates

FieldTypeDescription
filter_datestring | nullFilter date if provided, otherwise null
total_recordsnumberTotal number of records matching the query
ratesarrayArray of Treasury interest rate records
Full JSON Schema
{
  "type": "object",
  "properties": {
    "filter_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filter date if provided, otherwise null"
    },
    "total_records": {
      "type": "number",
      "description": "Total number of records matching the query"
    },
    "rates": {
      "type": "array",
      "description": "Array of Treasury interest rate records",
      "items": {
        "type": "object",
        "properties": {
          "record_date": {
            "type": "string",
            "description": "Date of the rate record (YYYY-MM-DD format)"
          },
          "security_type": {
            "type": "string",
            "description": "Type of security (e.g., Bills, Notes, Bonds)"
          },
          "security_description": {
            "type": "string",
            "description": "Description of the security"
          },
          "avg_interest_rate": {
            "type": "string",
            "description": "Average interest rate as a percentage"
          }
        },
        "required": [
          "record_date",
          "security_type",
          "security_description",
          "avg_interest_rate"
        ]
      }
    }
  },
  "required": [
    "filter_date",
    "total_records",
    "rates"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "treasury": {
      "url": "https://gateway.pipeworx.io/treasury/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026