Skip to main content
Glama

Create Project

create_project

Create a new RationalBloks project (a PostgreSQL REST API) from a JSON schema, on one of your resource pools.

⚠️ CRITICAL RULES - READ BEFORE CREATING SCHEMA:

  1. FLAT FORMAT (REQUIRED): ✅ CORRECT: {"orders": {"total": {"type": "decimal", "precision": 10, "scale": 2}}} ❌ WRONG: {"orders": {"fields": {...}}} — never nest under 'fields'

  2. EVERY field has a "type": string (MUST have max_length), text, integer, decimal (precision, scale), boolean, uuid, date, datetime (NOT "timestamp"), json, and the PostgreSQL arrays uuid_array, integer_array, text_array, float_array (GIN-indexed: @> contains, <@ contained_by, && overlaps)

  3. AUTOMATIC FIELDS (DON'T define): id, created_at, updated_at, row_version

  4. USERS: NEVER create users/customers/employees tables with email or password. Link to the built-in app_users table: {"user_id": {"type": "uuid", "foreign_key": "app_users.id"}}. A table with such a field is owner-scoped: each user sees their own rows.

  5. FIELD OPTIONS: required, unique, default, enum, foreign_key ("table.id"), on_delete (cascade, set_null, restrict, no_action), nullable, index, description, write_only, computed. Advanced features (policy, computed columns, constraints, audit): get_schema_reference.

BACKEND ENGINE (backend_type): "python" (FastAPI, default) or "rust" (Axum: faster cold starts, lower memory).

WORKFLOW:

  1. get_template_schemas FIRST to see valid examples

  2. create_project with a cluster_id from list_clusters

  3. Poll get_job_status with the returned job_id (2-5 minutes)

  4. get_project_info gives the live URL While RationalBloks is being updated, the call is refused with 'RationalBloks is being updated': call it again in a few minutes.

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>",
      "schema": "<schema>",
      "cluster_id": "<cluster_id>"
    },
    "name": "create_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProject name
schemaYesJSON schema in FLAT format (table_name → field_name → properties). Every field MUST have a 'type' property. Use get_template_schemas to see valid examples.
cluster_idYesREQUIRED — BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Register a pool via the Resource Pools UI first, then pass its id here; to run the project on your own servers without a pool, create it as a self-host project in the portal instead.
backend_typeNoBackend engine: 'python' (FastAPI, default) or 'rust' (Axum, faster). Default: python

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / cluster_id / description
      Previous value: -"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Owned hosting is retired: a project we operate must run on your own infrastructure. Register a pool via the Resource Pools UI first, then pass its id here."New value: +"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Register a pool via the Resource Pools UI first, then pass its id here; to run the project on your own servers without a pool, create it as a self-host project in the portal instead."
  2. Changed1 schema field changed
    • removedInput schema / properties / description
      Removed value: -{
      -  "description": "Optional project description",
      -  "type": "string"
      -}
  3. Changed2 schema fields changed
    • changedInput schema / properties / cluster_id / description
      Previous value: -"Optional BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Omit to deploy on RationalBloks-hosted infrastructure."New value: +"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Owned hosting is retired: a project we operate must run on your own infrastructure. Register a pool via the Resource Pools UI first, then pass its id here."
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "schema"
      -]New value: +[
      +  "name",
      +  "schema",
      +  "cluster_id"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / cluster_id
      Added value: +{
      +  "description": "Optional BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Omit to deploy on RationalBloks-hosted infrastructure.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / backend_type
      Added value: +{
      +  "description": "Backend engine: 'python' (FastAPI, default) or 'rust' (Axum, faster). Default: python",
      +  "enum": [
      +    "python",
      +    "rust"
      +  ],
      +  "type": "string"
      +}
  6. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare non-readOnly, non-destructive, non-idempotent, closed-world, so the safety profile is set. The description adds substantial context beyond that: a job_id is returned and must be polled for 2-5 minutes, tables referencing app_users.id become owner-scoped per-user rows, automatic fields (id, created_at, updated_at, row_version) are injected, and calls may be refused during platform updates. It does not explain what happens on name collision or what a failed job leaves behind, which keeps it from 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?

Front-loaded with purpose, then cleanly sectioned into numbered creation rules and a numbered workflow, so the agent can scan to what it needs. It is long, and the maintenance-refusal note is awkwardly appended to the end of workflow step 4 rather than standing on its own, but almost every line carries actionable detail.

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?

For a write tool whose real complexity lies in the schema body, the definition covers format, allowed types, auto-managed fields, the users-table prohibition and owner-scoping implication, and the full post-call lifecycle through to the live URL. Nothing an agent needs in order to call it correctly and follow up is missing.

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, but the description adds real meaning the schema does not: the required FLAT table→field→properties shape, mandated type keywords (datetime not timestamp, max_length on string), the GIN-index operator semantics, the enumerated field options (on_delete values, write_only, computed), and the python-vs-rust tradeoff for backend_type. Only cluster_id guidance is largely duplicated from the schema.

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 output: 'Create a new RationalBloks project (a PostgreSQL REST API) from a JSON schema, on one of your resource pools.' The input source (JSON schema) and target (resource pool) are both stated, which distinguishes it from the graph/mutation siblings like create_graph_project and deploy_* tools.

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?

Provides an explicit ordered workflow: get_template_schemas FIRST, then create_project with a cluster_id from list_clusters, then poll get_job_status, then get_project_info for the live URL. It also names an alternative path (create it as a self-host project in the portal when no pool exists) and gives the retry condition for the maintenance refusal, so when/when-not is fully covered.

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.