Skip to main content
Glama

get_deka

Read-onlyIdempotent

ดึงคำพิพากษาศาลฎีกาฉบับเต็มหนึ่งฉบับด้วยเลขฎีกา — ใช้เมื่อรู้เลขแล้ว (จากผู้ใช้ หรือจากผล search_law/deka_by_section) และต้องอ่านข้อเท็จจริง/เหตุผล/คำพิพากษาเต็ม. ใช้ tool อื่นแทนเมื่อ: ยังไม่รู้เลข → search_law(corpus="deka") · หาฎีกาที่อ้างมาตราหนึ่ง → deka_by_section · แค่ตรวจว่าฎีกานี้มีจริง/อ้างมาตรานั้นจริง/มีข้อความที่ยกมาจริง → verify_citation (ได้สถานะชัดเจน) นับโควตา 1 ครั้งต่อการเรียก · อ่านอย่างเดียว · บริการฎีกาปิดชั่วคราวไม่หักโควตา

อ่านผล:

  • found=False = ไม่พบหรือยังเสิร์ฟไม่ได้ (เช่น เป็นบันทึกย่อ) — ใช้ verify_citation แยกสาเหตุ (เลขคดีรวมสำนวนต้องตรวจมือ) ห้ามสรุปว่าฎีกาไม่มีอยู่จริง · found=False + reason="temporarily_unavailable" = บริการปิดชั่วคราว

  • citation.verdict=None ได้ตามปกติ (คำบังคับไม่ระบุผลเทียบศาลล่าง เช่น "พิพากษาให้จำเลยชำระเงิน…") — ไม่ได้แปลว่าคดีไม่มีผล ให้อ่าน full_text · citation.appellant = ฝ่ายที่ยื่นฎีกา (None ถ้าระบุไม่ได้)

  • full_text = เนื้อความต่อเนื่องที่ประกอบจาก chunk แล้ว (บางจุดอาจเว้นวรรคหายตรงรอยต่อ) · cited = มาตราที่อ้างแบบ structured [{law, section, law_code}] (law_code มีเมื่อจับคู่ฉบับได้ ใช้ต่อ get_law_document)

  • full_text อาจมีชื่อจริงคู่ความ — ทำตาม deka_privacy_note ก่อนเผยแพร่ต่อ

Input Schema

NameRequiredDescriptionDefault
deka_noYesเลขฎีการูป "เลข/ปี พ.ศ." เช่น "1729/2569" · คดีรวมสำนวนใช้ช่วงเลข "257-258/2463" · ใช้เลขอารบิกเท่านั้น ไม่ใส่คำนำหน้า "ฎีกาที่" (เทียบตรงตัว ไม่แปลงให้)

Output Schema

NameRequiredDescriptionDefault
citedNo
foundNo
quotaNo
chunksNo
reasonNo
deka_noNo
citationNo
full_textNo
disclaimerNo
attributionNo
deka_privacy_noteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deka_no / description
      Previous value: -"เลขฎีกา เช่น \"1729/2569\" (คดีรวมสำนวนใช้รูป \"257-258/2463\")"New value: +"เลขฎีการูป \"เลข/ปี พ.ศ.\" เช่น \"1729/2569\" · คดีรวมสำนวนใช้ช่วงเลข \"257-258/2463\" · ใช้เลขอารบิกเท่านั้น ไม่ใส่คำนำหน้า \"ฎีกาที่\" (เทียบตรงตัว ไม่แปลงให้)"
  2. Changed1 schema field changed
    • addedInput schema / properties / deka_no / maxLength
      Added value: +200
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: quota cost of one call per invocation, no quota deduction during service downtime, and precise meaning of found=False plus reason="temporarily_unavailable". It also warns that case-number-combined records must be checked manually and forbids concluding a judgment does not exist from found=False.

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?

Front-loaded with purpose and routing, then cleanly separated into an "อ่านผล" (reading the result) section. It runs long, but nearly every line carries operational meaning; a small amount of overlap with the schema's format note could be trimmed.

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?

Even though an output schema exists, the description supplies the interpretation an agent actually needs: verdict=None is normal, appellant is the filing party or None, full_text is chunk-stitched with possible spacing loss at seams, and cited entries carry law_code usable with get_law_document. Privacy handling is flagged via deka_privacy_note.

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% and the schema already documents the "number/year BE" format, so heavy lifting is done structurally. The description adds provenance guidance (where the number comes from) and reinforces that the lookup is an exact match with no normalization, which is marginally useful beyond the schema.

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 and resource: fetch one full Supreme Court judgment by its deka number, including the full facts/reasoning/judgment text. It explicitly distinguishes itself from search_law, deka_by_section, and verify_citation, so an agent can route without opening any schema.

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?

Gives a positive precondition (you already know the number, from the user or from search_law/deka_by_section, and need the full text) and an explicit negative list routing to the correct siblings with the condition that selects each. Nothing is left to inference.

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