2. Tools
Each CRUD operation is an MCP tool. The tools are generic: the target Collection is an argument.
MCP_TOOLS MUST
Servers MUST expose each operation they support as the tool in the table below, with the listed arguments. In crud.patch, crud.replace and crud.delete, the Client MUST send either id (for the ById operation) or query (for the ByQuery operation), and the Server MUST fail with the INVALID_INPUT code when both or neither are sent.
| Tool | Operation | Arguments |
|---|---|---|
crud.get |
get |
collection, id, fields?, expand? |
crud.list |
list |
collection, query?, fields?, sort?, page?, limit?, offset?, cursor?, expand? |
crud.listByView |
listByView (Views) |
collection, view, viewParams?, and the optional arguments of crud.list |
crud.create |
create |
collection, resources (a Resource or an array of Resources), fields? |
crud.clone |
clone |
collection, id, patch?, patchFormat?, newId? |
crud.patch |
patchById, patchByQuery |
collection, id or query, patch, patchFormat?, expectMatch?, ifMatch?, fields? |
crud.replace |
replaceById, replaceByQuery |
collection, id or query, resource, expectMatch?, denyUpsert?, ifMatch?, fields? |
crud.delete |
deleteById, deleteByQuery |
collection, id or query, expectMatch?, ifMatch? |
MCP_TOOL_ANNOTATIONS SHOULD
Tools SHOULD declare annotations: readOnlyHint: true for crud.get, crud.list and crud.listByView; destructiveHint: true for crud.replace and crud.delete; and idempotentHint: true for crud.replace and crud.delete.
Servers MAY also expose tools specific to a Collection (for example orders.list), with the same arguments except collection.
2.1 Arguments
Section titled “2.1 Arguments”MCP_ARGS_FORMATS MUST
query MUST be an UnQuery filter: a JSON object in the JSON syntax, or a string in the SQL syntax. fields, sort and expand MUST be field lists (Base section 3.3.1), as strings or as arrays of field paths. patchFormat MUST be json-patch (default) or merge-patch.
MCP_ARGS_ECSON MUST
Resources, patches, View parameters and query operands in arguments MUST be read as ECSON serializations.
expectMatch (Base PARAM_EXPECT_MATCH), denyUpsert (Base PARAM_DENY_UPSERT) and ifMatch (the expected _meta.hash, Metadata META_DOC_CONDITIONAL) MUST fail without writing, with the EXPECT_MISMATCH, UPSERT_DENIED and PRECONDITION_FAILED codes respectively.
2.2 Results
Section titled “2.2 Results”The Result MUST be returned in structuredContent without envelopes: the Resource for crud.get, an array of Resources (or of rows, for aggregated Views) for crud.list and crud.listByView, the written Resources for writes with the representation preference, and null otherwise. content SHOULD include a text item with the same value serialized as ECSON.
2.3 Views
Section titled “2.3 Views”MCP_VIEWS_COLLECTION MUST
The tools of section 2 MUST accept <collection>/@views as the collection argument, for the @views Collection of <collection> (Views VIEW_COLLECTION), with the View name as id.
MCP_VIEWS_TOOLS MAY
Servers MAY also expose the tools crud.views.get, crud.views.list, crud.views.create, crud.views.clone, crud.views.patch, crud.views.replace and crud.views.delete, equivalent to the tools of section 2 with collection: "<collection>/@views", whose collection argument is the Collection of the Views.
MCP_VIEW_TOOLS MAY
Servers MAY expose a tool for each View (for example orders.sales-by-month), equivalent to crud.listByView for that View, whose inputSchema has the View parameters as described by params, besides the optional arguments of crud.list. Such tools MUST NOT declare an outputSchema.
Source: lingodata/crud@bc225ba · specs/mcp/sections/02-tools.md · mcp 0.2.0 (draft) · MCP revision 2026-07-28
LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.