Skip to main content
Glama
YourAppSpace MCP Server

YourAppSpace MCP Server

Official
by yourappspace

add_field

Adds a new field to an entity type, with support for standard data types or lookup fields via lookupEntity and lookupField. Use it to extend table schemas safely.

Instructions

Add a field to an entity type. Use fieldType or specify lookupEntity/lookupField for lookups.

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": {
      "tableName": "<tableName>",
      "fieldName": "<fieldName>"
    },
    "name": "add_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNameYesField name (required).
fieldTypeNoOptional data type. One of: INTEGER, DOUBLE, BOOLEAN, STRING, DATETIME, DATE, TIME, TEXT, BIGINT
tableNameYesTarget table name (required).
displayNameNoDisplay name (optional). Defaults to camelCaseToCaption(fieldName).
lookupFieldNoLookup field name (optional). Defaults to lookup entity PK.
lookupEntityNoLookup entity name for AUTOCOMPLETE fields (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of disclosing behavior for a schema-mutating operation. It says nothing about required permissions, whether the change is reversible, what happens to existing rows, or what occurs if the field already exists; the lookup/fieldType note largely restates what the schema already says.

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?

Two short sentences with the operation front-loaded and no wasted wording. Minor friction from calling the target an "entity type" while the required parameter is tableName, which makes the mapping slightly less immediate.

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

Completeness3/5

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

For a 6-parameter mutation tool with no annotations and no output schema, the description covers the core action and the lookup variant but leaves outcome and failure behavior unexplained. The rich schema compensates for parameter documentation, keeping this at minimum viable rather than inadequate.

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 is already documented, which sets the baseline at 3. The description adds a light conditional hint about choosing fieldType versus lookupEntity/lookupField, but adds no format, default, or interaction details beyond the schema.

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?

"Add a field to an entity type" gives a specific verb and resource, so the agent knows exactly what operation is performed. It does not distinguish itself from the sibling delete_field or explain how it relates to create_table, so it stops short of a 5.

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 second sentence implies usage of the lookup parameters for lookup-type fields, giving implied guidance on how to invoke it. There is no explicit when-to-use/when-not framing, no mention of prerequisites such as the table existing, and no routing guidance relative to delete_field or create_table.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.