Skip to main content
Glama

sodra_sam_draft

Drafts a monthly SAM insurance notice in EDAS from employee income and contract data, returning draft ID, link, totals and per-person rows for review and submission.

Instructions

Drafts the month's SAM notice (Pranešimas apie apdraustuosius, version 07) in this employer's EDAS account and answers in Markdown with the draft's id, a link that opens it in EDAS, the totals and a row per person. Each person's contributions are the income at their whole rate (the employee's 19.5 %, 22.5 % with the II pillar, plus the employer's by contract and accident group), rounded to cents, as the SAM reports them. The draft is not submitted: a person checks, signs and submits it in EDAS through the link. Personal codes are checked and never repeated back; a personCode, insuranceSeries or insuranceNumber written as $env:NAME is read from that environment variable of this server, so it need not be typed into the call. The period must be a month that has ended. One call uploads one draft; calling again uploads another. Without an EDAS account (SODRA_USER and SODRA_PASSWORD) it answers how to set one up.

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": {
      "period": "<period>",
      "insurer": "<insurer>",
      "accidentGroup": "<accidentGroup>",
      "people": "<people>"
    },
    "name": "sodra_sam_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
peopleYesEvery person insured that month, once each.
periodYesThe month reported, YYYY-MM.
insurerYes
accidentGroupYesThe employer's accidents at work insurance group, 1 to 4; 1 for most offices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-readonly, non-idempotent, non-destructive and open-world, and the description reinforces rather than contradicts them by explaining the non-idempotency (each call uploads a new draft) and the human handoff (a person checks, signs and submits in EDAS via the link). It also discloses the credential requirement, the closed-period precondition and the privacy behaviour that personal codes are validated but never echoed back, which is exactly the added context the annotations cannot carry. It stops short of stating what happens to a prior draft on a repeat call or any rate/size 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?

It is long but front-loaded: purpose first, then calculation semantics, then the draft/human-submit boundary, then security and auth fallbacks. A few clauses are near-redundant with the schema, notably the explanation that an $env value need not be typed into the call.

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?

With no output schema, the description correctly specifies the return shape (Markdown with the draft id, an EDAS link, totals and a per-person row). For a four-parameter write tool with nested objects it also covers the mutation boundary, non-idempotency and the auth fallback path, leaving nothing an agent needs before calling it.

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 coverage is 75% and the nested fields are well documented, so the schema does most of the work. The description adds genuine meaning about how income is consumed (employee 19.5 %, 22.5 % with the II pillar, employer rate by contract type and accident group, rounded to cents) and clarifies that people lists every insured person exactly once. The $env:NAME explanation largely restates the pattern already in 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?

The first sentence names a specific verb (drafts), a specific resource (the month's SAM notice, Pranešimas apdraustuosius v07), the target system (EDAS) and the response format, and immediately scopes it as a draft rather than a filing. That scope statement is what separates it from anything that submits or reports status.

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?

It gives real usage conditions: the period must be a month that has ended, one call uploads exactly one draft and repeat calls upload another, and without SODRA_USER/SODRA_PASSWORD it returns setup instructions instead of failing. It does not name any sibling tool as an alternative for pre-checking data or for submitting the draft, so routing to other tools 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.