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_entity

Define a new data entity under a project. CRUD endpoints at {base}/{customer_slug}/{project_slug}/{entity_name} activate immediately. The key must be a unique 3-character UPPERCASE string (e.g. 'ORD' for orders). Pass fields to create its fields in the same call (one bulk request) instead of a create_field per field.

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": {
      "name": "<name>",
      "key": "<key>"
    },
    "name": "create_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesUnique 3-character UPPERCASE ID prefix. Example: 'ORD' produces ORD1, ORD2.
nameYesSlug-style entity name used in URL paths. Lowercase alphanumeric with hyphens/underscores, 3-50 chars. Example: 'orders', 'line-items'
labelNoSingular display name, e.g. 'Order'
fieldsNoOptional: the entity's fields, created in one bulk call right after the entity itself — the normal way to define an entity. Each item is shaped like create_field's arguments (minus entity_id). When given, the result is {"entity": <entity record>, "fields": <create_fields result>}; the entity is kept even if some fields failed — fix those with create_fields.
methodsNoAllowed HTTP methods. Defaults to all. Does not restrict any custom endpoints (create_endpoint) attached to this entity — a route's own method is independent of this list.
project_idNoProject record ID (e.g. 'PRJ3'). Get it from whoami or list_projects.
descriptionNoFree-text description shown in OpenAPI spec
plural_labelNoPlural display name, e.g. 'Orders'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 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"
    • changedInput schema / properties / project_id / description
      Previous value: -"Project record ID (e.g. 'PRJ3'). Optional if whoami returned a default_project_id — falls back to that; pass explicitly to target a different project. Otherwise get it from whoami or list_projects."New value: +"Project record ID (e.g. 'PRJ3'). Get it from whoami or list_projects."
  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.1/5.0
Behavior4/5

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

Annotations already establish a non-read-only, non-destructive create. The description adds real behavioral context beyond them: CRUD endpoints go live immediately at the stated path, the key must be globally unique, and the field-creation portion is a single bulk request. It does not mention permissions or rollback semantics, keeping it short of a 5.

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?

Three front-loaded sentences: purpose, side effect, then the two constraints an agent most needs. Nearly every clause earns its place, though the key-format sentence largely repeats what the schema already says.

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 an 8-parameter creation tool with full schema coverage and no output schema, the description covers the purpose, the immediate side effect, and the recommended bulk-fields path. Remaining gaps (permissions, what the response contains) are covered by the schema or are minor.

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 every parameter including the nested field object is already documented in the schema. The description restates the key format (3-char UPPERCASE) and points at the bulk `fields` behavior, adding only marginal meaning over the structured data.

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?

"Define a new data entity under a project" states a specific verb and resource, and the description goes on to name a sibling (create_field) and explain the bulk alternative. An agent can distinguish this from create_field/create_fields without opening either 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?

It explicitly routes the agent: pass `fields` to create fields in one bulk request "instead of a create_field per field," which is a clear when-to-use-this-instead signal. It stops short of stating exclusions (e.g. that it cannot modify or remove an entity), so it is strong but not fully exhaustive.

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