Skip to main content
Glama

Kovlet

Propose per-record rules for a Data Space

propose_rules
Idempotent

Propose the end-user access rules of a Data Space (the shape of InstantDB's instant.perms.ts, expressions in CEL): per table bind and allow with view/create/update/delete, plus _users (view), _files and _rooms (join). Nothing changes until a space owner approves the proposal in the Kovlet console (Schema proposals), as with POST /v1/spaces/{space}/rules/proposals. The document replaces the current rules as a whole: start from the rules that inspect_space_schema returns. Rules bind end users only; members, apps' own sessions and Machine Auth Keys keep their space roles. Closed by default: a table with no view rule is invisible to end users. Guide: /docs/rules.md

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": {
      "space": "<space>",
      "rules": "<rules>"
    },
    "name": "propose_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYesThe whole rules document, e.g. {"todos": {"bind": ["isOwner", "auth.id == data.owner"], "allow": {"view": "isOwner", "create": "auth.id == newData.owner", "update": "isOwner", "delete": "isOwner"}}}. Expressions read auth.id/auth.email/auth.is_guest, data (the stored row), newData (the row after a write), params, and data.ref('link.column'). "$default" applies to app tables without an entry.
spaceYesThe Data Space: its id (from list_spaces), slug or exact name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the proposal is inert until a space owner approves it, the document replaces the current rules wholesale rather than merging, rules bind end users only while members/apps/Machine Auth Keys retain space roles, and access is closed by default (a table with no view rule is invisible). The staged-approval note also reconciles the wholesale replacement with destructiveHint=false.

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?

A single dense paragraph that front-loads what is being proposed, then sequencing/approval, then semantics. Every sentence carries information, though semicolon-heavy parentheticals make it harder to scan than it could be.

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

Completeness4/5

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

For a nested-object, approval-gated mutation with no output schema, the description covers the workflow, the replacement semantics, the closed-by-default access model, and points to a guide doc. It omits what the call returns (e.g., a proposal id) and how validation failures surface, which an agent might want before invoking.

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% and the schema already documents the `rules` object with an example and CEL variables, so the baseline is 3. The description earns a 4 by adding the system-table surface not in the schema: `_users` (view), `_files` and `_rooms` (join), plus the per-table `bind`/`allow` framing and `$default` behavior.

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?

Names a specific verb and resource ("Propose the end-user access rules of a Data Space") and immediately characterizes the payload shape (instant.perms.ts with CEL expressions, per-table `bind` and `allow` with view/create/update/delete). This is distinguishable from `propose_schema_addition` (which changes schema, not access rules) without opening either schema.

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?

Gives a concrete workflow precondition: start from the `rules` returned by `inspect_space_schema`, and notes the proposal must be approved in the Kovlet console, mirroring POST /v1/spaces/{space}/rules/proposals. It does not explicitly state when to prefer this over `propose_schema_addition`, but the rules-vs-schema split is implied clearly enough by the description's scope.

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.