Skip to main content
Glama

CourtCases

Court cases: draft the document

cc_draft
Read-onlyIdempotent

Assembles the Ukrainian text of the lawsuit, the complaint to a higher authority, or the statement of defence deterministically from the service's checked blocks, with the court, fee, deadline and legal basis filled in. The parties stay as placeholders ({{ПОЗИВАЧ}}, {{РНОКПП}}, {{АДРЕСА_ПОЗИВАЧА}} …): never send personal data. Returns the text, the facts still missing (ask the user and call again), checks, sources and open_link — the same answers opened in the wizard on courtcases.app, where the user adds personal data on their device and gets DOCX/PDF.

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": {
      "subject": "<subject>"
    },
    "name": "cc_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
docNoclaim (lawsuit, default), complaint (to a higher authority, where available), response (statement of defence).
courtNoCourt id, to choose among options from cc_venue.
factsNoFacts of the case keyed by the wizard field path, from cc_draft missing_facts[].path (e.g. "act.date": "2026-10-01", "act.number": "123", "claim.amount": "15000"). No personal data.
filingNoElectronic court (default) or paper.
subjectYesSubject id from cc_topics (P01–P56).
appealedNoA complaint to a higher authority was filed before the lawsuit.
filed_onNoFiling date. Default: today in Kyiv (YYYY-MM-DD).
exemptionNoCourt fee exemption, if the user has one.
plaintiffNoAbout the person — no names or numbers.
violationsNoViolation codes from cc_qualify, as chosen by the user.
local_courtNoLocal general court (for local-court subjects).
defendant_nameNoName of the authority as in the decision's header (an organisation, not a person).
defendant_regionNoRegion of the authority that made the decision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds real substance: deterministic assembly from checked blocks, the hard constraint that parties remain placeholders ({{ПОЗИВАЧ}}, {{РНОКПП}}, {{АДРЕСА_ПОЗИВАЧА}}) and that personal data must never be sent. It also enumerates the return payload, which matters because no output schema exists.

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?

Two sentences, front-loaded with what the tool produces, then the privacy constraint, then the return shape. It is dense and parenthesis-heavy but almost every clause carries operational weight; the placeholder list 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?

For a 13-parameter tool with nested objects and no output schema, the description covers the output keys (text, missing facts, checks, sources, open_link), the retry loop and the privacy rule. An agent has enough to invoke it correctly and interpret the response.

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 still adds meaning the schema lacks: it explains why party fields are placeholders and why only non-personal descriptors (kind, gender, region) are accepted. That reframes how an agent should populate the nested 'plaintiff' object and 'facts' map.

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?

Uses a specific verb and resource: 'Assembles the Ukrainian text of the lawsuit, the complaint to a higher authority, or the statement of defence deterministically from the service's checked blocks.' The scope (court, fee, deadline, legal basis filled in) also separates it from the calculator/analysis siblings like cc_court_fee and cc_deadline.

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 an explicit workflow: call, read 'facts still missing', 'ask the user and call again'. It also implies a division of labour with the wizard, where personal data is added on the user's device. It stops short of naming prerequisite siblings in the description text (they appear only in schema field docs), and there are no explicit when-not conditions.

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