curl --request GET \
--url "https://data.lambda-capture.com/semantic-search/" \
--data '{
"api_key": "'"$API_KEY"'",
"query_text": "Inflation expectations 2024",
"economy": ["UK"],
"max_results": 1,
"score": 0.75,
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}'
# Output:
[ {
"source": "Bank of England",
"score": 0.8074045181274414
"published": "2024-08-01T00:00:00",
"section_title": "1: The economic outlook",
"subsection_title": "1.2: Key judgement 3",
"type": "table",
"chunk": "Table 1.C: The quarterly modal projection for CPI inflation based on market rate expectations",
"data":
",2024 Q3,2024 Q4,2025 Q1,2025 Q2,2025 Q3
CPI inflation,2.3,2.7,2.7,2.6,2.4
,2025 Q4,2026 Q1,2026 Q2,2026 Q3,
CPI inflation,2.2,2.0,1.7,1.7,
,2026 Q4,2027 Q1,2027 Q2,2027 Q3,
CPI inflation,1.6,1.5,1.5,1.5,",
"footnotes": "(a) Four-quarter inflation rate.",
} ]
import requests
from config import API_KEY
url = "https://data.lambda-capture.com/semantic-search/"
params = {
"api_key": API_KEY,
"query_text": "Latest FX exchange rates outlook",
"max_results": 2,
"type": ["text", "table"],
"score": 0.75,
"start_date": "2025-01-01",
}
response = requests.get(url, json=params)
response.json()
# Output:
[ {
"source": "European Central Bank",
"score": 0.7773966789245605
"published": "2025-02-27T00:00:00",
"section_title": "1. Review of financial, economic and monetary developments and policy options",
"subsection_title": "Financial market developments",
"type": "text",
"chunk": "The Federal Funds futures curve had continued to shift upwards, with markets currently expecting between one and two 25 basis point cuts by the end of 2025. The repricing of front-end yields since the Governing Councils December meeting had been stronger in the euro area than in the United States. This would typically also be reflected in foreign exchange markets. However, the EUR/USD exchange rate had recently decoupled from interest rates, as the euro had initially continued to depreciate despite a narrowing interest rate differential, before recovering more recently. US dollar currency pairs had been affected by the US Administrations comments, which had put upward pressure on the US dollar relative to trading partners currencies.",
} ]
curl -X POST "https://mcp.lambda-capture.com/v1/mcp/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "macroecon_semantic_search",
"arguments": {
"query_text": "biggest economic surprise",
"max_results": 3,
}
}
}'
# Output:
[ {
"source": "European Central Bank",
"score": 0.7623850107192993
"published": "2025-04-03T00:00:00",
"section_title": "1. Review of financial, economic and monetary developments and policy options",
"subsection_title": "Financial market developments",
"type": "text",
"chunk": "Risk sentiment in the euro area remained strong and close to all-time highs, outpacing the United States, which had declined significantly since the Governing Councils January monetary policy meeting. This mirrored the divergence of macroeconomic developments. The Citigroup Economic Surprise Index for the euro area had turned positive in February 2025, reaching its highest level since April 2024. This was in contrast to developments in the United States, where economic surprises had been negative recently.",
} ]
from openai import OpenAI
client = OpenAI()
resp = client.responses.create(
model="gpt-4.1",
input="Create a table of latest outlook on US yields",
tools=[{
"type": "mcp",
"server_label": "lambda-capture",
"server_url": "https://mcp.lambda-capture.com/v1/mcp/",
"headers": {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
}]
)
print(resp.output_text)
# Output:
Here is a representative table synthesizing the current outlook based on market consensus and FOMC projections:
- Yields remain elevated as inflation moderates but remains above target, keeping rates restrictive.
- The FOMC maintains cautious forward guidance, with some expectation of gradual rate cuts later in 2025 if inflation falls sufficiently.
- The table above is based on recent statements, economic projections, and market yield curves as of 2025 Q2.