Knack MCP by usefulapi

v1.41.1
io.usefulapi/knack Checked 1 day ago Published 6 hours ago

Read, create, update and delete records; inspect objects, fields and schema in your Knack database.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

knack_get_application Get application schema

Fetch a Knack application's full schema/metadata — its objects (tables), fields, and scenes. Knack API: GET /applications/{app_id}. Returns the raw JSON as-is. app_id defaults to the configured KNACK_APPLICATION_ID.

ParameterTypeDescription
appIdstringOptional Knack Application ID; defaults to the configured KNACK_APPLICATION_ID.

knack_list_objects List objects (tables)

List an application's objects (tables) as a compact array [{ key, name, fieldCount }]. Convenience over GET /applications/{app_id}. app_id defaults to the configured KNACK_APPLICATION_ID.

ParameterTypeDescription
appIdstringOptional Knack Application ID; defaults to the configured KNACK_APPLICATION_ID.

knack_list_fields List fields for an object

List the fields of ONE object as [{ key, name, type, required }]. Fetches GET /applications/{app_id} and returns the fields of the object whose key === objectKey (e.g. "object_1"). app_id defaults to the configured KNACK_APPLICATION_ID.

ParameterTypeDescription
objectKey *stringThe Knack object (table) key, e.g. "object_1".
appIdstringOptional Knack Application ID; defaults to the configured KNACK_APPLICATION_ID.

knack_list_records List records

List an object's records. Knack API: GET /objects/{object_key}/records. Returns the paged envelope { total_pages, current_page, total_records, records: [...] } as-is. Records carry both field_x (formatted) and field_x_raw (structured) values. Page with page / rows_per_page (max 1000), sort with sort_field / sort_order, and filter with the `filters` object.

ParameterTypeDescription
objectKey *stringThe Knack object (table) key, e.g. "object_1".
filtersobjectOptional Knack filter object, JSON-stringified into the `filters` query param. Shape: { "match": "and"|"or", "rules": [{ "field": "field_1", "operator": "is", "value": "Acme" }] }. Common operators: c…
pageintegerPage number (default 1).
rows_per_pageintegerRecords per page (1-1000, default 25).
sort_fieldstringField key to sort by, e.g. "field_25".
sort_orderstringSort direction: "asc" or "desc".

knack_get_record Get a record

Fetch a single record by id. Knack API: GET /objects/{object_key}/records/{record_id}. Returns the bare record (with both field_x and field_x_raw values).

ParameterTypeDescription
objectKey *stringThe Knack object (table) key, e.g. "object_1".
recordId *stringThe record id (a hex string returned by Knack).

knack_request Raw Knack API GET

Power-user escape hatch: GET any Knack API path not wrapped by a dedicated tool (e.g. view-based reads). READ-ONLY — only GET is allowed. Path starts with a slash (e.g. "/objects/object_1/records"). Knack API: GET {path}.

ParameterTypeDescription
path *stringAPI path starting with a slash, e.g. "/objects/object_1/records".
queryobjectOptional query params object.

knack_create_record Create a record

MUTATES Knack data — creates a new record in an object. Knack API: POST /objects/{object_key}/records. Provide `fields` as an object keyed by field key, e.g. { "field_1": "Acme", "field_2": 100 }. Auto Increment / Formula / Equation fields are read-only and cannot be set. Returns the created record.

ParameterTypeDescription
fields *objectThe record's field values keyed by field key, e.g. { "field_1": "Acme", "field_2": 100 }. Auto Increment / Formula / Equation fields are read-only and cannot be written.
objectKey *stringThe Knack object (table) key, e.g. "object_1".

knack_update_record Update a record

MUTATES Knack data — updates a record. Knack API: PUT /objects/{object_key}/records/{record_id}. Provide `fields` as an object keyed by field key; only the included fields change, e.g. { "field_1": "Acme Inc" }. Auto Increment / Formula / Equation fields are read-only. Returns the updated record.

ParameterTypeDescription
fields *objectThe record's field values keyed by field key, e.g. { "field_1": "Acme", "field_2": 100 }. Auto Increment / Formula / Equation fields are read-only and cannot be written.
objectKey *stringThe Knack object (table) key, e.g. "object_1".
recordId *stringThe record id (a hex string returned by Knack).

knack_delete_record Delete a record

MUTATES Knack data — permanently DELETES a record (irreversible). Knack API: DELETE /objects/{object_key}/records/{record_id}. Knack returns { delete: true } on success.

ParameterTypeDescription
objectKey *stringThe Knack object (table) key, e.g. "object_1".
recordId *stringThe record id (a hex string returned by Knack).