Skip to main content
Glama

律师教你怎么做 · 法律实务

get_law_article

读某一部法规「第几条」的原文,并给出前后条各一句提示。★用户给了条号时用,例如「民法典第 584 条」「劳动合同法第 38 条」。只回目标条,不整部下发。★引用法条必须以本工具返回的原文为准,不得凭记忆编造条号或条文。★slug 只能取自 search_law 的返回原值。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo条号,阿拉伯数字或中文均可(「584」或「第五百八十四条」)。用户没给条号就不要填,本工具会返回章节结构引导用户补。
lawNo法规名称(如「中华人民共和国民法典」)。没有 slug 时用这个,本工具会自己检索。
slugNo法规唯一标识,取自 search_law 的 items[].slug 原值。有 slug 就不要填 law。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the return scope (target article only, plus one-sentence neighbor hints), and imposes a citation-integrity rule ('引用法条必须以本工具返回的原文为准,不得凭记忆编造条号或条文'). It still omits the response shape/pagination, so it is not fully exhaustive.

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?

Three front-loaded sentences plus ★-marked rules; each clause earns its place (trigger, scope limit, anti-hallucination, slug sourcing). Slightly dense but no filler.

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 3-param, no-annotation, no-output-schema tool, it covers the essentials: what is returned (article text + neighbor hints), when to call it, how to source the identifier, and the citation rule. Only the exact output formatting is left unspecified.

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 baseline is 3, but the description adds genuine cross-field meaning: slug must be the verbatim value from search_law's items[].slug, and slug takes precedence over law. This is dependency information the schema alone does not convey.

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?

States a specific verb+resource: read the original text of a named law's specific article, plus a preceding/following article hint. It also declares the aggregating scope explicitly ('只回目标条,不整部下发'), which separates it from search_law/search_articles without needing the schema.

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?

Gives a concrete trigger with examples ('用户给了条号时用,例如「民法典第 584 条」') and names search_law as the source of slug, implying the upstream step. It stops short of an explicit 'if the user gave no article number, use search_law instead' exclusion in the description (that lives only in the schema).

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