Skip to main content
Glama

AssetLab

Create compliance record

create_compliance_record

Create a new compliance record (audit trail entry). Requires compliance_records:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
completed_atYesCompletion date-time (ISO 8601, required)
completed_byNoUser ID who completed
work_order_idYesWork order ID (required)
pm_schedule_idYesPM schedule ID (required)
compliance_item_idYesCompliance item ID (required)
required_frequency_daysYesRequired frequency in days (required)
days_since_last_completionNoDays since last completion

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the write/mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), so the safety bar is lowered. The description adds the required OAuth scope ('compliance_records:write') and the 'audit trail entry' framing, which are genuinely useful behavioral context not present in the annotations.

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 tight sentences, purpose front-loaded ahead of the auth prerequisite, with no redundant restatement of the title or schema. Every clause 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 a create tool with a fully documented 7-parameter schema and annotations covering the safety profile, the description supplies purpose and the required scope. It does not state what the call returns (e.g., the new record ID) and there is no output schema, but that is a minor gap.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the 7 parameters (5 required, UUID formats, ISO 8601 timestamps, frequency constraints) is already documented in the schema. The description adds no parameter-level semantics beyond that, making the baseline 3 correct.

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?

The description states a specific verb and resource ('Create a new compliance record') and clarifies what the resource is ('audit trail entry'), which orients the agent. It does not, however, distinguish the tool from nearby siblings like create_compliance_item or create_compliance_pm_schedule.

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 context is implied by naming the artifact an 'audit trail entry', which signals this is for logging completions rather than defining compliance items. There is no explicit when-to-use versus create_compliance_item/create_compliance_pm_schedule, nor any when-not guidance, so it remains at the minimum viable level.

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