Skip to main content
Glama

get_weekly_reports

Retrieve weekly market analysis reports from the Spanish stock exchange, including market overviews, sector breakdowns, and governance insights.

Instructions

Get generated weekly reports and analysis

Input Schema

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

Implementation Reference

  • Core handler function that executes the tool logic by fetching 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 || []; }
  • src/index.ts:316-334 (registration)
    Tool registration in ListToolsRequestHandler defining the tool name, description, and input schema.
    { 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, }, }, }, },
  • MCP CallToolRequestHandler switch case that invokes the database handler with parsed arguments.
    case 'get_weekly_reports': result = await this.db.getWeeklyReports((args as any)?.reportType, (args as any)?.limit || 10); break;
  • Input schema definition for tool parameters (reportType and limit).
    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, }, },

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