Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_update_payment_connection

Destructive

Adjust auto-invoicing settings for a company's payment connection, including series, event source, charge filters, and email delivery. Omitted fields keep their current values.

Instructions

Updates the auto-invoicing settings of the payment connection named by {connection_id} of a company your account owns or manages.

  • Partial by field: a field you omit keeps its current value. The series fields also accept an explicit null, which clears the series and falls back to the company default for that document type. filter_config is the exception: when sent, it replaces the whole object, not just the sub-fields you included — a partial filter_config clears every filter axis you left out.

  • Read-only fields: id, provider, status, environment, external_account_id, connected_at, last_event_at and active_filters are not part of this request and are ignored if sent. status moves through the disconnect operation, never here.

  • Series: each one must exist, be active, belong to this NIF and carry a compatible document type, or the request answers 422.

BeeL API endpoint: PATCH /v1/companies/{company_id}/payment-connections/{connection_id} (reference: https://docs.beel.es)

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": {
      "company_id": "<company_id>",
      "connection_id": "<connection_id>",
      "body": "<body>"
    },
    "name": "beel_update_payment_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
company_idYesUnique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed.
connection_idYesUnique identifier (UUID) of the payment connection the operation acts on, as returned by `GET /v1/companies/{company_id}/payment-connections`. A NIF can hold several connections of the same provider, so the provider slug alone does not name one. A connection of another NIF answers `404`, exactly like one that does not exist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedInput schema / $defs / UpdateCompanyPaymentConnectionRequest / properties / simplificada_threshold / description
      Previous value: -"Deprecated. No longer affects auto-invoicing: a buyer with a tax ID and full address\nalways gets an ordinary invoice; without them, a simplified one up to 3,000 EUR.\nStill accepted; between 0.01 and 3000.00.\n"New value: +"Amount in EUR up to which a charge whose buyer has no complete fiscal data (tax ID, name\nand address) is invoiced as a simplified invoice. Above it, the charge is not issued: it\nwaits as a draft standard invoice until the buyer's fiscal data is completed. A buyer with\ncomplete fiscal data always gets a standard invoice, whatever the amount. Up to 400.00 is\nthe general limit; a higher value, up to 3000.00, is the issuer's statement that its\nactivity is one of those in article 4.2 of RD 1619/2012 (rule SIM-002). Omit to keep\nthe current value.\n"
  2. Changed5 schema fields changedv0.10.0
    • changedInput schema / $defs / UpdateCompanyPaymentConnectionRequest / description
      Previous value: -"The settings to change. A field you omit keeps its current value; the series fields also\naccept an explicit `null`, which clears the series.\n"New value: +"The settings to change. A field you omit keeps its current value; the series fields and\n`tax_inclusive_tax` also accept an explicit `null`, which clears them.\n"
    • removedInput schema / $defs / UpdateCompanyPaymentConnectionRequest / properties / prices_include_tax
      Removed value: -{
      -  "description": "Whether provider amounts are read as tax-inclusive. Turning it on requires\n`tax_inclusive_tax` in the same request, or the request answers `422`\n`TAX_INCLUSIVE_RATE_REQUIRED`: without the tax there is nothing to reverse.\n",
      -  "type": "boolean"
      -}
    • changedInput schema / $defs / UpdateCompanyPaymentConnectionRequest / properties / simplificada_threshold / description
      Previous value: -"Amount in EUR at or above which auto-invoicing must issue an ordinary invoice instead\nof a simplified one. Between 0.01 and 3000.00.\n"New value: +"Deprecated. No longer affects auto-invoicing: a buyer with a tax ID and full address\nalways gets an ordinary invoice; without them, a simplified one up to 3,000 EUR.\nStill accepted; between 0.01 and 3000.00.\n"
    • changedInput schema / $defs / UpdateCompanyPaymentConnectionRequest / properties / tax_inclusive_tax / anyOf
      Previous value: -[
      -  {
      -    "allOf": [
      -      {
      -        "$ref": "#/$defs/TaxInfo"
      -      }
      -    ],
      -    "description": "The tax to reverse out of the gross amount. Send it together with\n`prices_include_tax: true`; `null` clears it.\n"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "allOf": [
      +      {
      +        "$ref": "#/$defs/TaxInfo"
      +      }
      +    ],
      +    "description": "Optional. The tax applied to a charge for which the provider sends no tax breakdown;\nwhen set, it takes precedence over the company's tax configuration for those charges.\nOmit it to keep the current value; send `null` to clear it, so the company's tax\nconfiguration applies again.\n"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / body / type
      Added value: +"object"
  3. Addedv0.9.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only flag destructiveHint=true and idempotentHint=false; the description earns those flags by explaining concretely what gets clobbered — an omitted field is preserved, but a sent `filter_config` clears every axis left out, and explicit `null` on series fields falls back to company defaults. It also discloses the 422 failure condition for series validation and lists ignored read-only fields, which is exactly the context annotations alone cannot convey.

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-loaded with purpose, then organized into labeled bullets (partial-by-field, read-only, series) plus an endpoint reference. Dense but every block carries substantive rules; the long read-only field enumeration is the only mildly padded element.

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?

No output schema exists, but for a PATCH-style update the description covers what an agent needs: scope, merge semantics, cleared-on-replace hazards, validation failures, and the underlying endpoint. Sibling and error behavior (403/404) is handled in the parameter schema, so nothing critical is missing.

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 67%, and the description adds genuine meaning beyond it: the replace-vs-merge distinction for `filter_config`, `null`-clearing for series and `tax_inclusive_tax`, and the read-only set (`status`, `provider`, `environment`, etc.) that must not be sent. The remaining detail for the nested settings is delegated to the schema's own field descriptions.

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 — updating the auto-invoicing settings of the payment connection identified by `{connection_id}` — and scopes it to a company the account owns or manages. An agent can distinguish it from beel_disconnect_payment_connection, beel_get_connection and beel_update_tax_configuration without opening any schema.

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?

Gives clear guardrails: partial-by-field semantics, the `filter_config` full-replacement caveat, the read-only field list, and an explicit routing exclusion ('`status` moves through the disconnect operation, never here'). It stops short of naming the sibling operations to use for other settings changes, so the routing guidance is implied rather than exhaustive.

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

Deploy Server

Other Tools