Skip to main content
Glama

Create machine maintenance log

create_machine_maintenance_log

Log a maintenance/repair/inspection event for a machine. If next_service_date is given, also updates the machine's own next_service field.

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": {
      "machine_id": "<machine_id>",
      "description": "<description>"
    },
    "name": "create_machine_maintenance_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNo
notesNo
agent_idNo
machine_idYes
descriptionYes
performed_byNo
performed_dateNo
maintenance_typeNo
next_service_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive behavior, so the bar is lower. The description adds genuinely non-obvious side-effect context: supplying next_service_date also mutates the machine's own next_service field, which the agent cannot infer from the schema or annotations. It still omits validation rules, error behavior, and what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, no filler, with the core action first and the conditional side effect second. Every sentence earns its place.

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?

For a 9-parameter creation tool with no output schema and no parameter descriptions, the definition is too thin — most fields a caller must populate are unexplained, and there is no statement of what a successful call returns or requires. Only the next_service_date side effect is adequately covered.

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?

With 9 parameters and 0% schema description coverage, the description carries the full burden but only explains next_service_date (including its side effect). cost, notes, agent_id, performed_by, performed_date, maintenance_type, and even the meaning/format of description and machine_id are left undocumented in both schema and 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 ('Log') and resource ('maintenance/repair/inspection event for a machine'), making the create-new-event nature clear. It does not name the sibling update_machine_maintenance_log or explain how it differs, so differentiation is left to the reader.

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

Usage Guidelines3/5

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

Usage is implied by 'Log a ... event' and the required machine_id/description, which suggests creating a new record rather than editing one. There is no explicit when-to-use vs. update_machine_maintenance_log or list_machine_maintenance_logs guidance and no stated prerequisites (e.g., machine must exist, permissions needed).

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