Skip to main content
Glama

Idn Regulation Detail

idn_regulation_detail
Read-onlyIdempotent

Full register record for one Indonesian law or regulation by type, number and year: title, legal status, state gazette (Lembaran Negara / Tambahan) numbers, dates, the signed PDF, and its relations, which instruments amend or revoke it, which it amends or revokes, related implementing regulations and any judicial-review entry, from the State Secretariat JDIH (jdih.setneg.go.id). Use for "details of UU 6/2023", "what amended PP 5/2021", "get the PDF of Perpres 40/2026".

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "UU",
      "year": "2020",
      "number": "11"
    },
    "name": "idn_regulation_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesInstrument type: UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG or KEPMENSESNEG.
yearYesFour-digit year, e.g. "2020".
numberYesInstrument number, e.g. "11".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the description's job is to add context beyond that. It does: it names the upstream source (State Secretariat JDIH, jdih.setneg.go.id) and discloses the breadth of the returned record including cross-instrument relations and judicial-review entries, which tells the agent to expect a large payload. It does not mention failure behavior (e.g., no record for a given type/number/year) 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?

Purpose and scope are front-loaded in the first clause, and the trailing example queries are short and immediately useful. The main body is one very long enumerative sentence, which is dense but every listed field earns its place by defining what 'full register record' means. Minor readability cost from cramming the field list into a single sentence.

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, so the description must describe return values — and it does so thoroughly, listing identity fields, gazette numbers, dates, PDF, and both directions of amendment/revocation relations plus judicial review. Combined with annotations covering the safety profile, an agent has everything needed to call this correctly and interpret the result.

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%, with each of type, number, and year individually documented including the allowed instrument-type values, so the schema carries the parameter burden. The description only restates the composite key ('by type, number and year') and adds no format or edge-case detail (e.g., zero-padding, historical year ranges) beyond the schema. Baseline 3 is appropriate.

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+resource: 'Full register record for one Indonesian law or regulation by type, number and year,' and then enumerates exactly what the record contains (title, legal status, gazette numbers, dates, PDF, amendment/revocation relations, judicial review). That field-level enumeration makes it clearly distinct from siblings like idn_regulation_article_text (article text) or idn_search_regulations (search), so an agent can route correctly without opening a 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?

Three concrete example queries ('details of UU 6/2023', 'what amended PP 5/2021', 'get the PDF of Perpres 40/2026') give clear when-to-use context, including the amendment-relation use case. It stops short of explicit exclusions or naming alternatives such as the article-text or search tools, so it falls short of a 5.

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.