Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_get_custom_field

Read-onlyIdempotent

Retrieve a company's custom field, including applicable common and customer-specific options, and control whether archived options are returned.

Instructions

Returns one custom field of this company, archived or not, with the options that apply to the query: the common ones plus, with customer_id, those of that customer. Archived options are left out unless include_archived=true. A field with suggest_values: false carries no options; list them with GET /v1/companies/{company_id}/custom-fields/{key}/options.

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

Input Schema

NameRequiredDescriptionDefault
keyYesKey of the custom field: lowercase letters, digits and `_`, up to 64 characters. A key outside that format answers `422`.
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 options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower; the description still adds real behavior — archived options are filtered out by default, option set varies with customer_id, and fields with suggest_values: false return no options at all. It doesn't describe pagination or response shape, but the behavioral additions are substantive.

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 behavior, then the conditional option rules, then the endpoint reference. The endpoint line and docs URL duplicate metadata an agent can derive elsewhere, but overall it is tight with no filler sentences.

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?

For a read-only single-resource getter with no output schema, the description covers the important return-shape nuance (which options come back, and that some fields carry none) and points to the options endpoint. It stops short of describing the field object's other attributes, but the critical ambiguity is resolved.

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 the baseline is 3; every parameter (key, company_id, customer_id, include_archived) is already fully documented in the schema. The description restates customer_id and include_archived semantics rather than adding new meaning beyond the structured field text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Returns one custom field of this company, archived or not') and scopes the return set to common options plus customer options. It implicitly contrasts with the list endpoint ('one custom field') but never names beel_list_custom_fields, so differentiation relies on the agent's inference.

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 conditions: pass customer_id to add that customer's options, include_archived=true to see archived options, and it routes to `GET .../custom-fields/{key}/options` when the field has suggest_values: false. No explicit when-not-to-use-this vs list_custom_fields statement, which keeps it from a 5.

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