Skip to main content
Glama
loldwyer

Red MCP Server

by loldwyer

brc_create_prepayment

Creates a prepayment draft for review, then confirms and writes the transaction only after user explicit approval.

Instructions

Creates a new parent Prepayment. The API accepts only the parent transaction shape and relies on shared logic to generate the reversing child transaction. Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed creation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYesPrepayment total amount.
acCodeYesNominal account code, for example 4000.
procDateYesProcessing date, for example 2024-03-15T00:00:00.
entryDateYesEntry date, for example 2024-03-01T00:00:00.
referenceYesPrepayment reference, for example PRE0001.
companyNameYesCompany context name, for example YOUR-COMPANY-NAME.
firstDetailNoFirst detail text.
confirmWriteNoMust be true only after the user explicitly confirms creating this prepayment.
secondDetailNoSecond detail text.
Behavior4/5

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

With no annotations, the description discloses key behavior: the API accepts only the parent transaction shape and automatically generates a reversing child transaction. It also warns about confirmWrite usage, which is important for safe invocation.

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 sentences, each essential: first states purpose and mechanism, second provides a critical usage warning. No wasted words, information is front-loaded.

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?

No output schema exists, but the description fails to mention what the tool returns (e.g., the created prepayment or success status). It does cover the parent/child transaction behavior, but omits return value information, which is a gap for an agent.

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 baseline is 3. The description adds context about confirmWrite (must only be true after user confirmation) which aligns with the schema, but does not significantly augment what the schema already provides for other parameters.

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?

Description clearly states it 'Creates a new parent Prepayment', identifying the specific verb-verb (create) and resource (prepayment). It distinguishes from siblings like update, delete, get by making creation explicit.

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?

Provides explicit guidance on the confirmWrite parameter: 'Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed creation.' This clarifies when and how to use the tool safely, though it does not explicitly contrast with 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