Skip to main content
Glama

Extend Player Contract

extend_player_contract
Destructive

Verlängert den eigenen Spielervertrag auf zwei oder drei Saisons. Vorher get_player für Gehaltsforderung, aktuelle Laufzeit und Bedingungen lesen; aktuelles Budget wird vor Speicherung geprüft. Die Gehaltskosten sind pro Spielwoche. max_weekly_salary begrenzt die bei Ausführung berechneten Gehaltskosten.

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": {
      "spieler_id": "<spieler_id>",
      "laufzeit": "<laufzeit>",
      "expected_verein_id": "<expected_verein_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "extend_player_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
laufzeitYes
spieler_idYes
idempotency_keyYes1–180 druckbare ASCII-Zeichen von ! bis ~, ohne Leerzeichen. Vor dem ersten Aufruf wählen und für Wiederholungen beibehalten.
max_weekly_salaryNoMaximales neues Wochengehalt in Spielgeld.
expected_verein_idYesErforderlicher aktiver Verein für diese Mutation; verhindert Aktionen nach einem zwischenzeitlichen Teamwechsel.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
toolYes
traceNo
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / max_weekly_salary
      Added value: +{
      +  "description": "Maximales neues Wochengehalt in Spielgeld.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {},
      +    "meta": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "trace": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true, idempotentHint=false), the description adds genuinely useful behavior: the current budget is validated before the write is persisted, and salary cost is billed per game week rather than per season. It does not address the mild tension between a required idempotency_key and idempotentHint=false, but it does not contradict the annotations either.

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?

Three dense sentences with the action first, then the prerequisite, then the cost semantics — a sensible front-loaded order with no filler. The final two sentences could be merged without loss, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with an output schema already present, the description covers the prerequisite read, the pre-write budget check, and the weekly cost model, which is what an agent needs to avoid a bad call. The main residual gap is failure behavior — what happens if the budget check fails or the expected_verein_id no longer matches.

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 60%, and the undescribed parameters are laufzeit and spieler_id. The description partly compensates by explaining that laufzeit means seasons (two or three) and that max_weekly_salary caps the salary cost computed at execution time — the latter clarifies a subtlety the schema alone leaves ambiguous. It still says nothing about spieler_id semantics or how the salary demand is derived, so it is baseline-plus rather than fully compensating.

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 states a specific verb and resource ('Verlängert den eigenen Spielervertrag') and pins the outcome to exactly two or three seasons, which matches the schema's 2–3 bound. The possessive 'eigenen' marks the scope as the caller's own player, so it is distinguishable from extend_trainer_contract without opening either 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?

It explicitly names a prerequisite sibling and the reason to call it first: 'Vorher get_player für Gehaltsforderung, aktuelle Laufzeit und Bedingungen lesen'. That is clear when-to-use context, but there is no exclusion guidance — nothing says when not to extend, or what to do if the player is on the transfer list or the budget check would fail.

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.