Skip to main content
Glama
cotletdev

Contractor Foreman MCP Server

by cotletdev

Update service ticket status

update_service_ticket_status
Idempotent

Update a Contractor Foreman service ticket's status across unscheduled, scheduled, en route, checked in, requires follow-up, canceled, completed, and closed states.

Instructions

Moves a service ticket to scheduled, en route, checked in, completed, closed and so on.

Sets the status of a Contractor Foreman service ticket as the status field on its page does: unscheduled, scheduled, en_route, checked_in, requires_followup, canceled, completed or closed. The app's own en-route and completion emails to the customer are separate buttons and are not sent. Completed moves the service date to today, as the app does. Returns the ticket as saved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
service_ticket_idYesservice_ticket_id from list_service_tickets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.6/5.0
Behavior5/5

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

Adds behavior well beyond the annotations: it discloses the side effect that 'completed' moves the service date to today, clarifies that customer-facing emails are NOT sent, and states the return value ('the ticket as saved'). These are exactly the non-obvious consequences an agent needs before mutating a ticket, and nothing contradicts the idempotent/non-destructive hints.

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?

Front-loaded with the core action and includes only decision-relevant details (email caveat, date mutation, return value). Minor redundancy: the status values are enumerated twice, once informally in the first sentence and again in full in the second.

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

Completeness5/5

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

For a two-parameter mutation with no output schema, the description covers what changes, the key side effect, what is deliberately not triggered, and what is returned. An agent has everything needed to call it correctly.

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?

Schema coverage is 50% (only service_ticket_id is described), so the description compensates by restating the full status enum and, importantly, explaining the semantic consequence of the 'completed' value. It does not explain 'requires_followup' or 'closed' beyond the label, leaving some interpretation to the enum names.

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?

States a specific verb and resource ('Sets the status of a Contractor Foreman service ticket') and explicitly frames it as the programmatic equivalent of the status field on the ticket page. The full set of target statuses is named, so an agent can distinguish this from get_service_ticket or create_service_ticket without opening the 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?

Explains the operational context (mirrors the app's status field) and explicitly warns that the en-route and completion emails are separate actions not triggered here, which tells the agent when this tool is and isn't sufficient. It does not name a sibling alternative or state prerequisites such as permissions, so it falls short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools