Skip to main content
Glama

get_guardian_alerts

Retrieve pending alerts from active Guardians to identify hallucinations, dead code, and API mismatches before runtime. Returns a compact summary with a path to the full alert file.

Instructions

Get pending alerts from all active Guardians. Returns a compact summary with a pointer to the full LLM-readable alerts file (codeguardian-alerts.json) in the project root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryOnlyNoIf true, returns only a compact summary with file path to full alerts. Useful to avoid LLM context overflow. Default: false.
clearAfterReadNoDeprecated: Alerts are now persistent until issues are resolved. This flag is ignored.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.8

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It does disclose that the tool returns a compact summary and points to a full alerts file, but it does not explicitly state read-only semantics, whether alerts are persistent, or how the default output differs from summaryOnly=true.

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

Conciseness5/5

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

The description is two concise sentences with the key action front-loaded and no filler. The file name pointer is relevant and earns its place.

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

Completeness3/5

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

The description is adequate for a simple retrieval tool, but there is a slight ambiguity: the schema implies summaryOnly=false returns more than the compact summary, while the description presents the compact summary as the normal result. It also does not address behavior when no Guardians are active or what the exact response structure looks like.

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

Parameters3/5

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

Schema description coverage is 100%, and both parameters are already well documented in the schema. The description adds no extra parameter-level meaning, so it does not rise above the baseline for full schema coverage.

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 states a specific verb and resource: 'Get pending alerts from all active Guardians,' and clearly says what is returned (a compact summary plus a pointer to codeguardian-alerts.json). This distinguishes it from sibling tools like get_guardian_status or get_validation_results.

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

Usage Guidelines3/5

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

Usage is implied by the tool's purpose—use it when you need pending alerts from active Guardians. However, the description provides no explicit when-to-use guidance, exclusions, or mentions of alternatives among the sibling tools.

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

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/codegoddy/codeguardian_mcp'

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