Skip to main content
Glama
loldwyer

Red MCP Server

by loldwyer

brc_update_purchase

Update a purchase record. First call returns a draft for user approval; the data is written only after explicit user confirmation.

Instructions

Updates a BRC purchase using structured MCP fields. First call without confirmWrite: true returns confirmation_required and a payload preview — show a plain-English draft in chat, then retry with confirmWrite: true only after explicit user confirmation in a later message. Passing preflight is not confirmation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPurchase id.
noteNo
acCodeNo
procDateNo
entryDateNo
netAmountNo
vatRateIdNo
supplierIdNo
accountCodeNo
companyNameYesCompany context name, for example YOUR-COMPANY-NAME.
descriptionNo
confirmWriteNoMust be true only after a plain-English draft has been shown in the current conversation and the user explicitly confirmed posting (for example yes, create it / post it now / confirm). Never set true on the first call or because the user initially asked to create something.
vatPercentageNo
bookTranTypeIdNo
analysisCategoryIdNo
Behavior4/5

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

With no annotations, the description fully bears the burden of behavioral disclosure. It transparently explains the preflight/confirmation workflow and what the first call returns (confirmation_required and payload preview). However, it does not mention any side effects or permission requirements, though the confirmation pattern mitigates risk.

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 description is two sentences and front-loads the purpose. The second sentence is dense but packs essential workflow instructions. No extraneous words; could be slightly clearer by breaking into steps, but overall efficient.

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

Completeness3/5

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

Given the tool has 15 parameters, no output schema, and low schema coverage, the description focuses on the critical confirmation pattern but omits details about what updates are possible (e.g., which fields can be changed) and return values. It provides enough for correct invocation but not full contextual completeness.

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 coverage is low (20%) and the description adds meaningful context for the confirmWrite parameter only, explaining its role in the workflow. Other parameters are not individually described beyond what the schema provides. This partially compensates for the low coverage but leaves many parameters undocumented.

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 clearly states it 'Updates a BRC purchase', which is a specific verb and resource. While it doesn't list the specific updatable fields, the purpose is unambiguous and distinguishes it from siblings like brc_create_purchase or brc_get_purchase.

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?

The description provides explicit two-step instructions: first call without confirmWrite to get a preview, then retry with confirmWrite=true only after explicit user confirmation. It also warns that 'Passing preflight is not confirmation,' offering clear guidance on when and how to use the tool compared to alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/loldwyer/Red'

If you have feedback or need assistance with the MCP directory API, please join our Discord server