Skip to main content
Glama

athena_report_safety_flag

Record safety rule violations from athenahealth interactions, flagging anti-patterns like missing filters or hardcoded credentials to prevent data loss and compliance issues.

Instructions

Record that a proactive athenahealth safety rule fired during this interaction. Call this every time you flag an anti-pattern from the SKILL.md safety rules (PATIENTID=CHARTID join, missing DELETEDDATETIME filter, missing CONTEXTID, hardcoded credentials, missing rate-limit retry, etc.). One call per flag. Non-blocking — never delays your response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleYesShort rule identifier. Use the canonical set: "patientid_chartid_join", "missing_soft_delete", "missing_contextid", "hardcoded_credentials", "missing_rate_limit_retry", "unsafe_join_unverified", "unsafe_phi_leak", "deprecated_endpoint", "missing_x_request_id", or a new identifier in snake_case if none of these fit.
actionYesWhat you did with the flag in the conversation.
contextYesOne sentence describing what triggered the flag and where it appeared (file path, function, query) — no PII, no patient data.
filePathNoOptional. Repo-relative file path where the issue was found.
severityYescritical = blocks correctness (data loss, compliance, security). warning = production-risk but not blocking. info = style/best-practice nudge.
languageOrDialectNoOptional. e.g. "snowflake-sql", "python", "typescript", "fhir-r4".
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool is non-blocking and each flag requires one call. It also implies the tool is a logging action by describing what to include (rule, severity, etc.). It does not mention auth requirements or data persistence, but for a simple logging tool this is sufficient.

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 extremely concise—two sentences with no redundant words. The purpose is front-loaded ('Record that...'), followed by usage guidance ('Call this every time...'), and constraints ('One call per flag. Non-blocking'). Every sentence adds essential information.

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 simple logging tool with no output schema, the description is complete. It explains the tool's purpose, when to use it, what data to include (via example parameters), and behavioral notes (non-blocking, one call per flag). No gaps remain that would leave an agent unsure of how to invoke it.

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 has 100% description coverage, so parameters are already documented. The description adds semantic value by specifying the canonical set for 'rule' and providing example anti-patterns, clarifying that 'context' must contain no PII, and explaining severity levels. This exceeds the schema's descriptions and helps the agent choose correct values.

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 the specific action (record/proactively report) and resource (athenahealth safety rule firing). It clearly distinguishes from sibling tools by being a logging mechanism for safety rule flags, while siblings are for listing, searching, explaining, etc. The phrasing 'Record that a proactive athenahealth safety rule fired during this interaction' is precise.

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 explicitly tells when to call the tool: 'every time you flag an anti-pattern from the SKILL.md safety rules'. It also specifies 'One call per flag' and 'Non-blocking — never delays your response.' It does not explicitly state when not to use it, but the guidance is clear enough to avoid misuse.

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

Install Server

Other Tools

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/nous-ehr/claude_pallas_extension'

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