Skip to main content
Glama

FalaAI API (MCP)

risk_audit

Runs a compliance risk audit on a diarized call transcript, detecting violations and positives, applying the ISO 31000 risk matrix, classifying the conversation into a level and returning the verdict with the applied actions and the NIST/OWASP risk framework enquadramento; use it for compliance and quality audits of company-agent-to-client calls, not for generic conversation summarization. Required fields: dialog (diarized transcript in the format 'Speaker 1: [00:00:00.540 - 00:00:01.139] text', speaker labels accepted in any case as Speaker, Interlocutor, Hablante, Locutor or Orador plus number; plain text is not accepted; max 300,000 characters), duration_seconds (total audio duration in seconds, must be >= the last turn end time) and language plus response_language (only pt-BR, en-US or es-ES). Optional: model (always 'falaai-risk-audit-1'), audio_events (up to 500, each requiring event and start_s), participants (up to 10 with interlocutor and role agent/client/bot, ground truth when provided, else inferred), call_direction (inbound/outbound, inferred when omitted), response_format (only 'v2'), client_reference_id (echoed verbatim, charset [A-Za-z0-9 _/:.-], max 60). Returns response (V2) with meta+usage, participants, verdict with level and applied actions, scores, detections (violations, positives, client alerts), analysis frameworks, timeline, categories_summary, executive summary, scoring explanation and an HTML report (gzip+base64). This call consumes credits and the amount actually charged is returned in response.meta.usage.credits_consumed. Stateless: neither the transcript nor the analysis is persisted (only billing and usage metadata is logged), protecting personal data under LGPD. IMPORTANT: this call charges credits and the result is NOT stored — you MUST read the FULL response and relay ALL of its information to the user (every field, including verdict, scores, detections, timeline and html_report; no omissions, no shortening), and persist it if the user may need it later; calling again charges again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dialogYes
languageYes
audio_eventsNo
participantsNo
call_directionNo
response_formatNov2
duration_secondsYes
response_languageNo
client_reference_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: it discloses that the call consumes credits, that the exact charge is returned in response.meta.usage.credits_consumed, that the operation is stateless with only billing/usage metadata logged, and explicitly warns that nothing is persisted so the caller must relay and save the full response. This is exactly the kind of cost/side-effect/retention context an agent needs before invoking.

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?

Content is dense and front-loaded with purpose before parameter detail, and almost every clause delivers a constraint. It loses a point for redundancy: the credit-charging and non-persistence facts are stated twice (mid-paragraph and again in the closing IMPORTANT sentence), and the single unbroken paragraph makes scanning harder than it needs to be.

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?

Despite no output schema, the description fully enumerates the V2 return shape (meta+usage, participants, verdict, scores, detections, frameworks, timeline, categories_summary, executive summary, scoring explanation, gzip+base64 HTML report) and adds the operational caveat that the response is not stored. Nothing essential for correct invocation or result handling is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and does so extensively: dialog format string with speaker-label variants and 300k char cap, duration_seconds consistency constraint (>= last turn end), the pt-BR/en-US/es-ES enum for language and response_language, audio_events limit of 500, participants limit of 10 with role values, call_direction values, response_format 'v2', and client_reference_id charset and max length.

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?

States a precise verb+resource ('Runs a compliance risk audit on a diarized call transcript') and enumerates the specific processing steps (violation/positive detection, ISO 31000 matrix, risk-level classification, NIST/OWASP framework mapping). It explicitly separates itself from the sibling space by ruling out generic summarization, so an agent can distinguish it from transcribe_audio or diagnostic without opening a schema.

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?

Gives a clear when-to-use ('compliance and quality audits of company-agent-to-client calls') and a when-not ('not for generic conversation summarization'). It stops short of naming the sibling tools (e.g., transcribe_audio for raw transcription) that an agent should route to instead, so the alternative mapping is left implicit rather than explicit.

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