Skip to main content
Glama

Search AI laws

search_laws
Read-onlyIdempotent

Find the AI-law rules (EU AI Act, US state AI laws, China, Korea and other markets) that apply to an AI feature in a market, each with its cited provision and official link.

When to use: someone asks which laws, regulations or standards apply to what they are building, or where a kind of AI feature is regulated (chatbot disclosure, hiring and employment decisions, credit or insurance decisions, deepfakes and digital replicas, companion chatbots and minors, AI-generated content labels, training data). The filters combine: a rule must cover one of the markets and one of the patterns given, and match the words if any are given; each filter left out matches everything. Returns at most 10 rules, most relevant first (the words matched, then the rules specific to the features, then binding law in force), each with its lane, citation, official link, applies-from date and its page in the TwinEthos explorer. It does not sort by date: use coming_into_force or recently_in_force for dates. Limits: informational data, not legal advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoWords to match in rule titles, summaries and tags, such as disclosure, hiring or deepfake. Omit it to list every rule for the markets and patterns.
limitNoHow many results to return, 1 to 10 (default 10); `total` in the answer says how many matched.
featuresNoThe AI feature's integration patterns, any of: chat, rag, agentic, decision_pipeline (a model output that decides about a person), content_generation, classification, recommendation, embeddings. Omit it for every pattern.
jurisdictionsNoMarkets to cover, as codes: EU, a country code (GB, CN, KR, JP, BR, SG) or a US state as US-XX (US-CA, US-CO, US-NY); US matches every state. Omit it for every market.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / features / description
      Added value: +"The AI feature's integration patterns, any of: chat, rag, agentic, decision_pipeline (a model output that decides about a person), content_generation, classification, recommendation, embeddings. Omit it for every pattern."
    • addedInput schema / properties / jurisdictions / description
      Added value: +"Markets to cover, as codes: EU, a country code (GB, CN, KR, JP, BR, SG) or a US state as US-XX (US-CA, US-CO, US-NY); US matches every state. Omit it for every market."
    • addedInput schema / properties / limit / description
      Added value: +"How many results to return, 1 to 10 (default 10); `total` in the answer says how many matched."
    • addedInput schema / properties / text / description
      Added value: +"Words to match in rule titles, summaries and tags, such as disclosure, hiring or deepfake. Omit it to list every rule for the markets and patterns."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety is covered; the description goes well beyond by disclosing the 10-rule cap, the ranking rationale (matched words, then feature-specific rules, then binding law in force), and the exact result payload (lane, citation, official link, applies-from date, explorer page). It also sets the expectation that this is informational data and not legal advice.

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?

Purpose, usage trigger, filter semantics, ranking and limits arrive in that order with no filler. The enumeration of result fields is slightly dense but earns its place because there is no output schema; a small trim would make it ideal.

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?

There is no output schema, and the description compensates by naming every returned field and the sort order, alongside the result cap and the filter-combination rules. For a read-only search tool with fully documented parameters, nothing an agent needs in order to call or interpret it is missing.

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 is 3, but the description adds cross-parameter semantics the schema does not capture: markets and patterns are conjunctive filters, the text words are optional, and any omitted filter matches everything. That combination logic materially changes how an agent should fill the arguments.

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 opens with a specific verb and resource ("Find the AI-law rules") plus the markets it covers (EU AI Act, US state laws, China, Korea) and states that each result carries a cited provision and official link. It is instantly distinguishable from the date-oriented siblings by the explicit note that it does not sort by date.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use trigger ("someone asks which laws, regulations or standards apply to what they are building") and enumerates concrete feature scenarios such as chatbot disclosure, hiring decisions, deepfakes and training data. It also routes date questions away to the named siblings coming_into_force and recently_in_force, so the agent knows when-not to call this 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.

Resources