Skip to main content
Glama
chinese-law-mcp

chinese-law-mcp

search_in_law

Search within a Chinese law by keywords to find matching articles, returning article numbers, excerpts, and citable links for legal research or compliance checks.

Instructions

在某部法律的全部条文里按关键词检索,返回命中条文的条号、摘录与链接。

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": {
      "law": "<law>",
      "keywords": "<keywords>"
    },
    "name": "search_in_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawYes法律名称或 id
keywordsYes检索关键词,空格分隔多个

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the return shape (条号、摘录与链接), which is real added context, but says nothing about result limits, pagination, ranking, or behavior when a keyword misses all articles.

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?

A single sentence with zero waste: scope first, then return values. Nothing is repeated from the schema and nothing could be cut without losing information.

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?

With only two fully documented parameters, no nested objects, and no output schema, the description covers the essentials, including return fields that the schema does not describe. It stops short of completeness by omitting any note on result limits or empty-result behavior.

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 both 'law' and 'keywords' are already documented in the schema, including the space-separated multi-keyword convention. The description adds no format or syntax detail beyond what the schema provides, so the baseline 3 applies.

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?

The description gives a specific verb and scope: keyword search across ALL articles of ONE law ('在某部法律的全部条文里按关键词检索'), plus what it returns (article number, excerpt, link). The singular-law scope implicitly contrasts with the sibling search_laws, but no sibling is named explicitly, so it falls short of a 5.

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?

There is no when-to-use guidance, no exclusions, and no reference to the alternatives search_laws (cross-law search) or get_article (single-article retrieval). The agent must infer from the scope wording alone that this is the single-law case.

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

This server cannot be deployed

Other Tools