Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AALY. If you published it, claim ownership there.

create_fields

Add MANY fields to one entity in a single call — one bulk POST /fields instead of one create_field per field. Each item takes exactly the attributes create_field takes (name, type, label, required, unique, search, targets, values, valueType, multiple, default_value, formula, computed, stored, ...), and the same type/cardinality/immutability guidance applies — read create_field's description first. PARTIAL SUCCESS IS NORMAL: the result carries a summary ({total, succeeded, failed, notAttempted}) and one entry per field in input order, each with _ref (the field name), status (the HTTP status that field's own create returned) and body (the created field record, or the error object with code/message). Fields that failed did not affect the ones that succeeded — read each failed entry's error, fix it, and call create_fields again with ONLY the failed ones. status: null with code NOT_ATTEMPTED means the request deadline hit before that field started; resubmit it as-is. Prefer this over repeated create_field calls whenever you are defining two or more fields on the same entity.

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": {
      "entity_id": "<entity_id>",
      "fields": "<fields>"
    },
    "name": "create_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYes1-100 field definitions, each shaped like create_field's arguments (minus entity_id).
entity_idYesEntity record ID (e.g. 'ENT3') every field is added to — or a custom endpoint's id (EPT...), in which case every item needs `location`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / fields / items / properties / precision
      Added value: +{
      +  "description": "For number fields: the maximum number of decimal places. 2 for money; 0 for whole numbers only. A write with more decimals is a 400 NUMBER_PRECISION_EXCEEDED, and values are rounded to this many places on read. Omit to allow any decimals. Permanent once set.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / fields / items / properties / targets / description
      Previous value: -"For reference fields: which entities this links to and which of their fields to inline on read. Example: [{\"entity\": \"products\", \"projection\": [\"name\", \"price\"]}]. On WRITE, supply the reference value as {\"id\": \"<recordId>\"} (or an array of those when multiple=true); on READ, the projected fields are returned inline."New value: +"For reference fields: which entities this links to and which of their fields to inline on read. Example: [{\"entity\": \"products\", \"projection\": [\"name\", \"price\"]}]. A bare entity name (\"products\") is accepted too and means {\"entity\": \"products\"} with no projection. On WRITE, supply the reference value as {\"id\": \"<recordId>\"} (or an array of those when multiple=true); on READ, the projected fields are returned inline."
    • addedInput schema / properties / fields / items / properties / targets / items / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "entity": {
      +        "type": "string"
      +      },
      +      "projection": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / fields / items / properties / targets / items / properties
      Removed value: -{
      -  "entity": {
      -    "type": "string"
      -  },
      -  "projection": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedInput schema / properties / fields / items / properties / targets / items / type
      Removed value: -"object"
  2. Changed1 schema field changed
    • changedInput schema / properties / fields / items / properties / search / description
      Previous value: -"Enables collection-GET filtering on this field via query operators (eq/ne/in/nin for enum/boolean/list/reference; eq/gt/gte/lt/lte for number/date/datetime; eq/starts for text). Results come from an async search index (small post-write lag) — see describe_project's `filtering` section or generate_openapi_spec for the exact operators/syntax this field supports once created. reference fields are always filterable regardless of this flag (except the system audit references _createdBy/_updatedBy/_deletedBy, which are never indexed) — enum and every other type require search:true. On an eligible type (enum/boolean/list/reference/date/datetime — not text/number), search:true ALSO automatically maintains a distinct-value counter for this field (no separate flag needed) — counts are returned under a `facets` key — {field: {value: count}} — only when the caller passes `?facets=true` (or `?facets=<thisFieldName>` to select just this field) on an UNFILTERED GET /{entity} (no query param other than limit/offset/facets); combining `facets=` with any real filter returns a clean 400 (FACETS_REQUIRES_NO_FILTERS), since the counts are a GLOBAL per-entity distribution that wouldn't describe a filtered result set. (default false)"New value: +"Enables collection-GET filtering on this field via query operators (eq/ne/in/nin for enum/boolean/list/reference; eq/gt/gte/lt/lte for number/date/datetime; eq/starts word search plus exact for a whole value, for text). Results come from an async search index (small post-write lag) — see describe_project's `filtering` section or generate_openapi_spec for the exact operators/syntax this field supports once created. reference fields are always filterable regardless of this flag (except the system audit references _createdBy/_updatedBy/_deletedBy, which are never indexed) — enum and every other type require search:true. On an eligible type (enum/boolean/list/reference/date/datetime — not text/number), search:true ALSO automatically maintains a distinct-value counter for this field (no separate flag needed) — counts are returned under a `facets` key — {field: {value: count}} — only when the caller passes `?facets=true` (or `?facets=<thisFieldName>` to select just this field) on an UNFILTERED GET /{entity} (no query param other than limit/offset/facets); combining `facets=` with any real filter returns a clean 400 (FACETS_REQUIRES_NO_FILTERS), since the counts are a GLOBAL per-entity distribution that wouldn't describe a filtered result set. (default false)"
  3. Changed1 schema field changed
    • changedInput schema / properties / fields / items / properties / unique / description
      Previous value: -"Value must be unique within the tenant (default false)"New value: +"Value must be unique within the tenant, compared case-insensitively ('ABC-1' and 'abc-1' are the same value); a duplicate is a 409 DUPLICATE_VALUE, reported only after the value passes type/pattern/min/max validation (default false)"
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only state that this is a non-read-only, non-idempotent, non-destructive write. The description adds behavior the annotations cannot express: writes are non-atomic, partial success is normal, failures do not affect successes, each item carries its own HTTP status and error body, and a null status with NOT_ATTEMPTED signals a deadline cutoff requiring as-is resubmission.

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?

Long but dense and front-loaded: the bulk-vs-single contrast comes first, then the result contract, then the retry strategy. Every sentence carries operational information, though the parenthetical attribute list ('name, type, label, required, unique, search, targets, values, valueType, multiple, default_value, formula, computed, stored, ...') partly duplicates the schema.

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?

There is no output schema, and the description compensates fully by describing the return shape: a summary object with total/succeeded/failed/notAttempted and one entry per field in input order with _ref, status and body. For a non-atomic bulk mutation that is exactly the information an agent needs to recover correctly.

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 entity_id and fields parameters and every item property are already documented in the schema. The description adds only the framing that each item takes exactly create_field's arguments minus entity_id, which is useful orientation but does not supply new per-parameter meaning. Baseline 3 applies when the schema does the heavy lifting.

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?

Opens with a specific verb, resource and scope: 'Add MANY fields to one entity in a single call' and immediately contrasts that with 'one bulk POST /fields instead of one create_field per field.' An agent can distinguish this from the sibling create_field purely from the first sentence.

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 selection rule — 'Prefer this over repeated create_field calls whenever you are defining two or more fields on the same entity' — plus a prerequisite to read create_field's description first for type/cardinality/immutability rules, and a concrete retry protocol for partial failures.

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.

Resources