Skip to main content
Glama
oranger07
by oranger07

search_law_name_vector

Search for audit regulations by name, returning exact matches from MySQL and supplementing with vector similarity matches from Milvus.

Instructions

按法规名称检索(MySQL 精确优先 + Milvus 向量兜底)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_kNo
law_nameYes
region_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Despite no annotations, the description reveals the core behavioral trait: the two-stage search strategy (exact then vector). This adds valuable insight beyond the input schema, though it omits details like error handling or rate limits.

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?

The description is extremely concise, front-loading the purpose in a single sentence. However, the brevity sacrifices parameter documentation, which could be added without losing conciseness.

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

Completeness2/5

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

Given the tool has three parameters (one required) and an output schema, the description does not explain the role of 'top_k' (ranking or limit) or 'region_type' (jurisdiction filter), nor how the output relates to the search strategy. This is insufficient for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate by explaining parameters, but it only implicitly references law_name. The 'top_k' and 'region_type' parameters are entirely undocumented in the description, leaving their semantics unclear.

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 clearly states the tool's action (search by regulation name) and uniquely specifies the search strategy (MySQL exact match first, Milvus vector fallback). This differentiates it from sibling tools like law_lookup which likely use different methods.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, such as when exact matching is insufficient or when vector search is preferred. The description does not mention prerequisites or typical use cases.

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/oranger07/mcp_law_server'

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