Skip to main content
Glama

Environments Upsert Rate

environments_upsert_rate
Destructive

Adds a rate and leaves every price you already hold open, so you can keep more than one on file — a second subcontractor's quote for the same operation, for instance. Which of them a part is costed at is decided per order.

This one adds. To state the single price this environment should use — closing the price it replaces — use the PUT for the thing itself: .../rates/subcontract/{operation_kind} for bought-in work, .../rates/material/{grade_id} for a material. A scrap price has only its own PUT .../rates/scrap/{material_category}/{scrap_class}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYeslabour|overhead|material|fx|subcontract
env_idYes
fieldsNoKind-specific columns (category, machine_ref, …).
currencyNoISO 4217 currency code for the rate; null to inherit.
valid_toNoDate after which the rate is no longer effective; null if open-ended (ISO 8601).
valid_fromYesDate from which the rate is effective (ISO 8601).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources