Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_list_custom_fields

Read-onlyIdempotent

Lists a company's invoice custom fields with the option values each supports, optionally adding a specific customer's options and archived entries.

Instructions

Returns the invoice custom fields of this company, each one with the options that apply to the query, ordered by key. A field with suggest_values: false carries no options.

  • Options per customer: with customer_id, each field carries the common options and those of that customer, which is what an invoice for that customer can offer. Without it, only the common options. To page through every option of a field, use GET /v1/companies/{company_id}/custom-fields/{key}/options.

  • Archived: archived fields and options are left out unless include_archived=true.

Closed catalogue. A company defines a small set of fields: this collection carries no pagination, takes no page/limit, and every response holds the whole set.

BeeL API endpoint: GET /v1/companies/{company_id}/custom-fields (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>"
    },
    "name": "beel_list_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
customer_idNoAdds the options of this customer to the common ones. A value that names no customer of this company is not an error: only the common options come back.
include_archivedNoInclude archived fields and archived options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses substantive behavior: results are ordered by `key`, archived fields and options are omitted by default, and the "Closed catalogue" note explains there is no pagination, no `page`/`limit`, and every response holds the whole set. That is exactly the kind of context annotations cannot carry.

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 first sentence, then bolded scenario bullets — easy to scan and no filler argument-by-argument. Minor redundancy with the schema on `customer_id`/`include_archived` and a boilerplate endpoint line keep it short of ideal density.

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, and the description compensates by describing the return shape (each field with its applicable options, `suggest_values: false` meaning no options, ordering, whole-set-without-pagination). An agent can predict the response and call correctly.

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 framing `customer_id` in terms of what an invoice for that customer can offer and by confirming `include_archived` filters both fields and options. The overlap with the schema's own wording keeps it from a 5.

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 ("Returns the invoice custom fields of this company"), plus scope details: ordering by `key`, options attached per field, and a named edge case (`suggest_values: false`). It also implicitly separates itself from the options endpoint by pointing there for pagination.

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 conditional guidance for the two optional parameters (with `customer_id` you get common + customer options; without it, common only; archived excluded unless `include_archived=true`) and names a paging alternative endpoint. It does not name the sibling tool `beel_list_custom_field_options` for the single-field case, so routing is slightly incomplete.

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