Skip to main content
Glama

Complete maintenance

complete_maintenance

Record completed maintenance in vehicle history and advance its tracker.

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": {
      "vehicleId": "<vehicleId>",
      "trackerId": "<trackerId>",
      "completedAt": "<completedAt>"
    },
    "name": "complete_maintenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
mileageNo
logCountNo
trackerIdYes
vehicleIdYes
completedAtYes
engineHoursNo
trackEventsNo

Output Schema

NameRequiredDescriptionDefault
logsNo
toolYesTuneWorks MCP tool name that produced this result.
userNo
countNo
listsNo
setupsNo
statusYesStable result status such as ok, created, updated, sent, auth_required, or confirmation_required.
messageNo
outcomeNoOptional domain outcome for an otherwise successful read.
sessionsNo
vehiclesNo
snapshotsNo
activationNo
maintenanceNo
modificationsNo
requestedVehicleIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / activation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "goal": {
      +      "const": "optimize_vehicle",
      +      "type": "string"
      +    },
      +    "missingData": {
      +      "items": {
      +        "enum": [
      +          "vehicle",
      +          "accessible_vehicle_id",
      +          "baseline_setup",
      +          "driving_session",
      +          "vehicle_build_state",
      +          "vehicle_logs",
      +          "structured_vehicle_modifications"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array",
      +      "uniqueItems": true
      +    },
      +    "nextActions": {
      +      "items": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "arguments": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "vehicleId": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "vehicleId"
      +                ],
      +                "type": "object"
      +              },
      +              "optional": {
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "requiredInputs": {
      +                "items": {
      +                  "enum": [
      +                    "year",
      +                    "make",
      +                    "model",
      +                    "purpose",
      +                    "displacement",
      +                    "engineType",
      +                    "aspiration",
      +                    "cylindersOrRotors",
      +                    "fuel",
      +                    "fuelRating",
      +                    "setupName",
      +                    "setupDate",
      +                    "sessionDate",
      +                    "sessionFormat",
      +                    "modifications",
      +                    "category",
      +                    "system",
      +                    "status",
      +                    "brand",
      +                    "partName"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "tool": {
      +                "enum": [
      +                  "create_vehicle",
      +                  "list_vehicles",
      +                  "get_vehicle_context",
      +                  "create_setup",
      +                  "create_session",
      +                  "update_vehicle",
      +                  "create_vehicle_modification"
      +                ],
      +                "type": "string"
      +              },
      +              "type": {
      +                "const": "tool",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "tool",
      +              "reason"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "action": {
      +                "enum": [
      +                  "select_vehicle",
      +                  "optimize_vehicle"
      +                ],
      +                "type": "string"
      +              },
      +              "optional": {
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "type": {
      +                "const": "assistant",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "action",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "recommendedData": {
      +      "items": {
      +        "enum": [
      +          "vehicle",
      +          "accessible_vehicle_id",
      +          "baseline_setup",
      +          "driving_session",
      +          "vehicle_build_state",
      +          "vehicle_logs",
      +          "structured_vehicle_modifications"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array",
      +      "uniqueItems": true
      +    },
      +    "requestedVehicleId": {
      +      "type": "string"
      +    },
      +    "stage": {
      +      "enum": [
      +        "empty_garage",
      +        "select_vehicle",
      +        "vehicle_selected",
      +        "vehicle_created",
      +        "collecting_baseline_data",
      +        "ready_to_optimize"
      +      ],
      +      "type": "string"
      +    },
      +    "vehicleId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "goal",
      +    "stage",
      +    "missingData",
      +    "recommendedData",
      +    "nextActions"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / logs
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / modifications
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / outcome
      Added value: +{
      +  "description": "Optional domain outcome for an otherwise successful read.",
      +  "enum": [
      +    "no_vehicles",
      +    "vehicle_not_found",
      +    "vehicle_selection_required",
      +    "no_data"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / requestedVehicleId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / snapshots
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"Result status such as ok, created, updated, sent, auth_required, or confirmation_required."New value: +"Stable result status such as ok, created, updated, sent, auth_required, or confirmation_required."
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the mutating-but-non-destructive profile is covered. The description adds one genuinely non-obvious behavior beyond that: the call advances the vehicle's tracker, a state transition not visible in the schema. It does not say whether the tracker is closed/reset, whether repeated calls are idempotent, or what happens if the record already 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?

One sentence, no filler, and the action plus its consequence are front-loaded. It is efficient but unstructured for a multi-parameter write, lumping the history record and the tracker advance into a single clause.

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

Completeness2/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 not be described. But for an 8-parameter mutation with a state-transition side effect and 0% parameter documentation, an agent gets almost nothing about which optional fields are meaningful or what the tracker advance implies, leaving it under-specified for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description must carry the burden and largely does not. It only weakly implies vehicleId ("vehicle history"), trackerId ("its tracker") and completedAt ("completed"), and says nothing about notes, mileage, engineHours, logCount or trackEvents, which look like optional history-append values whose effect on the vehicle record is unexplained.

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+resource ("Record completed maintenance in vehicle history") plus a distinct side effect ("advance its tracker"), which separates it from the plain create_/update_maintenance siblings that only write a record. It never names those siblings explicitly, so an agent must infer that this is the completion/state-transition path rather than the edit path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus update_maintenance, create_maintenance, or archive_maintenance, all of which appear in the sibling list and touch the same resource. No preconditions (must a tracker exist? must it be open? can it be completed twice?) are stated.

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