Skip to main content
Glama

querido_diario

Search Brazilian municipal official gazettes for company or person mentions, contracts, sanctions, and permits, with date and territory filters.

Instructions

Search Brazilian municipal official gazettes (Diários Oficiais). Provided by Open Knowledge Brasil. Coverage depends on the municipality. No API key required. OSINT value: Find company mentions in government publications, contracts, sanctions, permits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "querido_diario"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (0-indexed, default: 0)
sizeNoResults per page (default: 10, max: 100)
queryYesSearch text (company name, CNPJ, person, keyword); use an empty string for recent editions
sinceNoStart date (YYYY-MM-DD, optional)
untilNoEnd date (YYYY-MM-DD, optional)
territory_idNoIBGE territory code (e.g. '3550308' for São Paulo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses provenance (Open Knowledge Brasil), that coverage varies by municipality, and that no API key is required, addressing auth and availability questions. It is silent on result format, rate limits, and whether a search can return full text or only references, which matters for an agent planning to cite or extract evidence.

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?

Four short sentences, front-loaded with the purpose, then provenance, then a coverage caveat, then the OSINT angle. Nothing is redundant, though the OSINT line is somewhat marketing-flavored and could be folded into a single usage sentence.

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?

For a six-parameter search tool with a 100% covered schema and no output schema, the definition covers what it searches and one important constraint (municipal coverage). It leaves an agent unable to predict what a hit looks like (snippet, link, PDF reference) or how to behave when a municipality is not indexed, so it is adequate rather than complete.

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%, so every parameter including query, date bounds, pagination, and the IBGE territory code is already documented in the schema. The description adds no syntax or interpretation guidance beyond that, so the baseline of 3 applies.

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?

A specific verb plus a specific resource: 'Search Brazilian municipal official gazettes (Diários Oficiais)'. The OSINT sentence further pins down what the resource is useful for, so an agent can distinguish it from cnpj_lookup or pncp_licitacoes without opening any schema.

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?

The 'OSINT value' line gives a concrete use case (company mentions in government publications, contracts, sanctions, permits), which implies when to reach for this tool. However, there is no explicit exclusion or named alternative, and the 'coverage depends on the municipality' caveat is stated without saying what an agent should do when a municipality is uncovered.

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