Skip to main content
Glama

Set credit limit

core_set_credit_limit
Destructive

Change how much unpaid exposure we will carry for a customer. This is the human decision the credit gate's refusal points to. When o2c refuses to confirm an order, the answer is never to route around the gate — it is for someone with the authority to change this number to change it, here, with a reason that will be read back. A limit of 0 means prepay only. Lowering a limit never touches already-confirmed orders; it tightens the gate for the next one. Effects: customer.credit_limit changed for future confirmations.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customer_id": "<customer_id>",
      "credit_limit": "<credit_limit>",
      "reason": "<reason>"
    },
    "name": "core_set_credit_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy — approved by whom, on what basis. This is the audit answer to "who raised it".
customer_idYesThe customer. An existing customer id.
credit_limitYesThe new limit. In cents (integer minor units) — 1250 means $12.50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag it as destructive and non-idempotent; the description adds real behavior: a limit of 0 means prepay only, lowering a limit does not touch already-confirmed orders but tightens the gate for the next one, and the reason is read back as audit. The 'Effects' line names the exact mutated field and its scope.

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?

Front-loads the core purpose in one sentence and separates effects into a labeled line, but the middle passage about not routing around the gate is editorial and could be trimmed without losing decision-relevant information.

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

Completeness5/5

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

For a three-parameter destructive mutation with no output schema, the definition covers when to invoke it, what it changes, and what it deliberately does not change (already-confirmed orders), leaving no material ambiguity about the call's consequences.

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 the baseline is 3; the description still adds meaning by explaining what a 0 limit means in practice and by emphasizing that the reason string is an audit artifact that will be read back, not free-form notes.

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?

States a specific verb and resource ('Change how much unpaid exposure we will carry for a customer') and pins its role relative to the credit gate and o2c order confirmation, so an agent can tell it apart from o2c_apply_credit or core_hold_customer without opening a schema.

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?

Gives an explicit trigger (o2c refuses to confirm an order) and an explicit negative ('the answer is never to route around the gate'), routing the agent to this tool only when someone with authority is changing the number with a reason.

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.