Skip to main content
Glama

OpenAny

Regulation Keyword Search API

yuandian_post_open_rh_fg_search

Searches for a list of regulations. The request body must not be empty, but keyword may be omitted. Without keywords, results are primarily selected using filters such as regulation name, validity status, region, legal authority, publication date, and effective date. An item includes content only when keywords are supplied and a highlighted match is found; content is a snippet, not the full regulation text. Use the regulation detail API for the full text. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.

Input Schema

NameRequiredDescriptionDefault
dyNoRegion filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆
sxxNoValidity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效
fbbmNoIssuing department filter; split on spaces and match any substring
fgmcNoRegulation name filter; split on spaces and require every term to match the regulation title
top_kNoMaximum number of results; default 10, maximum 50
xljb_1NoLegal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;
keywordNoKeywords in regulation text; split on spaces and join with AND/OR according to `search_mode` to form a queryString
fbrq_endNoPublication date range end (inclusive), in yyyy-MM-dd format
ssrq_endNoEffective date range end (inclusive), in yyyy-MM-dd format
fbrq_startNoPublication date range start (inclusive), in yyyy-MM-dd format
ssrq_startNoEffective date range start (inclusive), in yyyy-MM-dd format
search_modeNoKeyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full load, and it does disclose meaningful behavior: content is returned only when keywords are supplied and a match is found, content is a snippet not full text, and the call is billed/authorized via the caller's OpenAny gateway credentials. It does not describe pagination or result ordering, keeping it just below top marks.

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?

Front-loads the core purpose and then layers the empty-body rule, the keyword/content behavior, the snippet caveat, and the billing note. Every sentence adds information, though the credential/billing paragraph is slightly tangential to the tool's function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter search tool with no annotations and no output schema, the description covers return semantics (snippet vs full text), the required-non-empty body, and billing context. Missing only result ordering/pagination and sibling differentiation, which keeps it from a 5.

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 would be 3, but the description adds genuine cross-parameter meaning beyond the schema: that omitting keyword switches to filter-driven selection (region, validity, authority, dates, etc.) and that keyword presence controls whether content snippets appear. This clarifies how the parameters interact rather than just restating them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Searches for a list of regulations') and names the detail API as the sibling it is not. It does not, however, distinguish itself from the closely related yuandian_post_open_rh_fg_zq_search sibling, leaving some ambiguity about which regulation search to pick.

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?

Explicitly notes the request body must not be empty and that keyword is optional, explaining the two usage modes (keyword search vs filter-only browsing). It also routes to the regulation detail API for full text. The only gap is no guidance on when to prefer this over the sibling search tool.

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.