Skip to main content
Glama
malkreide

swiss-statistics-mcp

by malkreide

bfs_search_tables

Read-only

Search Swiss Federal Statistical Office table titles by keyword to locate relevant tables. Returns table IDs for metadata and data retrieval.

Instructions

Search for BFS statistical tables by keyword in their titles.

Performs a full-text search across all 682+ BFS table titles. Results include table IDs needed for bfs_get_table_metadata and bfs_get_data.

Note: First call builds a catalog (~682 API requests). Subsequent calls within 1 hour use the cached catalog and are instant.

Args: params (SearchTablesInput): - query (str): Search keywords, e.g. 'Lehrkräfte', 'Schüler Kanton' - theme_code (Optional[str]): Filter by theme, e.g. '15' - lang (str): Language for table titles - limit (int): Max results (default 10)

Returns: SearchTablesResult with matching tables. On error, error and hint are set and results is None.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
hintNo
queryNo
total_matchesNo
resultsNo
next_stepNo
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds valuable context: first call makes ~682 API requests, subsequent calls within 1 hour are instant, and error handling behavior (error and hint fields). Does not mention potential rate limits or result size.

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?

Well-structured with clear sections: purpose, details, caching note, parameter listing, and return info. Every sentence is informative. Front-loaded with purpose.

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?

Complete for a search tool with an output schema. Covers purpose, parameters, caching, and error handling. Mentions that results include table IDs for other tools, which aids in task chaining.

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?

Description provides explicit parameter explanations, including examples for query (e.g., 'Lehrkräfte'), description of theme_code filter, lang, and limit. This adds significant value beyond the schema's descriptions, even though schema has descriptions. The examples help understand usage.

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?

Clearly states it searches BFS statistical tables by keyword in titles, distinguishing from sibling tools like bfs_list_tables_by_theme. Mentions relevance to downstream tools (bfs_get_table_metadata, bfs_get_data).

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?

Explains that it performs full-text search across all tables and describes caching behavior (first call slow, subsequent instant). Implicitly guides when to use for keyword-based search, but doesn't explicitly contrast with other search tools or mention exclusions.

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/malkreide/swiss-statistics-mcp'

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