Skip to main content
Glama

Search SHAB gazette publications by date, mutation type, canton or company

search_publications
Read-onlyIdempotent

Search SHAB gazette publications by date (published or journal), mutation type (see list_mutation_types), sub-rubric, canton, the named company's legal form, and/or a list of company UIDs. Unknown closed-set values are rejected, so an empty page is a real zero. Newest first; the order is fixed. Rows say what happened, to whom and when, without the gazette text — read that via get_publications. title is the entry's own headline, and subRubric separates entries from changes and deletions, which is what is left when mutationTypes is UNRESOLVED. Every other company attribute is a question for search_companies. No free-text search over publication bodies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_publications"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoPage size, max 100 (default 20)
cursorNonextCursor from the previous page; omit to start at the beginning. Opaque — pass it back verbatim, and keep the same filters or it is rejected.
cantonsNoTwo-letter canton codes, e.g. ["ZH","BE"]; anything else is rejected
journalToNoEntered in the journal on/before this ISO date (YYYY-MM-DD)
legalFormsNoLegal forms of the company named, by abbreviation or full name in any official language, e.g. ["AG","GmbH"] or ["SA","Sàrl"]; an unknown one is rejected. Catalog: vetari://allowed-values/legalForm
subRubricsNoSub-rubrics of the commercial-register rubric: HR01 new entries, HR02 changes, HR03 deletions
companyUidsNoRestrict to these companies by UID, formatted or plain; at most 25
journalFromNoEntered in the journal on/after this ISO date (YYYY-MM-DD) — the register's own date, days before publication
publishedToNoPublished on/before this ISO date (YYYY-MM-DD)
mutationTypesNoMutation types matched with OR semantics, e.g. ["NEW_REGISTRATION","DISSOLUTION_BANKRUPTCY"]; valid values via list_mutation_types
publishedFromNoPublished on/after this ISO date (YYYY-MM-DD)

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYes
disclaimerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / page / properties / totalCapped
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / data / properties / page / required
      Previous value: -[
      -  "size",
      -  "totalElements"
      -]New value: +[
      +  "size"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: unknown closed-set values are rejected so an empty result is a genuine zero, and ordering is fixed newest-first. It does not discuss result volume or paging strategy, but the cursor contract is documented in the schema.

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?

Information-dense and front-loaded: filters first, then result semantics, then alternatives and the exclusion. Almost every clause earns its place, though the note that 'title is the entry's own headline' duplicates what the output schema already provides, and the packed sentence structure borders on telegraphic.

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?

With an output schema present and annotations covering the safety profile, the description fills the remaining gaps an agent needs: supported filter axes, rejection of invalid closed-set values, deterministic ordering, what rows contain versus what requires get_publications, and where to go for other company attributes. Nothing essential to correct invocation is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: subRubric explains how entries, changes and deletions are separated (including what remains when mutationTypes is UNRESOLVED), and the published-vs-journal distinction is characterized as the register's own date versus publication. That is genuine semantic value on top of well-described parameters.

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 opens with a specific verb and resource ('Search SHAB gazette publications') and enumerates the exact filter dimensions: date (published or journal), mutation type, sub-rubric, canton, legal form, and company UIDs. It also fences off what the tool is not ('No free-text search over publication bodies'), so an agent can distinguish it from get_publications and search_companies immediately.

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

Usage Guidelines5/5

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

It explicitly routes the agent to alternatives: mutation type values come from list_mutation_types, gazette text comes from get_publications, and 'Every other company attribute is a question for search_companies.' It also states a negative boundary — no free-text search over bodies — which prevents a common misuse.

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