Skip to main content
Glama

Logfire MCP Server

Official
by pydantic

arbitrary_query

Execute custom SQL queries on Logfire database to retrieve and analyze telemetry data, with a lookback period of up to 7 days for precise insights.

Instructions

Run an arbitrary query on the Logfire database.

The schema is available via the `get_logfire_records_schema` tool. Args: query: The query to run, as a SQL string. age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.

Input Schema

NameRequiredDescriptionDefault
ageYes
queryYes

Input Schema (JSON Schema)

{ "properties": { "age": { "title": "Age", "type": "integer" }, "query": { "title": "Query", "type": "string" } }, "required": [ "query", "age" ], "title": "arbitrary_queryArguments", "type": "object" }

You must be authenticated.

Other Tools from Logfire MCP Server

Related Tools

    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/pydantic/logfire-mcp'

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