Skip to main content
Glama

Perfmon alerts

perfmon_alert
Read-only

Get the currently triggered perfmon alerts (both threshold and fluctuation) for one or more accounts as JSONL. Perfmon keeps no history, so this is the current state. A THRESHOLD alert means a monitored metric crossed a configured limit; a FLUCTUATION alert means it moved too far vs the previous period. Each line carries: Metric + ApiType, MetricType (Threshold/Fluctuation), AlertLevel (AboveThreshold/BelowThreshold for threshold, Increase/Decrease for fluctuation), CurrentValue, PreviousValue (fluctuation only), DefinitionLimit (threshold: the raw limit on the metric's scale; fluctuation: the allowed swing as a fraction where 1 = 100%), ChangeValue, PercentageChange (a fraction where 1 = 100%, e.g. 6.95 = 695%; vs the limit for threshold, vs the previous value for fluctuation), Priority + PriorityNum, TimeRangeDays, and the target AccountIds/CampaignIds. Defaults to High + Critical only (pass minPriority to widen); pass metricType to return only one kind. Each alert's PerfmonId + PerfmonDefinitionMetricId identify the underlying per-campaign metric rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdsNoOptional TrueClicks account ids to filter (the numeric Id field from the account listing, not the platform customer id). Omit or leave empty to return all accounts accessible by the connector.
metricTypeNoOptional. Return only this kind of alert (1=Fluctuation, 2=Threshold). Omit to return both.
campaignIdsNoOptional. Use this ONLY to focus on / analyze specific campaign(s). Pass the campaign id(s) you care about and only alerts scoped to those campaigns are returned (a single-campaign alert on any of them, or a campaign-group alert whose campaigns are all within your set). Account-level alerts and alerts touching other campaigns are excluded. Omit to get all alerts for the account(s).
minPriorityNoMinimum priority to include. Priority scale: 1=Insight, 2=Low, 3=Medium, 4=High, 5=Critical. Defaults to 4 (High) so only High + Critical are returned; pass 1 (Insight) to return all priorities.High

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds material behavioral context: perfmon stores no history so the result is current state, the meaning of threshold vs fluctuation alerts, and the exact field semantics in each output line. This goes well beyond the structured metadata.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but purposeful; the first sentence states the core behavior, and later sentences define alert types, output line fields, and parameter defaults. It is longer than average, but the length is justified because there is no output schema to document the return shape.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only alert-listing tool with no output schema and no required parameters, the description documents the output format (JSONL), field meanings, the two alert categories, entity scoping, and the priority filter. An agent has enough information to invoke it correctly and interpret the response without supplemental documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of the four parameters, and the description adds value by explaining defaults ('Defaults to High + Critical only'), the threshold/fluctuation subtype semantics, and the campaignIds scoping rule. It also clarifies that PerfmonId and PerfmonDefinitionMetricId identify the underlying per-campaign metric rows.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Get the currently triggered perfmon alerts (both threshold and fluctuation) for one or more accounts as JSONL.' It names both alert subtypes, so an agent can immediately tell exactly what is returned and can distinguish it from sibling tools such as perfmon_alert_output_table or target_pacing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage direction: defaults to High + Critical unless minPriority is widened, metricType narrows to one kind, and campaignIds is positioned as 'Use this ONLY to focus on / analyze specific campaign(s)'. It does not name an alternative sibling, but the 'currently triggered ... no history' wording makes the use case clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources