Skip to main content
Glama

Sergio by Serviche

Record a warning, kudos or note for a field worker

record_staff_event
Idempotent

Adds one entry to a field worker's (staff_id) staff log and their attendance and feedback counts: kind warning (a conduct warning), kudos, note, client_feedback (with sentiment), or sick, late, no_show. A sick day, late arrival or no-show that cancelled or moved a visit is recorded by cancelling or reassigning that booking with the cleaner's reason instead, so do not record those twice. occurredOn is YYYY-MM-DD (default today); body is the detail in plain words. Nothing is sent to the worker. Pass the same idempotency_key when retrying.

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": {
      "staff_id": "<staff_id>",
      "kind": "<kind>",
      "body": "<body>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "record_staff_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
kindYes
clientIdNo
staff_idYes
bookingIdNo
sentimentNo
occurredOnNo
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds non-obvious behavior: 'Nothing is sent to the worker' (visibility of the entry) and the fact that log entries roll into attendance and feedback counts. It also explains the retry mechanic ('Pass the same idempotency_key when retrying'), adding operational detail beyond the bare idempotentHint. What it does not cover is what the call returns or whether entries can be edited/removed later.

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?

The core action and the deduplication rule are front-loaded, and the kind enumeration is compressed into a single clause rather than a bulleted list. It is dense but nearly every clause carries a decision-relevant fact; the phrasing 'and their attendance and feedback counts' is slightly buried mid-sentence but still earns its place.

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 an 8-parameter mutation with no output schema, the description covers the enum meanings, the date format, the required body, idempotency retry behavior, side-effect visibility and a deduplication rule. The remaining hole is the optional linking parameters (clientId, bookingId) and the absence of any note about the response, but neither blocks correct invocation.

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 only 13% schema description coverage across 8 parameters, the description carries most of the burden and does so well: it explains kind's values in plain words (conduct warning, kudos, note, client_feedback with sentiment), gives occurredOn's format and default of today, and characterizes body as 'the detail in plain words'. The gap is that clientId and bookingId are never mentioned, so their linking purpose and when to supply them is left entirely to 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 description opens with a specific verb and resource ('Adds one entry to a field worker's (staff_id) staff log') and enumerates the full set of entry kinds, so an agent knows exactly what is created. It also names the downstream effect ('attendance and feedback counts'), which further distinguishes it from a generic note-adding sibling such as add_client_note.

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

Usage Guidelines5/5

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

It gives an explicit when-not: a sick day, late arrival or no-show tied to a cancelled or moved visit should be recorded via the booking cancellation/reassignment path 'instead, so do not record those twice.' That is a concrete exclusion with the alternative route spelled out, which is exactly what an agent needs to avoid double-logging.

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