Skip to main content
Glama

update_view_records

Updates one or more records through a Caspio view that match the WHERE clause. The payload is a flat JSON object containing only the fields to update (e.g., {'SaleStatus': 'Closed', 'SaleAmount': 1000}). Fields not included in the payload remain unchanged. In multi-table views, only fields from the primary table can be updated (check Editable=true in the view's field definitions). WHERE is required and supports Microsoft SQL Server syntax. A broad WHERE clause will update all matching records. To update a single record, filter by PK_ID or another unique field. Returns all updated records. IMPORTANT: field names are case-insensitive and must come from discover_views' field list -- never guess. Call discover_views first for any view not already discovered earlier in this conversation to get its viewId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whereYesWHERE clause (required). Determines which records are updated. Supports Microsoft SQL Server syntax. Examples: 'PK_ID=42'; 'SaleStatus=N'Open' AND ContactID=15'
viewIdYesView Id (obtained from discover_views, e.g. 'v12345') -- the view's name has no meaning for API calls; only the Id can be used here.
payloadYesA JSON object of field name/value pairs to update. Only include fields that should change. Example: {'SaleStatus': 'Closed', 'Comments': 'Deal finalized'}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses several important behaviors: fields absent from the payload are left unchanged, only primary-table fields are updatable in multi-table views, field names are case-insensitive, broad WHERE clauses update many records, and the tool returns all updated records. This is substantial behavioral context the schema and annotations do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence earns its place. It front-loads the core behavior, then adds warnings about broad updates, primary-table constraints, and the need to discover views before calling. No redundant phrasing or filler is present.

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?

Given the tool has three fully documented parameters, no output schema, and moderate complexity, the description is complete. It covers prerequisites, parameter semantics, record-selection behavior, a critical multi-table constraint, and return behavior. An agent has enough information to call the tool correctly without additional lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though the input schema already documents all three parameters, the description adds critical meaning: the payload must be a flat JSON object, omitted fields remain unchanged, WHERE supports MS SQL Server syntax, and field names must come from discover_views rather than being guessed. These additions go far beyond the schema's property descriptions.

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?

The description states a specific verb (updates), a resource (records through a Caspio view), and a precise mechanism (matching the WHERE clause). The phrase 'through a Caspio view' and reference to discover_views clearly differentiate it from table-level operations and view insert/delete siblings.

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?

The description gives clear operational guidance: WHERE is required, broad WHERE updates all matching records, single-record updates should filter by a unique field, and discover_views must be called first for undiscovered views. It does not explicitly exclude alternatives like update_table_records, but the context is strong enough for an agent to select this tool correctly.

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