Skip to main content
Glama

Extend Trainer Contract

extend_trainer_contract
Destructive

Verlängert einen eigenen Trainervertrag auf die angegebene Gesamtlaufzeit. Vorher get_trainer(record_visit=false) für aktuelle Laufzeit und Gehaltsforderungen lesen. Gehalt pro Spielwoche; Budget wird erneut geprüft. 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": {
      "trainer_id": "<trainer_id>",
      "laufzeit": "<laufzeit>",
      "expected_verein_id": "<expected_verein_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "extend_trainer_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
laufzeitYes
trainer_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

A3.7/5.0
Behavior3/5

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

Annotations already flag this as destructive, non-idempotent and open-world, so the baseline is lower; the description contributes that the budget is re-checked at execution and that max_weekly_salary caps the computed salary cost. It does not explain what the destructive flag means here (presumably replacing existing contract terms) or how failures roll back. A 3 fits: real added context, but the mutation's consequences stay underspecified.

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?

Four tight sentences, front-loaded with the action, then prerequisites, then cost semantics. Nothing is padding, though the prerequisite note could be merged with the budget note for tighter flow.

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

Completeness3/5

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

An output schema exists so return values need no explanation, and the prerequisite and cost mechanics are covered. What is missing is the failure/rollback story and the meaning of the destructive annotation for a contract extension, which a multi-parameter mutation tool should address.

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?

With 60% schema coverage, the description earns credit for clarifying that 'laufzeit' is a total duration rather than an increment and that max_weekly_salary bounds the execution-time salary computation. trainer_id is left implicit, and the idempotency_key semantics are not addressed in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Verlängert einen eigenen Trainervertrag') plus the target ('angegebene Gesamtlaufzeit'), which pins down the operation versus the player-contract sibling. It never names an alternative tool explicitly, so it falls short of full sibling differentiation.

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 a concrete prerequisite workflow: read get_trainer(record_visit=false) first for the current duration and salary demands. It sets the operating context (budget re-checked at execution) but offers no explicit when-not guidance or comparison against bid_for_trainer/accept_trainer_offer.

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.