Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QWEN_MODELNoModel name to use with the LLM.local-model
DUCKDB_PATHNoPath to the local DuckDB database file../data/anvisa.duckdb
QWEN_ENDPOINTNoEndpoint for the OpenAI-compatible LLM API (llama.cpp, Ollama, LM Studio).http://127.0.0.1:8080/v1
SYNC_HORA_LOCALNoScheduled local time for the sync.03:20
QWEN_TIMEOUT_SEGUNDOSNoTimeout in seconds for LLM calls.120

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
consultar_status_medicamentoA

Consulta o status do registro de um medicamento na Anvisa.

Busca por nome comercial ou princípio ativo e devolve todos os registros que casam, com situação (válido, caducado, em análise), número de registro, data e empresa detentora. Quando a base local ainda não foi sincronizada, devolve dados de exemplo com fonte='mock' — nesse caso, não trate como informação regulatória.

Args: nome_ou_principio_ativo: nome comercial ou princípio ativo, ex.: "dipirona".

buscar_samd_recentesA

Lista dispositivos médicos Classe III/IV registrados recentemente na Anvisa.

Para cada registro, classifica se o produto usa IA ou aprendizado de máquina. A Anvisa não publica esse campo: a classificação é heurística, feita por um LLM local lendo o texto do registro, e cada item traz confiança e justificativa. Não apresente o veredito como fato regulatório.

Args: dias: tamanho da janela, em dias, a contar de hoje. apenas_com_ia: quando True, devolve só os classificados como usando IA. apenas_software: quando True, analisa só registros cujo texto sugere software. SaMD é raro no registro (13 de 1.832 registros Classe III/IV do último ano mencionam software), então sem esse filtro a busca gasta as chamadas de LLM em cânulas e parafusos. Desligue para varrer tudo, ao custo de ser lento.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 2 tools

Disambiguation5/5

The two tools operate in completely separate domains: one retrieves recent Class III/IV medical devices with AI classification, the other queries drug registration status. There is no overlap or ambiguity between them.

Naming Consistency5/5

Both tool names follow the same verb_noun pattern in Portuguese: buscar_samd_recentes and consultar_status_medicamento. The naming is clean, descriptive, and consistent.

Tool Count3/5

With only two tools, the server feels thin for the broad regulatory scope of Anvisa. The count is borderline acceptable because each tool covers a distinct product category, but it leaves many common regulatory queries unaddressed.

Completeness2/5

The device tool only covers recent SaMD registrations with a heuristic AI filter, and the drug tool only checks registration status. There are significant gaps such as searching devices by name/number, retrieving full regulatory details, or covering other Anvisa-regulated product types.

Maintenance

ActivityMaintained
ResponsivenessNo issues