Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_list_custom_field_options

Read-onlyIdempotent

Lists paginated custom field options, filtered by customer and optionally including archived values, to inspect available choices.

Instructions

Returns a paginated list of the options of this custom field, ordered by value.

  • Customer: without customer_id, every option of the field, common and of every customer. With it, the common options and those of that customer.

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

  • Suggestions off: the options of a field with suggest_values: false are listed too. They are not offered on invoices while the setting is off.

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

Input Schema

NameRequiredDescriptionDefault
keyYesKey of the custom field: lowercase letters, digits and `_`, up to 64 characters. A key outside that format answers `422`.
pageNoPage number, starting at 1. The response echoes it back as `pagination.current_page`.
limitNoHow many items to return per page. The response echoes it back as `pagination.items_per_page`.
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_idNoLimits the list to the common options and those of this customer. A value that names no customer of this company is not an error: only the common options come back.
include_archivedNoInclude archived options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive and closed-world, so the safety profile is covered. The description adds genuinely beyond that: results come back ordered by `value`, archived options are silently omitted unless `include_archived=true`, and options of fields with `suggest_values: false` are still listed. It does not describe the shape of a returned option, which is the main remaining gap.

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?

Front-loaded with the one-line purpose, then three tight bullets each covering a distinct behavioural rule, then the endpoint reference. No sentence restates the name or the schema, and nothing could be removed without losing information.

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

Completeness4/5

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

With six parameters, 100% schema coverage, and no output schema, the definition covers scoping, filtering, ordering, and pagination defaults well. The one omission is a note on what an option record contains, which an agent cannot infer since no output schema exists.

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 description coverage is 100%, so the baseline is 3. The description still adds meaning the schema lacks: the contrast between the no-`customer_id` case (all common and per-customer options) and the filtered case, plus the non-obvious behaviour that a `suggest_values: false` field's options are still returned.

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 a paginated list of the options of this custom field, ordered by `value`.' That clearly separates it from beel_get_custom_field_option (single option access) and beel_list_custom_fields (fields, not options). It also names the ordering, which no structured field gives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The bullets explain filtering behaviour (customer scope, archived exclusion, suggest_values off), but none of them says when to pick this tool over a sibling or when not to use it. Usage is implied by the filter semantics rather than stated, so this is adequate rather than instructive.

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