Skip to main content
Glama

get_weekly_reports

Generate weekly market analysis reports for the Spanish stock exchange, including market overviews, sector analysis, and governance highlights.

Instructions

Get generated weekly reports and analysis

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of reports
reportTypeNoType of report to filter by

Implementation Reference

  • src/index.ts:316-334 (registration)
    Registration of the 'get_weekly_reports' tool including its name, description, and input schema definition.
    { name: 'get_weekly_reports', description: 'Get generated weekly reports and analysis', inputSchema: { type: 'object', properties: { reportType: { type: 'string', enum: ['market_overview', 'sector_analysis', 'governance_highlights', 'full_report'], description: 'Type of report to filter by', }, limit: { type: 'number', description: 'Maximum number of reports', default: 10, }, }, }, },
  • Input schema for the 'get_weekly_reports' tool defining parameters reportType and limit.
    inputSchema: { type: 'object', properties: { reportType: { type: 'string', enum: ['market_overview', 'sector_analysis', 'governance_highlights', 'full_report'], description: 'Type of report to filter by', }, limit: { type: 'number', description: 'Maximum number of reports', default: 10, }, }, },
  • Handler case in the tool request switch statement that executes the get_weekly_reports tool by calling the database method.
    case 'get_weekly_reports': result = await this.db.getWeeklyReports((args as any)?.reportType, (args as any)?.limit || 10); break;
  • Core implementation of getWeeklyReports in DatabaseManager that fetches weekly reports from the API endpoint '/api/reports'.
    async getWeeklyReports(reportType?: string, limit: number = 10): Promise<any[]> { const data = await this.fetchAPI('/api/reports', { type: reportType, limit: limit }); return data.reports || []; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anbrme/ibex35-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server