Skip to main content
Glama

Create complaint

safefood360_create_complaint

WRITE: record a NEW complaint in Safefood 360 (it may trigger the site's complaint workflow and notifications). Not idempotent: calling it twice creates two complaints. Safefood 360 validates the fields (ids such as source, company and recorded_by are GUIDs from your site's lists) and rejects a request that lacks required ones. POST /complaints/sites/{siteId}/v1/complaints/.

Input Schema

NameRequiredDescriptionDefault
dateNoWhen the complaint was received, ISO 8601, e.g. 2026-10-20T09:30:00Z.
riskNoRisk level as named in Safefood 360, e.g. None, Low, Medium, High.
sourceNoComplaint source id (GUID) from the site's list of sources.
quantityNoQuantity affected.
trace_noNoBatch / trace number of the product.
referenceNoThe complainant's own reference.
company_idNoCustomer/company id (GUID) the complaint is about.
product_idNoId (GUID) of the product, material or service complained about.
descriptionYesWhat the complaint is about.
recorded_byNoUser id (GUID) of the person recording the complaint.
contact_personNoThe complainant.
sample_detailsNoSample request and collection details.
source_detailsNoFree-text details of the source.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the call may trigger the site's complaint workflow and notifications, spells out the concrete consequence of non-idempotency (two complaints), and explains that server-side validation rejects requests missing required fields. This is exactly the side-effect context the destructiveHint=false / idempotentHint=false flags cannot convey.

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?

Front-loaded with the operation mode and the highest-risk behavior (side effects, non-idempotency) before validation notes and the endpoint path. Three tight sentences plus endpoint, with no filler.

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 a 13-parameter write with a nested contact object and no output schema, it covers the critical gaps: side effects, idempotency, and where identifier values come from. It is slightly thin on the vague 'rejects a request that lacks required ones' phrasing (schema lists only description as required) and on the contact_person sub-fields.

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 100%, so field-level meaning is already handled; the description nevertheless adds the useful fact that ids like source, company and recorded_by are GUIDs drawn from the site's own lists, which is not obvious from the pattern constraint alone. It says nothing extra about the nested contact_person object or the date/risk formats.

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?

Opens with an explicit 'WRITE: record a NEW complaint' verb+resource+mode, which cleanly separates it from all read-oriented siblings (get_complaint, list_complaints) and from the update tools. An agent can pick it without opening any 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?

The 'WRITE:' marker plus the explicit 'not idempotent: calling it twice creates two complaints' tells the agent when to be cautious about repeating the call. It stops short of naming an alternative tool or stating prerequisites (e.g., fetch site lists first), so it is clear context without full routing guidance.

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.