{
  "schema": "lattice.agents/api/v1",
  "surface": "mcp",
  "packages": [
    "Orleans.Lattice.Api.Mcp",
    "Orleans.Lattice.Api.Mcp.Apps",
    "Orleans.Lattice.Api.Mcp.RepoContext",
    "Orleans.Lattice.Api.Mcp.RepoContext.Replication",
    "Orleans.Lattice.Api.Mcp.Telemetry",
    "Orleans.Lattice.Api.Mcp.Telemetry.Azure"
  ],
  "sources": [
    "src/lattice.api.mcp/LatticeMcpServiceCollectionExtensions.cs#AddLatticeMcp",
    "src/lattice.api.mcp/LatticeMcpServiceCollectionExtensions.cs#MapLatticeMcp",
    "src/lattice.api.mcp/Discovery/CredentialStampingTool.cs#CredentialStampingTool.InvokeAsync",
    "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.BuildSessionPlanAsync",
    "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#AddRepoContextTools",
    "src/lattice.api.mcp.telemetry/LatticeMcpTelemetryServiceCollectionExtensions.cs#AddTelemetryTools",
    "docs/lattice.api.mcp/tools.md",
    "docs/lattice.api.mcp/security.md",
    "docs/lattice.api.mcp.repocontext/tools.md",
    "docs/lattice.api.mcp.telemetry/tools.md",
    "src/lattice.api.mcp/Discovery/ILatticeApiMcpAppToolSource.cs#ILatticeApiMcpAppToolSource",
    "src/lattice.api.mcp.apps/LatticeMcpAppsServiceCollectionExtensions.cs#AddAppMcpTools",
    "src/lattice.api.mcp.apps/AppMcpToolSource.cs#AppMcpToolSource.GetPermittedToolsAsync",
    "src/lattice.api.mcp.apps/AppMcpToolActivation.cs#AppMcpToolActivation.Pair",
    "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
    "src/lattice.apps/Registry/AppRoleGate.cs#AppRoleGate.IsHeldAsync",
    "src/lattice.api.mcp.apps/AppMcpToolName.cs#AppMcpToolName.Compose",
    "src/lattice.api.mcp.apps/IAppMcpToolProvider.cs#IAppMcpToolProvider",
    "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
    "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
    "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
    "docs/lattice.api.mcp.apps/README.md",
    "src/lattice.api.mcp/Tools/Backup/McpBackupOperation.cs",
    "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
    "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs"
  ],
  "in_process": {
    "interface": "ILatticeApiMcpToolGroup",
    "registration": {
      "server": "AddLatticeMcp registers the streamable-HTTP MCP server and installs per-session permission-scoped tool discovery.",
      "endpoint": "MapLatticeMcp maps the MCP transport at LatticeApiMcpOptions.TransportPattern and applies RequireAuthorization by default.",
      "transport": "ModelContextProtocol streamable HTTP via AddMcpServer().WithHttpTransport().",
      "authorization_gate": "The per-invocation wrapper around every advertised tool enforces ILatticeApiMcpAuthorizer at invocation, stamps caller credentials and active tenant, resolves optional region, and translates faults. RequireAuthorization controls endpoint authentication only; it does not bypass the default-deny authorizer.",
      "unknown_argument_rejection": "The per-invocation wrapper rejects undeclared tool arguments as client errors and echoes only sanitized, length-capped argument names with a bounded count.",
      "tool_modules": [
        "AddAppMcpTools",
        "AddAuthTools",
        "AddBackupTools",
        "AddDataTools",
        "AddReplicationTools",
        "AddRepoContextTools",
        "AddStateTools",
        "AddTelemetryTools",
        "AddTenantAdminTools",
        "AddTenantSelfAwarenessTools",
        "AddTreeAdminTools"
      ],
      "write_opt_in": "Mutating tool modules are contributed only by their enableWrites, enableControl, enableAdministration, enableSchemaControl, enableLifecycle, or equivalent opt-in flags.",
      "region_parameter": "The per-invocation wrapper advertises an optional region string argument on every tool. Facade-backed tools resolve it through the group router and answer an unknown or unserved region as an invalid-argument client error result (isError true) rather than throwing, and throw an McpException only when a peer region fails identity verification; app-contributed tools are in-process and accept only the current region.",
      "app_tool_surface": "AddAppMcpTools registers the app tool source. Enabled app manifests declare app-local tools, providers implement those names, and the session advertises permitted tools as {slug}_{tool}; app tools are omitted from lattice_capabilities.",
      "app_tool_authorization": "The app tool source offers an app tool only when the caller holds the tool's declared role by binding (a group in its closure is bound to the role) and the access gate, asked only after the binding holds, refuses none of the role's operations on at least one resolved role scope; the caller's other rules never add a role. The namespaced app tool repeats the same check at invocation.",
      "app_tool_pairing": "App tool activation hard-fails an app's whole tool activation when a declared tool lacks an implementation, an implementation is undeclared, a local name is duplicated, or the slug is reserved."
    },
    "source": "src/lattice.api.mcp/Discovery/ILatticeApiMcpToolGroup.cs#ILatticeApiMcpToolGroup"
  },
  "grpc": {
    "service": null,
    "methods_source": null,
    "marshalling": "MCP tools are structured JSON over streamable HTTP; remote facade routing may use gRPC behind the MCP binding but no MCP operation is itself a gRPC method.",
    "metadata": [
      {
        "name": "authorization",
        "purpose": "CredentialHeaderName defaults to authorization and is bridged to the ambient Lattice credential.",
        "source": "src/lattice.api.mcp/LatticeApiMcpOptions.cs#CredentialHeaderName"
      },
      {
        "name": "lattice-active-tenant",
        "purpose": "ActiveTenantHeaderName defaults to lattice-active-tenant and is bridged to the ambient active tenant.",
        "source": "src/lattice.api.mcp/LatticeApiMcpOptions.cs#ActiveTenantHeaderName"
      }
    ],
    "auth": {
      "interceptor": "CredentialStampingTool",
      "authorizer": "ILatticeApiMcpAuthorizer",
      "decision": "Default-deny at endpoint, advertisement, invocation, and facade access gates.",
      "source": "src/lattice.api.mcp/Discovery/CredentialStampingTool.cs#CredentialStampingTool.InvokeAsync"
    }
  },
  "availability": {
    "in_process": [
      {
        "registration": "AddLatticeMcp",
        "package": "Orleans.Lattice.Api.Mcp",
        "provides": [
          "ILatticeApiMcpToolGroup"
        ],
        "source": "src/lattice.api.mcp/LatticeMcpServiceCollectionExtensions.cs#LatticeMcpServiceCollectionExtensions.AddLatticeMcp"
      },
      {
        "registration": "MapLatticeMcp",
        "package": "Orleans.Lattice.Api.Mcp",
        "source": "src/lattice.api.mcp/LatticeMcpServiceCollectionExtensions.cs#LatticeMcpServiceCollectionExtensions.MapLatticeMcp"
      }
    ],
    "requires": [],
    "grpc_server": [],
    "grpc_client": [],
    "absent": null,
    "session_filtering": {
      "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.BuildSessionPlanAsync",
      "statement": "For each MCP session, the session configurator resolves the caller credential and effective permissions, adds lattice_capabilities for authenticated callers, then advertises only group/app tools whose group grant, per-tool operation minimum, topology support, and authorizer check all pass."
    },
    "capabilities_report": {
      "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.BuildCapabilities",
      "statement": "lattice_capabilities reports the caller-scoped availability and endpoint for each registered facade group plus cluster identity; app-contributed tools are intentionally omitted from that report."
    }
  },
  "types": {
    "McpLatticeOperation": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Kind",
          "type": "string",
          "required": true
        },
        {
          "name": "TreeIds",
          "type": "IReadOnlyList<string>",
          "required": false
        },
        {
          "name": "State",
          "type": "string",
          "required": true
        },
        {
          "name": "Phase",
          "type": "string",
          "required": true
        },
        {
          "name": "PhaseIndex",
          "type": "int?",
          "required": false
        },
        {
          "name": "PhaseCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "CompletedUnits",
          "type": "long",
          "required": false
        },
        {
          "name": "TotalUnits",
          "type": "long?",
          "required": false
        },
        {
          "name": "UnitName",
          "type": "string?",
          "required": false
        },
        {
          "name": "StartedAtUtc",
          "type": "DateTimeOffset",
          "required": false
        },
        {
          "name": "FinishedAtUtc",
          "type": "DateTimeOffset?",
          "required": false
        },
        {
          "name": "FailureReason",
          "type": "string?",
          "required": false
        },
        {
          "name": "ResultReference",
          "type": "string?",
          "required": false
        },
        {
          "name": "Result",
          "type": "IReadOnlyDictionary<string, string>",
          "required": false
        },
        {
          "name": "CancelRequested",
          "type": "bool",
          "required": false
        }
      ],
      "source": "src/lattice.api.mcp/Tools/Operations/McpLatticeOperation.cs#McpLatticeOperation"
    },
    "McpLatticeOperationHandle": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Kind",
          "type": "string",
          "required": true
        },
        {
          "name": "TreeIds",
          "type": "IReadOnlyList<string>",
          "required": false
        },
        {
          "name": "Created",
          "type": "bool",
          "required": false
        },
        {
          "name": "StatusTool",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.mcp/Tools/Operations/McpLatticeOperationHandle.cs#McpLatticeOperationHandle"
    },
    "McpLatticeOperationPage": {
      "kind": "record",
      "fields": [
        {
          "name": "Operations",
          "type": "IReadOnlyList<McpLatticeOperation>",
          "required": false
        },
        {
          "name": "NextPageToken",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.mcp/Tools/Operations/McpLatticeOperationPage.cs#McpLatticeOperationPage"
    },
    "McpLatticeOperationResult": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Found",
          "type": "bool",
          "required": false
        },
        {
          "name": "Operation",
          "type": "McpLatticeOperation?",
          "required": false
        }
      ],
      "source": "src/lattice.api.mcp/Tools/Operations/McpLatticeOperationResult.cs#McpLatticeOperationResult"
    },
    "McpToolGroup": {
      "kind": "enum",
      "values": [
        "auth",
        "backup",
        "data",
        "region",
        "replication",
        "repocontext",
        "state",
        "telemetry",
        "tenant",
        "treeadmin"
      ],
      "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpGroup.cs#LatticeApiMcpGroup"
    },
    "McpToolRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "arguments",
          "type": "object",
          "required": false,
          "notes": "Tool-specific JSON object containing the parameters listed for each operation."
        }
      ],
      "source": "src/lattice.api.mcp/Discovery/CredentialStampingTool.cs#CredentialStampingTool.InvokeAsync"
    },
    "McpToolResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "structuredContent",
          "type": "object",
          "required": false,
          "notes": "Structured result produced from the handler return value when UseStructuredContent is true."
        }
      ],
      "source": "src/lattice.api.mcp/Serialization/LatticeApiMcpToolSerialization.cs#LatticeApiMcpToolSerialization"
    },
    "McpTenantRegionStatusResult": {
      "kind": "record",
      "fields": [
        {
          "name": "TenantId",
          "type": "string",
          "required": true
        },
        {
          "name": "Regions",
          "type": "IReadOnlyList<McpTenantRegionStatusRow>",
          "required": true
        }
      ],
      "source": "src/lattice.api.mcp/Tools/TenantAdmin/McpTenantRegionStatusResult.cs"
    },
    "McpTenantRegionStatusRow": {
      "kind": "record",
      "fields": [
        {
          "name": "RegionId",
          "type": "string",
          "required": true
        },
        {
          "name": "Status",
          "type": "string",
          "required": true
        },
        {
          "name": "IsAllowed",
          "type": "bool",
          "required": true
        },
        {
          "name": "BackfillProgress",
          "type": "TenantRegionBackfillProgress?",
          "required": false
        }
      ],
      "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/McpTenantRegionStatusRow.cs"
    },
    "TenantRegionBackfillProgress": {
      "kind": "record",
      "fields": [
        {
          "name": "Phase",
          "type": "string",
          "required": true
        },
        {
          "name": "StallReason",
          "type": "string?",
          "required": false
        },
        {
          "name": "Trees",
          "type": "IReadOnlyList<TenantRegionBackfillTreeProgress>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TenantAdmin/Model/TenantRegionBackfillProgress.cs"
    },
    "TenantRegionBackfillTreeProgress": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Phase",
          "type": "string",
          "required": true
        },
        {
          "name": "EntriesApplied",
          "type": "long",
          "required": false
        },
        {
          "name": "SourceClusterId",
          "type": "string?",
          "required": false
        },
        {
          "name": "ReadFenced",
          "type": "bool",
          "required": false
        },
        {
          "name": "PendingDeadLetters",
          "type": "int",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TenantAdmin/Model/TenantRegionBackfillTreeProgress.cs"
    }
  },
  "operations": [
    {
      "id": "lattice_auth_add_member",
      "in_process": "AuthToolHandlers.AddMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#add-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "memberId",
          "type": "string",
          "required": true
        },
        {
          "name": "memberKind",
          "type": "MembershipMemberKind",
          "required": false,
          "default": "MembershipMemberKind.User"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "void",
        "shape": "Structured JSON projection of void returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; configure retries on the caller or CallInvoker.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Adds a membership edge and is documented idempotent.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Each membership edge is stored as independent forward and reverse ILattice rows; add writes marker rows and remove tombstones them, so concurrent add and remove resolve per row by the ILattice per-key LWW HLC merge.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.AddMemberAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_effective_permissions",
      "in_process": "AuthToolHandlers.EffectivePermissionsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#effective-permissions",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "subjectKind",
          "type": "LatticeSubjectSelectorKind",
          "required": false,
          "default": "LatticeSubjectSelectorKind.User",
          "notes": "Whether subjectId names a user or a group. Set to Group to resolve a group subject's rules (the group and its ancestors); defaults to User."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthEffectivePermissions",
        "shape": "Structured JSON projection of AuthEffectivePermissions returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only policy introspection.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns the live policy store view at evaluation time.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.EffectivePermissionsAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_explain",
      "in_process": "AuthToolHandlers.ExplainAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#explain",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "operation",
          "type": "LatticeOperation",
          "required": true
        },
        {
          "name": "scopeKind",
          "type": "LatticeScopeKind",
          "required": true
        },
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "subjectKind",
          "type": "LatticeSubjectSelectorKind",
          "required": false,
          "default": "LatticeSubjectSelectorKind.User",
          "notes": "Whether subjectId names a user or a group. Set to Group to explain a group subject. User group closure is resolved from the membership directory only, not from token-asserted or claims-projected groups."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthExplanation",
        "shape": "Structured JSON projection of AuthExplanation returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only decision explanation.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Verdict is produced by the same access gate the data plane consults.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ExplainAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_get_group",
      "in_process": "AuthToolHandlers.GetGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#get-group",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthGroup?",
        "shape": "Structured JSON projection of AuthGroup? returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only group lookup.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns null when no group exists at read time.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.GetGroupAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_get_rule",
      "in_process": "AuthToolHandlers.GetRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#get-rule",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ruleId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeAuthorizationRule?",
        "shape": "Structured JSON projection of LatticeAuthorizationRule? returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only rule lookup.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns null when no rule exists at read time.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.GetRuleAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_list_group_members",
      "in_process": "AuthToolHandlers.ListGroupMembersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#list-group-members",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthGroupMembersResult",
        "shape": "Structured JSON projection of AuthGroupMembersResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only direct member scan.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns direct members in ascending ordinal order.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ListGroupMembersAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_list_groups",
      "in_process": "AuthToolHandlers.ListGroupsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#list-groups",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "includeTenantGroups",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, the page also lists tenant-owned groups (ids under the reserved 't/' namespace) alongside the cluster groups."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthGroupPage",
        "shape": "Structured JSON projection of AuthGroupPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only group catalog page.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Reads one page of the group catalog in ascending group-id order.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ListGroupsAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_list_rules",
      "in_process": "AuthToolHandlers.ListRulesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#list-rules",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthRulePage",
        "shape": "Structured JSON projection of AuthRulePage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only rule catalog page.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Reads one page of every rule ordered by governed tree id and rule id; ActiveTenantOnly narrows the listing before paging to rules governing the caller active tenant's own trees.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ListRulesAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_list_rules_for_tree",
      "in_process": "AuthToolHandlers.ListRulesForTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#list-rules-for-tree",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthRulePage",
        "shape": "Structured JSON projection of AuthRulePage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tree policy page including wildcard rules.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns exact tree rules and cluster-wide wildcard rules that effectively govern it.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ListRulesForTreeAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_list_subject_groups",
      "in_process": "AuthToolHandlers.ListSubjectGroupsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#list-subject-groups",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "memberId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthSubjectGroupsResult",
        "shape": "Structured JSON projection of AuthSubjectGroupsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only operation; no facade retry policy is defined.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only transitive group scan.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Returns the transitive set of group ids in ascending ordinal order.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.ListSubjectGroupsAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_put_rule",
      "in_process": "AuthToolHandlers.PutRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#put-rule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "ruleId",
          "type": "string",
          "required": true
        },
        {
          "name": "subjectKind",
          "type": "LatticeSubjectSelectorKind",
          "required": true
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "scopeKind",
          "type": "LatticeScopeKind",
          "required": true
        },
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "operations",
          "type": "LatticeOperation",
          "required": true
        },
        {
          "name": "effect",
          "type": "LatticeEffect",
          "required": true
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "May be subject-relative: {subject} (the caller's subject id) or {group:<prefix>} (each of the caller's groups starting with <prefix>, prefix stripped), each followed by a literal delimiter such as '/', resolved per caller at decision time."
        },
        {
          "name": "condition",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeAuthorizationRule",
        "shape": "Structured JSON projection of LatticeAuthorizationRule returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe only when resubmitting the same replacement rule.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Creates or replaces an authorization rule.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Rules are stored as ILattice LWW rows keyed by governed tree id and rule id; concurrent replacements of the same rule id resolve by the row with the highest HLC.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.PutRuleAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_remove_group",
      "in_process": "AuthToolHandlers.RemoveGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#remove-group",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "void",
        "shape": "Structured JSON projection of void returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region; a group id starting with t/ is removed only through the tenant directory facade (LatticeTenantOwnedGroupException)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; the operation is a no-op when the group is absent.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removes a group record and is a no-op when no such group exists; membership edges naming the group are not removed.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Group records are ILattice LWW rows; concurrent remove and upsert of the same group resolve by the highest HLC, with the delete tombstone winning an exact HLC tie.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.RemoveGroupAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_remove_member",
      "in_process": "AuthToolHandlers.RemoveMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#remove-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "memberId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "void",
        "shape": "Structured JSON projection of void returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; the operation is a no-op when the edge is absent.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removes a membership edge and is a no-op when the edge does not exist.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Each membership edge is stored as independent forward and reverse ILattice rows; add writes marker rows and remove tombstones them, so concurrent add and remove resolve per row by the ILattice per-key LWW HLC merge.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.RemoveMemberAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_remove_rule",
      "in_process": "AuthToolHandlers.RemoveRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#remove-rule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ruleId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "bool",
        "shape": "Structured JSON projection of bool returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; repeat calls return Removed false after the first removal.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removes a rule and reports whether a rule was removed.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Rules are stored as ILattice LWW rows keyed by governed tree id and rule id; concurrent remove and put of the same rule resolve by the highest HLC, with the delete tombstone winning an exact HLC tie. A tenant: rule is removed under system origin as an operator break-glass action.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.RemoveRuleAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_auth_upsert_group",
      "in_process": "AuthToolHandlers.UpsertGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/auth.json#upsert-group",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddAuthTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableAuthAdministration",
          "parameter": "enableAdministration",
          "source": "src/lattice.api.mcp/Tools/Auth/LatticeMcpServiceCollectionExtensions.Auth.cs#LatticeMcpServiceCollectionExtensions.AddAuthTools"
        },
        "requires": [
          "AddLatticeAuthApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      },
      "request": [
        {
          "name": "groupId",
          "type": "string",
          "required": true
        },
        {
          "name": "displayName",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "AuthGroup",
        "shape": "Structured JSON projection of AuthGroup returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe only when resubmitting the same replacement group.",
        "source": "src/lattice.api.auth.grpc/LatticeAuthApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Creates or replaces a group record.",
        "source": "src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs"
      },
      "concurrency": {
        "rule": "Group records are ILattice LWW rows; concurrent replacements of the same group resolve by the row with the highest HLC.",
        "source": "src/lattice/Primitives/LwwValue.cs#LwwValue.Merge"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Auth/AuthToolHandlers.cs#AuthToolHandlers.UpsertGroupAsync",
        "src/lattice.api.mcp/Tools/Auth/AuthToolGroup.cs#AuthToolGroup"
      ]
    },
    {
      "id": "lattice_backup_delete",
      "in_process": "BackupToolInvocations.DeleteBackupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#delete-backup",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateDeleteTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed backup id to delete."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupDeleteResult",
        "shape": "Structured JSON projection of McpBackupDeleteResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Reissuing is harmless and completes an interrupted delete: the catalog row is removed first and the sink manifest last, so a retry after an interruption finds the sink manifest, deletes the remaining artifacts and the manifest, and returns true.",
        "source": "src/lattice.api.backup/LatticeBackupControl.cs#LatticeBackupControl.DeleteBackupAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "False means nothing was deleted: the backup did not exist, or a capture or catalog rebuild listed it again while the delete ran and it was kept; re-read it and delete again if it is still listed. A delete interrupted after its catalog row was removed is completed by a retry, which reads the backup from its surviving sink manifest.",
        "source": "src/lattice.api.backup/LatticeBackupControl.cs#LatticeBackupControl.DeleteBackupAsync"
      },
      "concurrency": {
        "rule": "Delete removes the catalog row and reserves the backup id in the scope's scheduler grain, so no retention pass or capture acts on that id until it finishes; overlapping deletes of one id each hold their own reservation. It then deletes the backup's unshared artifacts outside the grain, keeping every artifact still referenced by another catalogued manifest, and finally deletes the sink manifest in the grain, only while no catalog row lists the id and the manifest is still the deleting scope's.",
        "source": "src/lattice.api.backup/LatticeBackupControl.cs#LatticeBackupControl.DeleteBackupAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.DeleteBackupAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_describe",
      "in_process": "BackupToolInvocations.DescribeBackupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#describe-backup",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateDescribeTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed backup id to describe."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupChain",
        "shape": "Structured JSON projection of McpBackupChain returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#DescribeBackupAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Missing backup returns null or Found=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#DescribeBackupAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#DescribeBackupAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.DescribeBackupAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_export_artifact",
      "in_process": "BackupToolInvocations.ExportArtifactAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#export-artifact",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateExportArtifactTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The owning backup id."
        },
        {
          "name": "artifactId",
          "type": "string",
          "required": true,
          "notes": "The artifact id to export."
        },
        {
          "name": "chunkOffset",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Resume cursor: the nextChunkOffset from a previous page; 0 starts from the beginning."
        },
        {
          "name": "maxBytes",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Byte budget for this page; <= 0 uses the server default (256 KiB), capped at 4 MiB."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupArtifactPage",
        "shape": "Structured JSON projection of McpBackupArtifactPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ExportArtifactAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only bounded stream.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ExportArtifactAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ExportArtifactAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.ExportArtifactAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_inventory",
      "in_process": "BackupToolInvocations.GetInventoryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#get-inventory",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateInventoryTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupInventory",
        "shape": "Structured JSON projection of McpBackupInventory returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetInventoryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only inventory summary.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetInventoryAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetInventoryAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.GetInventoryAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_list",
      "in_process": "BackupToolInvocations.ListBackupsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#list-backups",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateListTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum manifests per page; <= 0 uses the server default."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation cursor from a previous page's nextPageToken; null starts from the beginning."
        },
        {
          "name": "orderByCreatedDescending",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, order newest-first by capture time instead of by backup id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupCatalogPage",
        "shape": "Structured JSON projection of McpBackupCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ListBackupsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Cursor-resumable read-only page.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ListBackupsAsync"
      },
      "concurrency": {
        "rule": "ListBackups is a cursor-resumable read-only page; ActiveTenantOnly narrows the catalog before paging to backups of trees owned by the caller active tenant.",
        "source": "src/lattice.api.abstractions/Backup/Model/BackupCatalogRequest.cs#BackupCatalogRequest.ActiveTenantOnly"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.ListBackupsAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_operation_cancel",
      "in_process": "BackupToolInvocations.CancelOperationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#cancel-backup-operation",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationCancelTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id to cancel."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpBackupOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying the same cancel request is safe; terminal operations are returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Cancellation records a durable request once; repeated requests keep the same requested state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Cancel records a request; the operation stays non-terminal until the running work observes it at a heartbeat or progress report.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationCancelTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_operation_list",
      "in_process": "BackupToolInvocations.ListOperationsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#list-backup-operations",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationListTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum operations per page; <= 0 uses the server default."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation cursor."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpBackupOperationPage",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only paged list; retry the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Listings are newest-first, scoped to visible backup operation kinds, and include terminal operations until retention prunes them.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationListTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_operation_status",
      "in_process": "BackupToolInvocations.GetOperationStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#get-backup-operation-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationStatusTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/McpBackupOperationHandle.cs#McpBackupOperationHandle"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from a start tool handle."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpBackupOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to visible backup operation kinds and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateOperationStatusTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_revert_restore",
      "in_process": "BackupToolInvocations.RevertRestoreAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#revert-restore",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateRevertRestoreTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The backup id from the restore result being reverted."
        },
        {
          "name": "targetTreeId",
          "type": "string",
          "required": true,
          "notes": "The target tree id from the restore result being reverted."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from the restore result being reverted."
        },
        {
          "name": "mode",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The restore mode from the restore result: InPlace or ShadowCutover."
        },
        {
          "name": "manifestChain",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "The base-first replayed chain from the restore result."
        },
        {
          "name": "entriesApplied",
          "type": "long",
          "required": false,
          "default": "0",
          "notes": "The entries-applied count from the restore result."
        },
        {
          "name": "shadowPhysicalTreeId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The shadow physical tree id from the restore result (shadow-cutover only)."
        },
        {
          "name": "previousPhysicalTreeId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The previous physical tree id from the restore result (shadow-cutover only)."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupRevertResult",
        "shape": "Structured JSON projection of McpBackupRevertResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RevertRestoreAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Shadow-cutover revert is idempotent.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RevertRestoreAsync"
      },
      "concurrency": {
        "rule": "Before alias commit or revert, each caller-supplied physical tree id is re-resolved against registry provenance and must be the target itself, a restore shadow of the target, the target current physical tree, or the pre-restore copy recorded server-side at the cutover of the target current, not-yet-final restore.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#AssertPhysicalBelongsToTargetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.RevertRestoreAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_scope_status",
      "in_process": "BackupToolInvocations.GetScopeStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#get-scope-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateScopeStatusTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The captured tree id of the scope."
        },
        {
          "name": "scopeKind",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Scope extent: WholeTree (default), Prefix, or Key."
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The exact key or key prefix for a Prefix/Key scope; null for WholeTree."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupScopeStatus",
        "shape": "Structured JSON projection of McpBackupScopeStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetScopeStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only scope status.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetScopeStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetScopeStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.GetScopeStatusAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_cancel",
      "in_process": "BackupToolInvocations.CancelBackupSetScheduleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#cancel-backup-set-schedule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleCancelTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The backup-set schedule's name."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetScheduleActionResult",
        "shape": "Structured JSON projection of McpBackupSetScheduleActionResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#CancelBackupSetScheduleAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pausing is idempotent; false means no schedule has the name. Retained sets stay restorable.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#CancelBackupSetScheduleAsync"
      },
      "concurrency": {
        "rule": "Authorized like schedule-backup-set, against the schedule's recorded member trees.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#CancelBackupSetScheduleAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.CancelBackupSetScheduleAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_get",
      "in_process": "BackupToolInvocations.GetBackupSetScheduleStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#get-backup-set-schedule-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleGetTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The backup-set schedule's name."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetSchedule",
        "shape": "Structured JSON projection of McpBackupSetSchedule returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetBackupSetScheduleStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only schedule status.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetBackupSetScheduleStatusAsync"
      },
      "concurrency": {
        "rule": "Authorized like schedule-backup-set, against the schedule's recorded member trees.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#GetBackupSetScheduleStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.GetBackupSetScheduleStatusAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_list",
      "in_process": "BackupToolInvocations.ListBackupSetSchedulesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#list-backup-set-schedules",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleListTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetScheduleList",
        "shape": "Structured JSON projection of McpBackupSetScheduleList returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ListBackupSetSchedulesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only listing of the caller's tenant; a schedule the caller may not read is omitted rather than failing the listing.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ListBackupSetSchedulesAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ListBackupSetSchedulesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.ListBackupSetSchedulesAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_remove",
      "in_process": "BackupToolInvocations.RemoveBackupSetScheduleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#remove-backup-set-schedule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleRemoveTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The backup-set schedule's name."
        },
        {
          "name": "deleteRetainedSets",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Whether to also delete the backups of the schedule's retained sets that no other schedule holds."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetScheduleActionResult",
        "shape": "Structured JSON projection of McpBackupSetScheduleActionResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; a retry after the schedule was removed returns false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RemoveBackupSetScheduleAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removal converges: false means no schedule had the name, including one an earlier attempt already removed. With deleteRetainedSets, only retained-set backups that no other schedule holds are deleted.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RemoveBackupSetScheduleAsync"
      },
      "concurrency": {
        "rule": "Authorized like schedule-backup-set, against the schedule's recorded member trees.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RemoveBackupSetScheduleAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.RemoveBackupSetScheduleAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_run_now",
      "in_process": "BackupToolInvocations.RunBackupSetScheduleNowAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#run-backup-set-schedule-now",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleRunNowTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The backup-set schedule's name."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetScheduleActionResult",
        "shape": "Structured JSON projection of McpBackupSetScheduleActionResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request: a retry while the run is in flight joins it and returns false rather than stacking a second run.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RunBackupSetScheduleNowAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Each call while no run is in flight starts a new run; a call while one is in flight joins it and returns false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RunBackupSetScheduleNowAsync"
      },
      "concurrency": {
        "rule": "At most one run of a schedule is in flight; follow it through get-backup-set-schedule-status.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#RunBackupSetScheduleNowAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.RunBackupSetScheduleNowAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_set_schedule_set",
      "in_process": "BackupToolInvocations.ScheduleBackupSetAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#schedule-backup-set",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup.CreateSetScheduleSetTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The schedule's tenant-local name (1-128 of A-Z, a-z, 0-9, '-', '_', '.'); re-using a name updates that schedule."
        },
        {
          "name": "intervalSeconds",
          "type": "long",
          "required": true,
          "notes": "The cadence between runs, in seconds; must be strictly positive."
        },
        {
          "name": "membership",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Explicit (default) captures treeIds; AllTrees captures every tree of the caller's tenant."
        },
        {
          "name": "treeIds",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "The tree ids an Explicit schedule captures, one whole-tree member each; must be empty for AllTrees."
        },
        {
          "name": "retentionKeepLast",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "Keep at most this many sets (>= 1); at least one retention bound is required."
        },
        {
          "name": "retentionMaxAgeSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Drop sets older than this many seconds (> 0); at least one retention bound is required."
        },
        {
          "name": "crossTreeConsistent",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "Whether each set is captured at one cross-tree causal fence."
        },
        {
          "name": "includeNewTrees",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "AllTrees only: also capture trees created later; needs the backup grant over the whole tenant (or cluster)."
        },
        {
          "name": "excludedTreePrefixes",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "AllTrees only: tree-id prefixes to exclude."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupSetSchedule",
        "shape": "Structured JSON projection of McpBackupSetSchedule returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ScheduleBackupSetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Register or update is idempotent: re-registering an unchanged request leaves the schedule as it was, and an unchanged interval keeps the timing of the next run.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ScheduleBackupSetAsync"
      },
      "concurrency": {
        "rule": "The caller must hold the backup grant over every tree the set captures; a schedule over all trees that also captures trees created later needs the grant over the whole tenant (or, for the default tenant, the whole cluster).",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupControl.cs#ScheduleBackupSetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs#BackupToolInvocations.ScheduleBackupSetAsync",
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      ]
    },
    {
      "id": "lattice_backup_start",
      "in_process": "BackupToolInvocations.StartBackupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-backup",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartBackupTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The human-readable backup name recorded on the manifest."
        },
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree id to capture."
        },
        {
          "name": "scopeKind",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Scope extent: WholeTree (default), Prefix, or Key."
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The exact key or key prefix for a Prefix/Key scope; null for WholeTree."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Raw-entry drain page size; <= 0 uses the server default."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartBackupAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartBackupTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_catalog_rebuild",
      "in_process": "BackupToolInvocations.StartCatalogRebuildAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-catalog-rebuild",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartCatalogRebuildTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartCatalogRebuildAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartCatalogRebuildTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_catalog_scrub",
      "in_process": "BackupToolInvocations.StartCatalogScrubAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-catalog-scrub",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartCatalogScrubTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "pruneOrphans",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, remove the orphan rows found; when false (the default), only flag them."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartCatalogScrubAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported. PruneOrphans false only flags orphan rows; true removes them.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartCatalogScrubTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_health_check",
      "in_process": "BackupToolInvocations.StartHealthCheckAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-backup-health-check",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartHealthCheckTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed id of the backup to verify."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartBackupHealthCheckAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported. On success the fresh report is persisted as the backup's latest health state.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartHealthCheckTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_incremental",
      "in_process": "BackupToolInvocations.StartIncrementalBackupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-incremental-backup",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartIncrementalTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The human-readable backup name recorded on the manifest."
        },
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree id to capture."
        },
        {
          "name": "scopeKind",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Scope extent: WholeTree (default), Prefix, or Key."
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The exact key or key prefix for a Prefix/Key scope; null for WholeTree."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Raw-entry drain page size; <= 0 uses the server default."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        },
        {
          "name": "baseBackupId",
          "type": "string",
          "required": true,
          "notes": "The id of the base backup this increment is layered on."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartIncrementalBackupAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartIncrementalTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_restore",
      "in_process": "BackupToolInvocations.StartRestoreAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-restore",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartRestoreTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed id of the backup to restore."
        },
        {
          "name": "targetTreeId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The tree to restore into; null restores into the captured tree."
        },
        {
          "name": "mode",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Restore mode."
        },
        {
          "name": "restoreOperationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The restore engine idempotency key; null derives one."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartRestoreAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartRestoreTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_backup_start_set",
      "in_process": "BackupToolInvocations.StartBackupSetAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/backup.json#start-backup-set",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartBackupSetTool"
      },
      "availability": {
        "module": "AddBackupTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableBackupControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Backup/LatticeMcpBackupServiceCollectionExtensions.cs#LatticeMcpBackupServiceCollectionExtensions.AddBackupTools"
        },
        "requires": [
          "AddLatticeBackupApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#BackupToolGroup"
      },
      "request": [
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The human-readable set name."
        },
        {
          "name": "treeIds",
          "type": "IReadOnlyList<string>",
          "required": true,
          "notes": "The tree ids to capture."
        },
        {
          "name": "crossTreeConsistent",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Whether to use a cross-tree causal fence."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Raw-entry drain page size."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpBackupOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#StartBackupSetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Backup/ILatticeBackupOperations.cs#ILatticeBackupOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Backup/BackupToolGroup.cs#CreateStartBackupSetTool",
        "src/lattice.api.mcp/Tools/Backup/BackupToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_capabilities",
      "in_process": "LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool"
      },
      "availability": {
        "module": "AddLatticeMcp",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator"
      },
      "request": [],
      "response": {
        "type": "LatticeApiMcpCapabilities",
        "shape": "Structured JSON projection of LatticeApiMcpCapabilities returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool"
      },
      "sources": [
        "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateCapabilitiesTool"
      ]
    },
    {
      "id": "lattice_data_delete",
      "in_process": "DataToolGroup.DeleteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#delete",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildDeleteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The entry key to delete."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataDeleteToolResult",
        "shape": "Structured JSON projection of DataDeleteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried and the client defines no built-in retry policy for point delete.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#DeleteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The first successful delete writes an LWW tombstone and returns true, while a repeat after that tombstone short-circuits as absent and returns false without replaying the original response.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#BPlusLeafGrain.DeleteCoreAsync"
      },
      "concurrency": {
        "rule": "Deleting from an unknown tree is a documented no-op that must still run behind the delete gate.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#DeleteAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.DeleteToolAsync"
      ]
    },
    {
      "id": "lattice_data_delete_range",
      "in_process": "DataToolGroup.DeleteRangeToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#delete-range",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildDeleteRangeTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "startInclusive",
          "type": "string",
          "required": true,
          "notes": "Inclusive lower key bound. Required."
        },
        {
          "name": "endExclusive",
          "type": "string",
          "required": true,
          "notes": "Exclusive upper key bound. Required."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataRangeDeleteToolResult",
        "shape": "Structured JSON projection of DataRangeDeleteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The facade transparently reconnects transient range-delete cursor loss; the gRPC client defines no additional retry policy.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#DeleteRangeAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The request has no operation id or resume token and each invocation drains the current half-open range, so a replay can produce a different DeletedCount and can tombstone keys inserted into the range after the first call.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#LatticeGrain.DeleteRangeAsync"
      },
      "concurrency": {
        "rule": "Range delete is all-or-nothing across its span for authorization; partial authorization tombstones nothing.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#DeleteRangeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.DeleteRangeToolAsync"
      ]
    },
    {
      "id": "lattice_data_gcounter",
      "in_process": "DataToolGroup.GCounterWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildGCounterWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The counter key."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "amount",
          "type": "long",
          "required": true,
          "notes": "The non-negative amount to add."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.GCounterWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_gcounter_get",
      "in_process": "DataToolGroup.GCounterGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildGCounterGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The counter key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtCounterToolResult",
        "shape": "Structured JSON projection of CrdtCounterToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.GCounterGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_get",
      "in_process": "DataToolGroup.GetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#get",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The entry key to read."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataGetToolResult",
        "shape": "Structured JSON projection of DataGetToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary point reads use no built-in client retry policy; reads of hidden, absent, or unknown entries return a miss.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#GetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is a read and an unknown tree or unreadable key reports Found=false.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#GetAsync"
      },
      "concurrency": {
        "rule": "A read must never materialize a tree; an unknown tree reports a clean miss before routing to the shard root.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#GetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.GetToolAsync"
      ]
    },
    {
      "id": "lattice_data_gset",
      "in_process": "DataToolGroup.GSetWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildGSetWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "element",
          "type": "string",
          "required": true,
          "notes": "The element bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.GSetWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_gset_get",
      "in_process": "DataToolGroup.GSetGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildGSetGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.GSetGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_maxregister_get",
      "in_process": "DataToolGroup.MaxRegisterGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMaxRegisterGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MaxRegisterGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_maxregister_set",
      "in_process": "DataToolGroup.MaxRegisterSetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMaxRegisterSetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "value",
          "type": "string",
          "required": true,
          "notes": "The candidate value bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MaxRegisterSetToolAsync"
      ]
    },
    {
      "id": "lattice_data_minregister_get",
      "in_process": "DataToolGroup.MinRegisterGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMinRegisterGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MinRegisterGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_minregister_set",
      "in_process": "DataToolGroup.MinRegisterSetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMinRegisterSetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "value",
          "type": "string",
          "required": true,
          "notes": "The candidate value bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MinRegisterSetToolAsync"
      ]
    },
    {
      "id": "lattice_data_mvregister_get",
      "in_process": "DataToolGroup.RegisterGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRegisterGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RegisterGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_mvregister_set",
      "in_process": "DataToolGroup.RegisterSetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRegisterSetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The register key."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "value",
          "type": "string",
          "required": true,
          "notes": "The value bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RegisterSetToolAsync"
      ]
    },
    {
      "id": "lattice_data_orflag",
      "in_process": "DataToolGroup.OrFlagWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildOrFlagWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The flag key."
        },
        {
          "name": "operation",
          "type": "CrdtFlagOp",
          "required": true,
          "notes": "Whether to enable or disable the flag."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.OrFlagWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_orflag_get",
      "in_process": "DataToolGroup.OrFlagGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildOrFlagGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The flag key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtFlagToolResult",
        "shape": "Structured JSON projection of CrdtFlagToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.OrFlagGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_ormap",
      "in_process": "DataToolGroup.MapWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMapWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The map key."
        },
        {
          "name": "operation",
          "type": "CrdtMapOp",
          "required": true,
          "notes": "Whether to set a field's value or observed-remove the field."
        },
        {
          "name": "field",
          "type": "string",
          "required": true,
          "notes": "The map field name."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "value",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The value bytes to put under the field, base64-encoded (required for set, ignored for remove). Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MapWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_ormap_get",
      "in_process": "DataToolGroup.MapGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildMapGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The map key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtMapToolResult",
        "shape": "Structured JSON projection of CrdtMapToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.MapGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_orset",
      "in_process": "DataToolGroup.SetWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildSetWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "operation",
          "type": "CrdtSetOp",
          "required": true,
          "notes": "Whether to add or observed-remove the element."
        },
        {
          "name": "element",
          "type": "string",
          "required": true,
          "notes": "The element bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.SetWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_orset_get",
      "in_process": "DataToolGroup.SetGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildSetGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.SetGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_pncounter",
      "in_process": "DataToolGroup.CounterWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildCounterWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The counter key."
        },
        {
          "name": "operation",
          "type": "CrdtCounterOp",
          "required": true,
          "notes": "Whether to increment or decrement the counter."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "amount",
          "type": "long",
          "required": true,
          "notes": "The non-negative magnitude to add or subtract."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.CounterWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_pncounter_get",
      "in_process": "DataToolGroup.CounterGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildCounterGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The counter key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtCounterToolResult",
        "shape": "Structured JSON projection of CrdtCounterToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.CounterGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_read_range",
      "in_process": "DataToolGroup.ReadRangeToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#read-range",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildReadRangeTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "startInclusive",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Inclusive lower key bound, or null to start from the first key. Ignored when continuationToken is set."
        },
        {
          "name": "endExclusive",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive upper key bound, or null to read to the last key. Ignored when continuationToken is set."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum entries on this page. Non-positive falls back to the configured default; larger values are clamped."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation token from a prior page, or null to open a fresh scan. Single-use and forward-only: consumed by the page it fetches and cannot be replayed. When set, the range bounds are ignored."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataRangePageToolResult",
        "shape": "Structured JSON projection of DataRangePageToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary range reads use no built-in client retry policy; invalid or expired continuation tokens map to InvalidArgument.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#ReadRangeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads one page and unknown trees return an empty drained page for fresh scans.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#ReadRangeAsync"
      },
      "concurrency": {
        "rule": "Range reads use a live cursor, return raw stored bytes, and close the cursor when the page drains.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#ReadRangeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.ReadRangeToolAsync"
      ]
    },
    {
      "id": "lattice_data_rwflag",
      "in_process": "DataToolGroup.RwFlagWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRwFlagWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The flag key."
        },
        {
          "name": "operation",
          "type": "CrdtFlagOp",
          "required": true,
          "notes": "Whether to enable or disable the flag."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RwFlagWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_rwflag_get",
      "in_process": "DataToolGroup.RwFlagGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRwFlagGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The flag key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtFlagToolResult",
        "shape": "Structured JSON projection of CrdtFlagToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RwFlagGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_rwset",
      "in_process": "DataToolGroup.RwSetWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRwSetWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "operation",
          "type": "CrdtRwSetOp",
          "required": true,
          "notes": "Whether to add or remove-wins remove the element."
        },
        {
          "name": "element",
          "type": "string",
          "required": true,
          "notes": "The element bytes, base64-encoded. Invalid base64 is rejected as a caller error."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RwSetWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_rwset_get",
      "in_process": "DataToolGroup.RwSetGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildRwSetGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The set key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.RwSetGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_sequence",
      "in_process": "DataToolGroup.SequenceWriteToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildSequenceWriteTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The sequence key."
        },
        {
          "name": "operation",
          "type": "CrdtSequenceOp",
          "required": true,
          "notes": "Whether to insert at, or remove at, the given position."
        },
        {
          "name": "index",
          "type": "int",
          "required": true,
          "notes": "The zero-based position in the current visible order."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "value",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The value bytes to insert, base64-encoded (required for insertAt, ignored for removeAt). Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.SequenceWriteToolAsync"
      ]
    },
    {
      "id": "lattice_data_sequence_get",
      "in_process": "DataToolGroup.SequenceGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildSequenceGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The sequence key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtElementsToolResult",
        "shape": "Structured JSON projection of CrdtElementsToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.SequenceGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_set",
      "in_process": "DataToolGroup.SetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#set",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildSetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The entry key to write."
        },
        {
          "name": "value",
          "type": "string",
          "required": true,
          "notes": "The value to store, as a base64-encoded byte string (required). Invalid base64 is rejected as a caller error."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataSetToolResult",
        "shape": "Structured JSON projection of DataSetToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried and the client defines no built-in retry policy for point set.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#SetAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The facade carries no operation id and each SetAsync invocation reaches a leaf commit that advances HLC, writes a new LWW value, and can publish another mutation even when the bytes match a previous call.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#BPlusLeafGrain.CommitSetAsync"
      },
      "concurrency": {
        "rule": "The operation routes through the same gated ILattice.SetAsync write path used by in-cluster clients.",
        "source": "src/lattice.api.data/LatticeDataApi.cs#SetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.SetToolAsync"
      ]
    },
    {
      "id": "lattice_data_set_many",
      "in_process": "DataToolGroup.SetManyToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#set-many",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildSetManyTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "upserts",
          "type": "IReadOnlyList<DataEntryDto>?",
          "required": false,
          "notes": "The key / value pairs to write non-atomically. Each value is a base64-encoded byte string. An empty list is a no-op."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataSetManyToolResult",
        "shape": "Structured JSON projection of DataSetManyToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Not safe as a transparent retry: partial failure may leave some keys written and others not.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The contract states there is no idempotency key to make a retry a safe no-op.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAsync"
      },
      "concurrency": {
        "rule": "The operation is non-atomic and each shard slice commits independently with no compensating rollback.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.SetManyToolAsync"
      ]
    },
    {
      "id": "lattice_data_set_many_atomic",
      "in_process": "DataToolGroup.SetManyAtomicToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#set-many-atomic",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildSetManyAtomicTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "upserts",
          "type": "IReadOnlyList<DataEntryDto>?",
          "required": false,
          "notes": "The key / value pairs to write atomically. May be empty when the batch is delete-only."
        },
        {
          "name": "deleteKeys",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "notes": "The keys to delete atomically. May be empty when the batch is upsert-only."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "Stable idempotency key. Must be non-empty and must not contain '/'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataAtomicBatchToolResult",
        "shape": "Structured JSON projection of DataAtomicBatchToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe when the same non-empty operationId is reused with the same single-tree batch.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId is a stable idempotency key and a key mismatch maps to FailedPrecondition.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicAsync"
      },
      "concurrency": {
        "rule": "Every leg is authorized before apply; a denied leg aborts the whole batch with nothing persisted.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.SetManyAtomicToolAsync"
      ]
    },
    {
      "id": "lattice_data_set_many_atomic_cross_tree",
      "in_process": "DataToolGroup.SetManyAtomicCrossTreeToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#set-many-atomic-cross-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.BuildSetManyAtomicCrossTreeTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "batches",
          "type": "IReadOnlyList<DataTreeBatchDto>",
          "required": true,
          "notes": "Per-tree slices to commit atomically. Tree ids must be distinct and non-empty."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "Required cross-tree idempotency key. Must not contain '/'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "DataCrossTreeBatchToolResult",
        "shape": "Structured JSON projection of DataCrossTreeBatchToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe when the same required operationId is reused with the same cross-tree batches.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicCrossTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId is a required cross-tree idempotency key and every tree slice commits at one coordinator decision moment.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicCrossTreeAsync"
      },
      "concurrency": {
        "rule": "Every leg on every participating tree is authorized before apply and a denial aborts the whole cross-tree batch.",
        "source": "src/lattice.api.abstractions/Data/ILatticeDataApi.cs#SetManyAtomicCrossTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.cs#DataToolGroup.SetManyAtomicCrossTreeToolAsync"
      ]
    },
    {
      "id": "lattice_data_version_vector_get",
      "in_process": "DataToolGroup.VersionVectorGetToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-read",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildVersionVectorGetTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The version-vector key."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtVersionVectorToolResult",
        "shape": "Structured JSON projection of CrdtVersionVectorToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Unary CRDT reads use no built-in client retry policy; absent or unreadable values return the empty value for their kind.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation reads a logical CRDT value and returns an empty value when absent or unreadable.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtReadAsync"
      },
      "concurrency": {
        "rule": "CRDT read verbs resolve existing trees only and return zero, false, empty, or null values for unregistered trees without materializing one.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#ExistingTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.VersionVectorGetToolAsync"
      ]
    },
    {
      "id": "lattice_data_version_vector_tick",
      "in_process": "DataToolGroup.VersionVectorTickToolAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/data.json#crdt-write",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.BuildVersionVectorTickTool"
      },
      "availability": {
        "module": "AddDataTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp/LatticeMcpDataToolsServiceCollectionExtensions.cs#LatticeMcpDataToolsServiceCollectionExtensions.AddDataTools"
        },
        "requires": [
          "AddLatticeDataApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The version-vector key."
        },
        {
          "name": "replicaId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CrdtWriteToolResult",
        "shape": "Structured JSON projection of CrdtWriteToolResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No operation id is carried; the client defines no built-in retry policy for CRDT writes.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcClient.cs#CrdtWriteAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The unified RPC carries no operation id and dispatches to Op-specific mutations; counter and sequence verbs apply another mutation on replay, while set-add style verbs converge by their CRDT merge semantics.",
        "source": "src/lattice.api.data.grpc/LatticeDataApiGrpcService.cs#LatticeDataApiGrpcService.DispatchCrdtWriteAsync"
      },
      "concurrency": {
        "rule": "Each CRDT write routes through the typed accessor and the engine rejects mode mismatches or an OR-Map tree with no registered map shape.",
        "source": "src/lattice.api.data/LatticeDataApi.Crdt.cs#LatticeDataApi"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Data/DataToolGroup.Crdt.cs#DataToolGroup.VersionVectorTickToolAsync"
      ]
    },
    {
      "id": "lattice_list_regions",
      "in_process": "ILatticeRegionCatalog.ListRegionsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateListRegionsTool"
      },
      "availability": {
        "module": "AddLatticeMcp",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateListRegionsTool"
      },
      "request": [],
      "response": {
        "type": "LatticeApiMcpRegionsToolResult",
        "shape": "Structured JSON projection of the ILatticeRegionCatalog.ListRegionsAsync result: currentRegion plus the regions the server can route to, with per-group reachability and tenant-scoped omissions."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.abstractions/Region/ILatticeRegionCatalog.cs#ILatticeRegionCatalog.ListRegionsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator.CreateListRegionsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.abstractions/Region/ILatticeRegionCatalog.cs#ILatticeRegionCatalog.ListRegionsAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Region/ILatticeRegionCatalog.cs#ILatticeRegionCatalog.ListRegionsAsync",
        "src/lattice.api.mcp/Tools/Region/RegionDiscoveryToolHandlers.cs#RegionDiscoveryToolHandlers.ListRegionsAsync",
        "src/lattice.api.mcp/Discovery/LatticeApiMcpSessionConfigurator.cs#LatticeApiMcpSessionConfigurator",
        "src/lattice.api.mcp/Remote/LatticeApiMcpRegionCatalog.cs#LatticeApiMcpRegionCatalog.ListRegionsAsync"
      ]
    },
    {
      "id": "lattice_replication_disable",
      "in_process": "ReplicationToolInvocations.DisableReplicationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/replication.json#disable-replication",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup.CreateDisableTool"
      },
      "availability": {
        "module": "AddReplicationTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableReplicationControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Replication/LatticeMcpReplicationServiceCollectionExtensions.cs#LatticeMcpReplicationServiceCollectionExtensions.AddReplicationTools"
        },
        "requires": [
          "AddLatticeReplicationApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The target tree id to disable replication for."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpReplicationDisableResult",
        "shape": "Structured JSON projection of McpReplicationDisableResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Idempotent; absent or already disabled trees author no new dot and report AlreadyDisabled=true.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#DisableReplicationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Disabling a tree that is absent or already disabled authors no new dot.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#DisableReplicationAsync"
      },
      "concurrency": {
        "rule": "Disable authors a disable-wins flag dot and does not tear down already-active shippers or purge peer data.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#DisableReplicationAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolInvocations.cs#ReplicationToolInvocations.DisableReplicationAsync",
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      ]
    },
    {
      "id": "lattice_replication_enable",
      "in_process": "ReplicationToolInvocations.EnableReplicationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/replication.json#enable-replication",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup.CreateEnableTool"
      },
      "availability": {
        "module": "AddReplicationTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableReplicationControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/Replication/LatticeMcpReplicationServiceCollectionExtensions.cs#LatticeMcpReplicationServiceCollectionExtensions.AddReplicationTools"
        },
        "requires": [
          "AddLatticeReplicationApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The target tree id to enable replication for."
        },
        {
          "name": "mode",
          "type": "string",
          "required": true,
          "notes": "The wire merge mode to fix for the tree: LwwRegister, OrSet, PnCounter, VersionVector, MvRegister, OrMap, Sequence, OrFlag, RwFlag, or RwSet."
        },
        {
          "name": "bootstrapSourceClusterId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional cluster id to pull an initial snapshot from (enable that cluster first); null skips the bootstrap."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpReplicationEnableResult",
        "shape": "Structured JSON projection of McpReplicationEnableResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Safe for the same mode when already enabled; a different or ambiguous mode is rejected.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#EnableReplicationAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Already enabled under the same unambiguous mode authors no configuration; a named bootstrap source is still requested unless a bootstrap from it is already in flight. Different or ambiguous mode is rejected.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#EnableReplicationAsync"
      },
      "concurrency": {
        "rule": "Merge mode is fixed at enable time; disable then re-enable to change mode.",
        "source": "src/lattice.replication/ILatticeReplicationConfigAuthority.cs#EnableReplicationAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolInvocations.cs#ReplicationToolInvocations.EnableReplicationAsync",
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      ]
    },
    {
      "id": "lattice_replication_get_config",
      "in_process": "ReplicationToolInvocations.GetReplicationConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/replication.json#get-replication-config",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup.CreateGetConfigTool"
      },
      "availability": {
        "module": "AddReplicationTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeReplicationApi"
        ],
        "source": "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpReplicationConfig",
        "shape": "Structured JSON projection of McpReplicationConfig returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only permission-scoped status report.",
        "source": "src/lattice.api.abstractions/Replication/ILatticeReplicationControl.cs#GetReplicationConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation.",
        "source": "src/lattice.api.abstractions/Replication/ILatticeReplicationControl.cs#GetReplicationConfigAsync"
      },
      "concurrency": {
        "rule": "Denied trees are silently omitted, so discovery never reveals trees outside the caller grant.",
        "source": "src/lattice.api.abstractions/Replication/ILatticeReplicationControl.cs#GetReplicationConfigAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolInvocations.cs#ReplicationToolInvocations.GetReplicationConfigAsync",
        "src/lattice.api.mcp/Tools/Replication/ReplicationToolGroup.cs#ReplicationToolGroup"
      ]
    },
    {
      "id": "lattice_state_cancel_scan",
      "in_process": "StateToolHandlers.CancelScanAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#cancel-scan",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree the cursor was opened against."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The scan continuation token to release. An empty or unknown token is a tolerated no-op."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ScanCancellationResult",
        "shape": "Structured JSON projection of ScanCancellationResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Best-effort cursor release is safe to retry because unknown, drained, or already closed cursors are tolerated no-ops.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#CancelScanAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The contract states CancelScanAsync is best-effort and idempotent.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#CancelScanAsync"
      },
      "concurrency": {
        "rule": "The operation releases server-side snapshot cursor state and holds back no WAL trimming.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#CancelScanAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.CancelScanAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_cluster_info",
      "in_process": "StateToolHandlers.GetClusterInfoAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-cluster-info",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ClusterInfo",
        "shape": "Structured JSON projection of ClusterInfo returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "Returns generic cluster identity metadata and does not mutate state.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#GetClusterInfoAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetClusterInfoAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_entry",
      "in_process": "StateToolHandlers.GetEntryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-entry",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The entry key to read."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "EntryDetailResult",
        "shape": "Structured JSON projection of EntryDetailResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "TreeNotFound and KeyNotFound are structured Status values rather than NotFound transport errors.",
        "source": "src/lattice.api.state.grpc/LatticeStateGrpcService.cs#GetEntry"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetEntryAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_entry_history",
      "in_process": "StateToolHandlers.GetEntryHistoryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-entry-history",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier the key lives on."
        },
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The key whose revision timeline to read."
        },
        {
          "name": "limit",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Max revisions per page (values <= 0 use the configured default; larger values are clamped to the configured maximum)."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Opaque continuation token from a prior page read in the same direction; null or empty starts a fresh read."
        },
        {
          "name": "valuePreviewBudget",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Per-revision value/delta preview byte budget (values <= 0 use the configured default; larger values are clamped). The full value length is always reported."
        },
        {
          "name": "reverse",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Read newest-first: start at the newest revision and page backwards to older ones. Defaults to false (oldest-first, paging forwards)."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "EntryHistoryResult",
        "shape": "Structured JSON projection of EntryHistoryResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The timeline is continuation-paged from the durable per-key history view when enabled or from a retained WAL-window fallback that reports truncation.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#GetEntryHistoryAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetEntryHistoryAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_physical_shard_count",
      "in_process": "StateToolHandlers.GetPhysicalShardCountAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-physical-shard-count",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "PhysicalShardCountResult",
        "shape": "Structured JSON projection of PhysicalShardCountResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only; reissue the same call.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "A single fan-out-free grain call that reads the routing map, safe against a saturated tree whose shard roots are contended; null when the tree is hidden, a system tree, or missing.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#GetPhysicalShardCountAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetPhysicalShardCountAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_shard_summaries",
      "in_process": "StateToolHandlers.GetShardSummariesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-shard-summaries",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "deep",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "Include tombstone counts (a more expensive read). Defaults to true."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ShardSummariesResult",
        "shape": "Structured JSON projection of ShardSummariesResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only; reissue the same call.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "Fans a diagnostics read out to every shard (cached per tree for DiagnosticsCacheTtl); results are ordered by shard index; a materialised view is read under an authorised view-read scope; a hidden, system, or missing tree yields the typed not-found result.",
        "source": "src/lattice.api.state/LatticeStateQuery.cs#LatticeStateQuery.GetShardSummariesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetShardSummariesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_tree_structure",
      "in_process": "StateToolHandlers.GetTreeStructureAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-tree-structure",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "shardIndex",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "When set, restrict the response to the single shard with this index instead of every shard root. When null, the graph enumerates all shard roots (up to the tree's shard count, typically 64) even for an empty tree - scope to a single shard, or rely on maxNodes, to bound the cost."
        },
        {
          "name": "subPathNodeId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "When set, descend into the internal node with this id (a nodeId from a prior response) and return only that subtree."
        },
        {
          "name": "depthLimit",
          "type": "int",
          "required": false,
          "default": "StructureRequest.DefaultDepthLimit",
          "notes": "Max depth of internal-node expansion (0-64; values outside the range fall back to 4)."
        },
        {
          "name": "maxNodes",
          "type": "int",
          "required": false,
          "default": "StructureRequest.DefaultMaxNodes",
          "notes": "Max nodes materialised across the whole response (1-100000; values outside the range fall back to 1000)."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeStructureResult",
        "shape": "Structured JSON projection of TreeStructureResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The whole-tree read issues one structural read per shard root and is bounded by depth and node-count budgets.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#GetTreeStructureAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetTreeStructureAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_get_tree_summary",
      "in_process": "StateToolHandlers.GetTreeSummaryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#get-tree-summary",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier."
        },
        {
          "name": "deep",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "Include tombstone counts (a more expensive read). Defaults to true."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeSummaryResult",
        "shape": "Structured JSON projection of TreeSummaryResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only; reissue the same call.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "Answered from DiagnoseAsync, whose report is cached per tree for DiagnosticsCacheTtl, so repeated callers inside that window share one snapshot; a hidden, reserved, or missing tree yields the typed not-found result.",
        "source": "src/lattice.api.state/LatticeStateQuery.cs#LatticeStateQuery.GetTreeSummaryAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.GetTreeSummaryAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_covered_trees",
      "in_process": "StateToolHandlers.ListCoveredTreesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-covered-trees",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The tag-index name whose covered subject trees to list."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "CoveredTreeCatalogPage",
        "shape": "Structured JSON projection of CoveredTreeCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog is deterministic and ordered ascending by covered tree id.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListCoveredTreesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListCoveredTreesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_index_tags",
      "in_process": "StateToolHandlers.ListIndexTagsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-index-tags",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The tag-index name whose index-wide distinct tag values to list."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TagValueCatalogPage",
        "shape": "Structured JSON projection of TagValueCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog is deterministic and ordered ascending by tag value across every covered tree.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListIndexTagsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListIndexTagsAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_tag_indexes",
      "in_process": "StateToolHandlers.ListTagIndexesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-tag-indexes",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "sourceTreeId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "When set, restrict the catalog to indexes covering this source tree. Null lists all tag indexes."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TagIndexCatalogPage",
        "shape": "Structured JSON projection of TagIndexCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog enumerates tag-index membership trees as a deterministic paged catalog.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListTagIndexesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListTagIndexesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_tag_values",
      "in_process": "StateToolHandlers.ListTagValuesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-tag-values",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The tag-index name (the clean name from list_tag_indexes)."
        },
        {
          "name": "sourceTreeId",
          "type": "string",
          "required": true,
          "notes": "The subject tree id whose distinct tag values to list."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TagValueCatalogPage",
        "shape": "Structured JSON projection of TagValueCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog is deterministic and ordered ascending by tag value for one subject tree and index.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListTagValuesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListTagValuesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_trees",
      "in_process": "StateToolHandlers.ListTreesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-trees",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "includeSystemTrees",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Include reserved internal system trees (registry, WAL, queue, view backing). Defaults to false."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeCatalogPage",
        "shape": "Structured JSON projection of TreeCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog is deterministic, paged, ordered by tree id, and hides reserved internal system trees unless IncludeSystemTrees is set.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListTreesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListTreesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_list_views",
      "in_process": "StateToolHandlers.ListViewsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#list-views",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "CatalogRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "includeViewStats",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Sample each view's apply lag and materialised entry count. More expensive; defaults to false."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ViewCatalogPage",
        "shape": "Structured JSON projection of ViewCatalogPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "The catalog is deterministic, paged, and ordered by view name.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ListViewsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ListViewsAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_scan_entries",
      "in_process": "StateToolHandlers.ScanEntriesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#scan-entries",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "Logical tree identifier to scan."
        },
        {
          "name": "startInclusive",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Inclusive lower key bound, or null to start at the first key."
        },
        {
          "name": "endExclusive",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive upper key bound, or null to run to the last key."
        },
        {
          "name": "reverse",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Scan in descending key order. Defaults to false."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Max entries per page (values <= 0 use the configured default; larger values are clamped to the configured maximum)."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Opaque continuation token from a prior page; null or empty opens a fresh scan. Single-use and forward-only: consumed by the page it fetches and cannot be replayed to re-read an earlier page. On a continuation, mode is ignored."
        },
        {
          "name": "valuePreviewBudget",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Per-entry value-preview byte budget (values <= 0 use the configured default; larger values are clamped). The full value length is always reported."
        },
        {
          "name": "indexName",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional tag-index name; with tag, restricts the scan to keys carrying that tag. Null for an unfiltered scan."
        },
        {
          "name": "tag",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional tag value; honoured only when indexName is also set. A tag-filtered scan ignores the key range."
        },
        {
          "name": "mode",
          "type": "EntryScanMode",
          "required": false,
          "default": "EntryScanMode.Snapshot",
          "notes": "Cursor isolation for a fresh scan: Snapshot (0, point-in-time, heaviest), Live (1, cheapest), or LivePointInTime (2). Defaults to Snapshot."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "EntryScanResult",
        "shape": "Structured JSON projection of EntryScanResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "Snapshot mode opens a point-in-time cursor resilient to concurrent writes, splits, and reshards; live modes can reflect writes committed after open.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ScanEntriesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ScanEntriesAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_state_scan_tag_members",
      "in_process": "StateToolHandlers.ScanTagMembersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/state.json#scan-tag-members",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup.Create"
      },
      "availability": {
        "module": "AddStateTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeStateApi"
        ],
        "source": "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The tag-index name whose members to scan."
        },
        {
          "name": "tag",
          "type": "string",
          "required": true,
          "notes": "The tag whose live (tree, key) member pairs to return."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "TagMemberScanRequest.DefaultPageSize",
          "notes": "Max entries per page (1-1000; values outside the range fall back to 100)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Exclusive continuation cursor: pass the previous page's nextPageToken. Null starts at the beginning."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TagMemberScanPage",
        "shape": "Structured JSON projection of TagMemberScanPage returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client carries no transport retry policy; this state API operation is read-only.",
        "source": "src/lattice.api.state.grpc/LatticeStateApiGrpcClient.cs#LatticeStateApiGrpcClient"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The state facade is read-only and never mutates tree data or configuration.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ILatticeStateQuery"
      },
      "concurrency": {
        "rule": "Members are deterministic in ascending tree id and key order and rows whose primary key no longer exists are skipped.",
        "source": "src/lattice.api.abstractions/State/ILatticeStateQuery.cs#ScanTagMembersAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/State/StateToolHandlers.cs#StateToolHandlers.ScanTagMembersAsync",
        "src/lattice.api.mcp/Tools/State/StateToolGroup.cs#StateToolGroup"
      ]
    },
    {
      "id": "lattice_telemetry_list_metrics",
      "in_process": "TelemetryToolHandlers.ListMetricsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "availability": {
        "module": "AddTelemetryTools",
        "package": "Orleans.Lattice.Api.Mcp.Telemetry",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TelemetryMetricListResult",
        "shape": "Structured JSON projection of TelemetryMetricListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "telemetry-capability-denied",
          "condition": "TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync denies the caller; checked first, before metric-access policy and range guardrails."
        },
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "telemetry-backend-error",
          "condition": "Backend timeout, HTTP failure, non-success status, or malformed payload is surfaced in the result Error field."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.ListMetricsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.ListMetricsAsync"
      },
      "sources": [
        "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup",
        "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.ListMetricsAsync",
        "src/lattice.api.telemetry/TelemetryAccessAuthorizer.cs#TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync"
      ]
    },
    {
      "id": "lattice_telemetry_metric_metadata",
      "in_process": "TelemetryToolHandlers.MetricMetadataAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "availability": {
        "module": "AddTelemetryTools",
        "package": "Orleans.Lattice.Api.Mcp.Telemetry",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup"
      },
      "request": [
        {
          "name": "metric",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional metric name to look up; null returns metadata for every metric the caller may see."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TelemetryMetricMetadataResult",
        "shape": "Structured JSON projection of TelemetryMetricMetadataResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "telemetry-capability-denied",
          "condition": "TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync denies the caller; checked first, before metric-access policy and range guardrails."
        },
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "telemetry-backend-error",
          "condition": "Backend timeout, HTTP failure, non-success status, or malformed payload is surfaced in the result Error field."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.MetricMetadataAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.MetricMetadataAsync"
      },
      "sources": [
        "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup",
        "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.MetricMetadataAsync",
        "src/lattice.api.telemetry/TelemetryAccessAuthorizer.cs#TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync"
      ]
    },
    {
      "id": "lattice_telemetry_query",
      "in_process": "TelemetryToolHandlers.QueryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "availability": {
        "module": "AddTelemetryTools",
        "package": "Orleans.Lattice.Api.Mcp.Telemetry",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup"
      },
      "request": [
        {
          "name": "query",
          "type": "string",
          "required": true,
          "notes": "The PromQL expression to evaluate at a single instant, for example 'up' or 'rate(orleans_lattice_shard_writes_total[5m])'."
        },
        {
          "name": "time",
          "type": "DateTimeOffset?",
          "required": false,
          "default": "null",
          "notes": "Optional evaluation timestamp; null evaluates at the backend's current time."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TelemetryQueryResult",
        "shape": "Structured JSON projection of TelemetryQueryResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "telemetry-capability-denied",
          "condition": "TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync denies the caller; checked first, before metric-access policy and range guardrails."
        },
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "telemetry-backend-error",
          "condition": "Backend timeout, HTTP failure, non-success status, or malformed payload is surfaced in the result Error field."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryAsync"
      },
      "sources": [
        "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup",
        "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryAsync",
        "src/lattice.api.telemetry/TelemetryAccessAuthorizer.cs#TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync"
      ]
    },
    {
      "id": "lattice_telemetry_query_range",
      "in_process": "TelemetryToolHandlers.QueryRangeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "availability": {
        "module": "AddTelemetryTools",
        "package": "Orleans.Lattice.Api.Mcp.Telemetry",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup"
      },
      "request": [
        {
          "name": "query",
          "type": "string",
          "required": true,
          "notes": "The PromQL expression to evaluate across the range."
        },
        {
          "name": "start",
          "type": "DateTimeOffset",
          "required": true,
          "notes": "The inclusive start of the range."
        },
        {
          "name": "end",
          "type": "DateTimeOffset",
          "required": true,
          "notes": "The inclusive end of the range; must be at or after start."
        },
        {
          "name": "step",
          "type": "TimeSpan",
          "required": true,
          "notes": "The resolution step between evaluation points, as a duration (for example 00:00:30 for 30 seconds). Must be strictly positive."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TelemetryQueryResult",
        "shape": "Structured JSON projection of TelemetryQueryResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "telemetry-capability-denied",
          "condition": "TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync denies the caller; checked first, before metric-access policy and range guardrails."
        },
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "telemetry-backend-error",
          "condition": "Backend timeout, HTTP failure, non-success status, or malformed payload is surfaced in the result Error field."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryRangeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup.Create"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryRangeAsync"
      },
      "sources": [
        "src/lattice.api.mcp.telemetry/TelemetryToolGroup.cs#TelemetryToolGroup",
        "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryRangeAsync",
        "src/lattice.api.telemetry/TelemetryAccessAuthorizer.cs#TelemetryAccessAuthorizer.AuthorizeClusterTelemetryAsync"
      ]
    },
    {
      "id": "lattice_tenant_access_posture",
      "in_process": "TenantAccessToolHandlers.GetPostureAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant-access-posture",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantAccessPostureResult",
        "shape": "Structured JSON projection of McpTenantAccessPostureResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only posture; answers while the feature is disabled.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.GetPostureAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_advance_region",
      "in_process": "TenantAdminToolInvocations.AdvanceRegionAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#advance-tenant-region",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true
        },
        {
          "name": "regionId",
          "type": "string",
          "required": true
        },
        {
          "name": "acknowledgeDataInPlace",
          "type": "bool",
          "required": true,
          "notes": "Must be true after independent verification that tenant data is already present; does not copy data."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRegionStatusResult",
        "shape": "Structured JSON projection of McpTenantRegionStatusResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Read the current region status before retrying; a repeated call may advance another legal lifecycle step.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Each call advances one lifecycle step, so repeating a successful call may advance the region again.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "concurrency": {
        "rule": "Platform-operator-only and requires acknowledgement that data is already in place; it bypasses verified backfill. Normal region enablement backfills automatically.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#AdvanceRegionAsync"
      ]
    },
    {
      "id": "lattice_tenant_authorize_regions",
      "in_process": "TenantAdminToolInvocations.AuthorizeAllowedRegionsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#authorize-allowed-regions",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateAuthorizeRegionsTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id whose allowed region set to author. Must be a valid, non-empty tenant id that is registered."
        },
        {
          "name": "allowedRegions",
          "type": "string[]",
          "required": true,
          "notes": "The complete desired allowed region set. This is a replacement, not a delta: a currently-allowed region absent from this list is revoked."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRegionAuthorizationResult",
        "shape": "Structured JSON projection of McpTenantRegionAuthorizationResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Retry only when resubmitting the same complete allowed-region set.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The call sets the allowed set to exactly the supplied regions.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "concurrency": {
        "rule": "Residency must stay a subset of the allowed set; revoking a resident region is refused.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.AuthorizeAllowedRegionsAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_create",
      "in_process": "TenantAdminToolInvocations.CreateTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#create-tenant",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateCreateTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to create. Must be a valid, non-empty tenant id that is not already registered."
        },
        {
          "name": "adminSubjects",
          "type": "string[]?",
          "required": false,
          "default": "null",
          "notes": "The tenant-admin subject ids to seed onto the new tenant, deciding who can subsequently see it. Omit or leave empty to seed the calling subject; a non-empty list is used instead and the caller is not added. Null, empty, or whitespace entries are rejected, duplicates collapse, and, when an identity directory is registered with validation required, unresolved ids are refused."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantCreateResult",
        "shape": "Structured JSON projection of McpTenantCreateResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Create is not an idempotent upsert; retry can observe AlreadyExists after a successful first attempt.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Create fails with TenantAlreadyExistsException when the tenant is already registered.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "concurrency": {
        "rule": "The facade refuses a duplicate tenant id rather than resetting an existing definition.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.CreateTenantAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_current",
      "in_process": "TenantSelfAwarenessToolInvocations.GetCurrentTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-current-tenant",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup.CreateCurrentTool"
      },
      "availability": {
        "module": "AddTenantSelfAwarenessTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantDescriptor",
        "shape": "Structured JSON projection of McpTenantDescriptor returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only self-service operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantSelfServiceApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only current tenant resolution.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "concurrency": {
        "rule": "No state mutation.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolInvocations.cs#TenantSelfAwarenessToolInvocations.GetCurrentTenantAsync",
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_delete",
      "in_process": "TenantAdminToolInvocations.DeleteTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#delete-tenant",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateDeleteTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to delete. Must be a valid, non-empty tenant id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantDeleteResult",
        "shape": "Structured JSON projection of McpTenantDeleteResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Retry after a successful delete observes NotFound.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Delete fails closed with TenantNotFoundException when the tenant is absent.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "concurrency": {
        "rule": "Deletes cascade tenant-owned tree soft deletes before removing the registry record.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.DeleteTenantAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_effective_permissions",
      "in_process": "TenantAccessToolHandlers.EffectivePermissionsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant-effective-permissions",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "treeName",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Omit to report across every tree the tenant owns."
        },
        {
          "name": "subjectKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantEffectivePermissionsResult",
        "shape": "Structured JSON projection of McpTenantEffectivePermissionsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only effective permissions.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.EffectivePermissionsAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_explain",
      "in_process": "TenantAccessToolHandlers.ExplainAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#explain-tenant-access",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "treeName",
          "type": "string",
          "required": true,
          "notes": "The tenant-local tree name."
        },
        {
          "name": "operation",
          "type": "LatticeOperation",
          "required": true
        },
        {
          "name": "key",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "subjectKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantExplanationResult",
        "shape": "Structured JSON projection of McpTenantExplanationResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only layer-aware explanation.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.ExplainAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_get",
      "in_process": "TenantSelfAwarenessToolInvocations.GetTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup.CreateGetTool"
      },
      "availability": {
        "module": "AddTenantSelfAwarenessTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to inspect. Must be a valid, non-empty tenant id the caller is authorized to see."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantStatusResult",
        "shape": "Structured JSON projection of McpTenantStatusResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only self-service operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantSelfServiceApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tenant status report.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "concurrency": {
        "rule": "Absent and unauthorized tenants are deliberately indistinguishable; accessibility is evaluated with the caller resolved groups.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolInvocations.cs#TenantSelfAwarenessToolInvocations.GetTenantAsync",
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_group_get",
      "in_process": "TenantAccessToolHandlers.GetGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant-group",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The tenant-local group name."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantGroupGetResult",
        "shape": "Structured JSON projection of McpTenantGroupGetResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only group lookup; null when absent.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.GetGroupAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_list",
      "in_process": "TenantAccessToolHandlers.ListGroupsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#list-tenant-groups",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantGroupListResult",
        "shape": "Structured JSON projection of McpTenantGroupListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Paged listing of the tenant's own groups.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.ListGroupsAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_member_add",
      "in_process": "TenantAccessToolHandlers.AddGroupMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#add-tenant-group-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "groupName",
          "type": "string",
          "required": true
        },
        {
          "name": "memberId",
          "type": "string",
          "required": true
        },
        {
          "name": "memberKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantMembershipChangeResult",
        "shape": "Structured JSON projection of McpTenantMembershipChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No facade retry policy is defined; configure retries on the caller or CallInvoker.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Adding an existing member reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.AddGroupMemberAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_member_remove",
      "in_process": "TenantAccessToolHandlers.RemoveGroupMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#remove-tenant-group-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "groupName",
          "type": "string",
          "required": true
        },
        {
          "name": "memberId",
          "type": "string",
          "required": true
        },
        {
          "name": "memberKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantMembershipChangeResult",
        "shape": "Structured JSON projection of McpTenantMembershipChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Reissue the same request after an ambiguous failure; the removal is idempotent and removing an absent member reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs#ILatticeTenantDirectoryAdmin.RemoveGroupMemberAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removing an absent member reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.RemoveGroupMemberAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_members",
      "in_process": "TenantAccessToolHandlers.ListGroupMembersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#list-tenant-group-members",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "groupName",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantGroupMembersResult",
        "shape": "Structured JSON projection of McpTenantGroupMembersResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only listing of direct members.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.ListGroupMembersAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_remove",
      "in_process": "TenantAccessToolHandlers.RemoveGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#remove-tenant-group",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The tenant-local group name."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantGroupRemovalResult",
        "shape": "Structured JSON projection of McpTenantGroupRemovalResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Reissue the same request after an ambiguous failure; the removal is idempotent and removing an absent group reports Removed false and an interrupted cascade completes on re-run.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs#ILatticeTenantDirectoryAdmin.RemoveGroupAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removing an absent group reports Removed false; an interrupted cascade completes on re-run.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; the admin-set removal is committed with the last-admin guard re-applied inside the registry compare-and-set loop, and every set removal is stamped later than the slot it supersedes.",
        "source": "src/lattice.api.tenantadmin/TenantAdminSetCommit.cs#TenantAdminSetCommit"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.RemoveGroupAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_group_upsert",
      "in_process": "TenantAccessToolHandlers.UpsertGroupAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#upsert-tenant-group",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "name",
          "type": "string",
          "required": true,
          "notes": "The tenant-local group name."
        },
        {
          "name": "displayName",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantGroupResult",
        "shape": "Structured JSON projection of McpTenantGroupResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No facade retry policy is defined; configure retries on the caller or CallInvoker.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Upserting the same group again changes nothing.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.UpsertGroupAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_list",
      "in_process": "TenantSelfAwarenessToolInvocations.ListAccessibleTenantsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#list-accessible-tenants",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup.CreateListTool"
      },
      "availability": {
        "module": "AddTenantSelfAwarenessTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantListResult",
        "shape": "Structured JSON projection of McpTenantListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only self-service operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantSelfServiceApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only accessible tenant enumeration.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "concurrency": {
        "rule": "Enumeration is scoped to the caller resolved subject and its resolved groups and omits tenants the caller cannot see; with delegated tenant access administration on, a tenant reached through a member entry or a group entry is listed. A group never admits to a tenant that is not group-aware (the reserved default tenant, or one compiled with the feature off), even when the group id is in its admin set.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantSelfService.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolInvocations.cs#TenantSelfAwarenessToolInvocations.ListAccessibleTenantsAsync",
        "src/lattice.api.mcp/Tools/TenantSelfAwareness/TenantSelfAwarenessToolGroup.cs#TenantSelfAwarenessToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_member_add",
      "in_process": "TenantAccessToolHandlers.AddMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#add-tenant-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "subjectKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantMembershipChangeResult",
        "shape": "Structured JSON projection of McpTenantMembershipChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No facade retry policy is defined; configure retries on the caller or CallInvoker.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Adding an existing member-set entry reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.AddMemberAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_member_list",
      "in_process": "TenantAccessToolHandlers.ListMembersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#list-tenant-members",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantMemberListResult",
        "shape": "Structured JSON projection of McpTenantMemberListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Paged listing of the tenant member set.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Directory writes run under system origin through the membership store and the tenant record CRDT merge; D13 caps use verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.ListMembersAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_member_remove",
      "in_process": "TenantAccessToolHandlers.RemoveMemberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#remove-tenant-member",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "subjectKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantMembershipChangeResult",
        "shape": "Structured JSON projection of McpTenantMembershipChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Reissue the same request after an ambiguous failure; the removal is idempotent and removing an absent member-set entry reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs#ILatticeTenantDirectoryAdmin.RemoveMemberAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removing an absent member-set entry reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantDirectoryAdmin.cs"
      },
      "concurrency": {
        "rule": "Member-set removals are stamped later than the slot they supersede, so the removal wins the CRDT merge even against a slot written by a silo whose clock runs ahead.",
        "source": "src/lattice.api.tenantadmin/TenantRemovalStamp.cs#TenantRemovalStamp"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.cs#TenantAccessToolHandlers.RemoveMemberAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_region_status",
      "in_process": "TenantAdminToolInvocations.GetTenantRegionStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant-region-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateRegionStatusTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to report on. Must be a valid, non-empty tenant id that is registered."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRegionStatusResult",
        "shape": "Structured JSON projection of McpTenantRegionStatusResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only per-region status report.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "concurrency": {
        "rule": "Reports one row per allowed or non-None region. Backfilling rows carry BackfillProgress when the backfill service is registered. A nonlocal row reports NotLocal; local progress includes phase, stall reason and per-tree bootstrap state, source, entries applied, read fence and pending dead letters.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.GetTenantRegionStatusAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_resume",
      "in_process": "TenantAdminToolInvocations.ResumeTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#resume-tenant",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateResumeTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to resume. Must be a valid, non-empty tenant id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantStatusChangeResult",
        "shape": "Structured JSON projection of McpTenantStatusChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; resuming an already-active tenant is idempotent.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Resuming an already-active tenant reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "concurrency": {
        "rule": "Status transition is written through the tenant registry record.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.ResumeTenantAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_rule_get",
      "in_process": "TenantAccessToolHandlers.GetRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#get-tenant-rule",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "ruleId",
          "type": "string",
          "required": true,
          "notes": "The tenant-local rule id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRuleGetResult",
        "shape": "Structured JSON projection of McpTenantRuleGetResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only rule lookup; null when absent.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.GetRuleAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_rule_list",
      "in_process": "TenantAccessToolHandlers.ListRulesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#list-tenant-rules",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0"
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRuleListResult",
        "shape": "Structured JSON projection of McpTenantRuleListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only tenant-tier operation.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only paged listing of tenant-tier and read-only Platform rules.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.ListRulesAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_rule_put",
      "in_process": "TenantAccessToolHandlers.PutRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#put-tenant-rule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "ruleId",
          "type": "string",
          "required": true,
          "notes": "The tenant-local rule id."
        },
        {
          "name": "subjectId",
          "type": "string",
          "required": true
        },
        {
          "name": "scopeKind",
          "type": "TenantRuleScopeKind",
          "required": true,
          "notes": "Tree, Key, Prefix or TenantWide (treeName omitted)."
        },
        {
          "name": "operations",
          "type": "LatticeOperation",
          "required": true,
          "notes": "A non-empty subset of the data-plane operations."
        },
        {
          "name": "effect",
          "type": "LatticeEffect",
          "required": true
        },
        {
          "name": "treeName",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Required for Tree, Key and Prefix scopes; omitted for TenantWide."
        },
        {
          "name": "keyOrPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "May be subject-relative: {subject} (the caller's subject id) or {group:<prefix>} (each of the caller's groups starting with <prefix>, prefix stripped), each followed by a literal delimiter such as '/', resolved per caller at decision time."
        },
        {
          "name": "subjectKind",
          "type": "TenantSubjectKind",
          "required": false,
          "default": "User",
          "notes": "User, TenantGroup (a tenant-local group name) or ClusterGroup."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRulePutResult",
        "shape": "Structured JSON projection of McpTenantRulePutResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "No facade retry policy is defined; configure retries on the caller or CallInvoker.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Putting the same draft again replaces the rule with an identical one; one stored copy per local id.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; MaxTenantRules uses verify-and-compensate.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.PutRuleAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_rule_remove",
      "in_process": "TenantAccessToolHandlers.RemoveRuleAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#remove-tenant-rule",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant the call acts on; groups, trees and rules are named tenant-locally within it."
        },
        {
          "name": "ruleId",
          "type": "string",
          "required": true,
          "notes": "The tenant-local rule id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantRuleRemoveResult",
        "shape": "Structured JSON projection of McpTenantRuleRemoveResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer denies the tool, or the facade refuses a caller that is neither a platform operator nor an admin of the tenant."
        },
        {
          "error_id": "invalid-argument",
          "condition": "An argument is missing or malformed, the tenant is the reserved default tenant, a confinement rule refuses the request (answered with fixed text naming the rule), or a group removal would remove the last admin entry."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Delegated tenant access administration is disabled on the cluster, or a delegated access cap would be exceeded (the message names the dimension and limit)."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Reissue the same request after an ambiguous failure; the removal is idempotent and removing an absent rule reports false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs#ILatticeTenantPolicyAdmin.RemoveRuleAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Removing an absent rule reports false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "concurrency": {
        "rule": "Rule writes run under system origin through the policy store; removal checks no rule cap.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantPolicyAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolHandlers.Policy.cs#TenantAccessToolHandlers.RemoveRuleAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolGroup.cs#TenantAccessToolGroup",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAccessToolFaults.cs#TenantAccessToolFaults"
      ]
    },
    {
      "id": "lattice_tenant_set_quotas",
      "in_process": "TenantAdminToolInvocations.SetTenantQuotasAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#set-tenant-quotas",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateSetQuotasTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id whose quotas to author. Must be a valid, non-empty tenant id that is registered and is not the reserved default tenant."
        },
        {
          "name": "maxBytes",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The maximum total stored value bytes, or null for unbounded on this dimension. Must be non-negative when supplied."
        },
        {
          "name": "maxKeys",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The maximum total live key count, or null for unbounded on this dimension. Must be non-negative when supplied."
        },
        {
          "name": "maxMemoryBytes",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The maximum resident memory in bytes, or null for unbounded on this dimension. Must be non-negative when supplied."
        },
        {
          "name": "maxTreeCount",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The maximum number of trees the tenant may own, or null for unbounded on this dimension. Must be non-negative when supplied."
        },
        {
          "name": "maxOpsPerSecond",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The maximum sustained operations per second, or null for unbounded on this dimension. Must be non-negative when supplied."
        },
        {
          "name": "burstPercent",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The transient burst headroom above the bounded ceilings, as a percentage (0 for none). Must be non-negative."
        },
        {
          "name": "maxGroups",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Delegated tenant access cap, or null for the default cap (500). Never unbounded."
        },
        {
          "name": "maxMembershipEdges",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Delegated tenant access cap, or null for the default cap (10000). Never unbounded."
        },
        {
          "name": "maxMemberSubjects",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Delegated tenant access cap, or null for the default cap (5000). Never unbounded."
        },
        {
          "name": "maxTenantRules",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Delegated tenant access cap, or null for the default cap (1000). Never unbounded."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantSetQuotasResult",
        "shape": "Structured JSON projection of McpTenantSetQuotasResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe when resubmitting the same quota descriptor.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Replacing quotas with the same descriptor is idempotent.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "concurrency": {
        "rule": "Quota descriptor replaces the tenant current quotas in the registry record.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.SetTenantQuotasAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_set_residency",
      "in_process": "TenantAdminToolInvocations.SetResidencyAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#set-tenant-residency",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateSetResidencyTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id whose residency to author. Must be a valid, non-empty tenant id that is registered."
        },
        {
          "name": "residencyRegions",
          "type": "string[]",
          "required": true,
          "notes": "The complete desired residency set. This is a replacement, not a delta: a currently-resident region absent from this list begins draining. Must not be empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantResidencyChangeResult",
        "shape": "Structured JSON projection of McpTenantResidencyChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry is safe when resubmitting the same complete residency set.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Setting the same residency set is idempotent; invalid sets are refused.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "concurrency": {
        "rule": "The last-resident-region guard runs before the write and after the committed CRDT join. Added regions automatically advance Provisioning to Backfilling to Online only after every discovered tenant tree finishes bootstrap from an Online source, is unfenced and has no tenant_offline dead letters. Dropped regions automatically drain through Offline to Removed; an operator advance is an explicit data-in-place override.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantRegionAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.SetResidencyAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_tenant_suspend",
      "in_process": "TenantAdminToolInvocations.SuspendTenantAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/tenantadmin.json#suspend-tenant",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup.CreateSuspendTool"
      },
      "availability": {
        "module": "AddTenantAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTenantAdminControlTools",
          "parameter": "enableControl",
          "source": "src/lattice.api.mcp/Tools/TenantAdmin/LatticeMcpTenantAdminServiceCollectionExtensions.cs#LatticeMcpTenantAdminServiceCollectionExtensions.AddTenantAdminTools"
        },
        "requires": [
          "AddLatticeTenantAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      },
      "request": [
        {
          "name": "tenantId",
          "type": "string",
          "required": true,
          "notes": "The tenant id to suspend. Must be a valid, non-empty tenant id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTenantStatusChangeResult",
        "shape": "Structured JSON projection of McpTenantStatusChangeResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No facade retry policy is defined; suspending an already-suspended tenant is idempotent.",
        "source": "src/lattice.api.tenantadmin.grpc/LatticeTenantAdminApiGrpcClient.cs"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Suspending an already-suspended tenant reports Changed false.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "concurrency": {
        "rule": "Status transition is written through the tenant registry record.",
        "source": "src/lattice.api.abstractions/TenantAdmin/ILatticeTenantAdmin.cs"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolInvocations.cs#TenantAdminToolInvocations.SuspendTenantAsync",
        "src/lattice.api.mcp/Tools/TenantAdmin/TenantAdminToolGroup.cs#TenantAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_bulk_load_append",
      "in_process": "TreeAdminLifecycleToolHandlers.AppendBulkLoadAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#append-bulk-load",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree being bulk-loaded. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The bulk-load operation id supplied to the begin call. Must be non-empty and must not contain '/'."
        },
        {
          "name": "chunkIndex",
          "type": "long",
          "required": true,
          "notes": "The zero-based, monotonically increasing chunk index. Re-sending the same index with the same operation id is idempotent, so a broken stream resumes from its last un-acknowledged chunk."
        },
        {
          "name": "entries",
          "type": "IReadOnlyList<DataEntryDto>?",
          "required": false,
          "default": "null",
          "notes": "The chunk's entries, in strictly ascending key order. Keys must not repeat within the chunk; the caller is responsible for keeping keys ascending across chunk boundaries too."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeBulkLoadChunkAck",
        "shape": "Structured JSON projection of TreeBulkLoadChunkAck returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Re-drive only the last un-acknowledged chunk under the same operationId and chunkIndex; never re-drive a chunk that a later chunk has already superseded on the same shard.",
        "source": "docs/lattice.api.treeadmin/README.md"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The facade keys each chunk as operationId/chunkIndex and a shard records only the most recent bulk chunk it completed, so re-driving that chunk is a no-op while re-driving an older chunk after a later one reached the same shard is not deduplicated.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.BulkLoad.cs#ShardRootGrain.BulkAppendAsync"
      },
      "concurrency": {
        "rule": "The facade rejects a chunk whose keys are not strictly ascending within the chunk and a negative chunkIndex; key order across chunks and a monotonic chunkIndex are caller obligations it does not check.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.AppendBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.AppendBulkLoadAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_bulk_load_begin",
      "in_process": "TreeAdminLifecycleToolHandlers.BeginBulkLoadAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#begin-bulk-load",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The empty tree to bulk-load. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The caller's stable, idempotent bulk-load operation id. Must be non-empty and must not contain '/'. Reuse the same id across a resumed stream so re-driven chunks are deduplicated."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeBulkLoadSession",
        "shape": "Structured JSON projection of TreeBulkLoadSession returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry begin only while no chunk has been appended; after the first acknowledged chunk, do not re-issue begin, resume by re-driving the last un-acknowledged chunk under the same operationId.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BeginBulkLoadAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The session holds no server-side state and begin re-runs the deep emptiness probe on every call, so a repeated begin succeeds only while the tree is still empty and throws TreeNotEmptyException once any chunk has landed.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.BeginBulkLoadAsync"
      },
      "concurrency": {
        "rule": "The target tree must be empty, and the deep diagnostics probe must successfully sample every shard; any shard sample failure is refused fail-closed instead of being counted as empty.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.BeginBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.BeginBulkLoadAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_bulk_load_commit",
      "in_process": "TreeAdminLifecycleToolHandlers.CommitBulkLoadAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#commit-bulk-load",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree being bulk-loaded. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The bulk-load operation id supplied to the begin call. Must be non-empty and must not contain '/'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeBulkLoadResult",
        "shape": "Structured JSON projection of TreeBulkLoadResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Same operationId confirms already durable chunks.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.CommitBulkLoadAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_compaction_trigger",
      "in_process": "TreeAdminLifecycleToolHandlers.TriggerShardCompactionAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#trigger-shard-compaction",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.NonDestructiveMutatingTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose shard to compact. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "shardIndex",
          "type": "int",
          "required": true,
          "notes": "The zero-based physical shard index to compact."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeCompactionTriggerResult",
        "shape": "Structured JSON projection of TreeCompactionTriggerResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Compaction is online and idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "concurrency": {
        "rule": "Operator trigger bypasses background cooldown.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.TriggerShardCompactionAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_operation_cancel",
      "in_process": "TreeAdminOperationToolHandlers.CancelOperationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#cancel-tree-admin-operation",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id to cancel."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Cancelling needs the grant that starting the operation needed; the work stops at its next progress report, and a WAL move past its flip is not undone.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#CancelOperationAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_operation_list",
      "in_process": "TreeAdminOperationToolHandlers.ListOperationsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#list-tree-admin-operations",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The previous page token."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Zero takes the default of 50; clamped to 500."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationPage",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Lists newest-first only the treeadmin. operations visible to the caller.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#ListOperationsAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_operation_status",
      "in_process": "TreeAdminOperationToolHandlers.GetOperationStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-tree-admin-operation-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from a start tool handle."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to treeadmin. kinds, the caller tenant and trees the caller may read; an invisible operation reads as null.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#GetOperationStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_orphaned_leaves_audit",
      "in_process": "TreeAdminLifecycleToolHandlers.AuditOrphanedLeavesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": [
        "api/treeadmin.json#audit-orphaned-leaves",
        "api/treeadmin.json#survey-orphaned-leaves"
      ],
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to audit for orphaned leaves. Must not be null or empty."
        },
        {
          "name": "resumeFrom",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The previous batch's resumeFrom token, passed back unaltered, or omitted to start a new pass. One call is one bounded batch: drive the pass until the report says complete=true, because until then an empty finding list describes only the part of the tree the batch reached."
        },
        {
          "name": "survey",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Opt-in read-only census of every orphan key (up to the per-leaf safety bound). Default false stops at the first miss. Keep true on resumed survey batches. VerifiedKeyCount remains a prefix length; separate nullable survey counts report verified, missing and routing-contradicting keys."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeOrphanedLeafReport",
        "shape": "Structured JSON projection of TreeOrphanedLeafReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.AuditOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.AuditOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.AuditOrphanedLeavesAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_orphaned_leaves_audit_start",
      "in_process": "TreeAdminOperationToolHandlers.StartOrphanedLeavesAuditAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-orphaned-leaves-audit",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree id."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesAuditAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Read; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartOrphanedLeavesAuditAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_orphaned_leaves_repair",
      "in_process": "TreeAdminLifecycleToolHandlers.RepairOrphanedLeavesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#repair-orphaned-leaves",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose orphaned leaves to repair. Must not be null or empty."
        },
        {
          "name": "resumeFrom",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The previous batch's resumeFrom token, passed back unaltered, or omitted to start a new pass. One call is one bounded batch: drive the pass until the report says complete=true, then re-audit. If a call times out, its return value is not authoritative and its absence does not mean nothing happened - re-audit rather than retrying blindly, though re-running is safe and cannot double-repair."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeOrphanedLeafReport",
        "shape": "Structured JSON projection of TreeOrphanedLeafReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running is safe after a timeout.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Audit, repair to completion, then re-audit.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.RepairOrphanedLeavesAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_orphaned_leaves_repair_start",
      "in_process": "TreeAdminOperationToolHandlers.StartOrphanedLeavesRepairAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-orphaned-leaves-repair",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree id."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesRepairAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree TreeLifecycle; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartOrphanedLeavesRepairAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_projection_digest",
      "in_process": "TreeAdminDiagnosticsToolHandlers.GetProjectionDigestAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-projection-digest",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree the shard belongs to. Must not be null or empty."
        },
        {
          "name": "shardIndex",
          "type": "int",
          "required": true,
          "notes": "The zero-based physical shard index whose leaf-projection digest to read. Must not be negative."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ShardProjectionDigestReport",
        "shape": "Structured JSON projection of ShardProjectionDigestReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only digest.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.GetProjectionDigestAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_retention_get",
      "in_process": "TreeAdminLifecycleToolHandlers.GetHistoryRetentionAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-history-retention",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose retention policy to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeHistoryRetention",
        "shape": "Structured JSON projection of TreeHistoryRetention returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetHistoryRetentionAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_retention_set",
      "in_process": "TreeAdminLifecycleToolHandlers.SetHistoryRetentionAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#set-history-retention",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.NonDestructiveMutatingTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose retention policy to set. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "mode",
          "type": "TreeHistoryRetentionMode?",
          "required": false,
          "default": "null",
          "notes": "Retention mode for LWW value bytes: MetadataOnly stores hash and length only; FullValue stores the bytes; Hybrid stores bytes for recent revisions and metadata for older ones. Null clears the override (falls back to MetadataOnly)."
        },
        {
          "name": "windowSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "Optional age in seconds after which a revision row expires. Null clears the age bound (revisions do not expire by age). Must be strictly positive when supplied."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeHistoryRetention",
        "shape": "Structured JSON projection of TreeHistoryRetention returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "The facade reports a tree-not-registered or not-found fault and the MCP translator surfaces it as an actionable McpException."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the registry overwrites the same retention fields and the facade reads back the effective policy.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetHistoryRetentionAsync writes the requested retention mode and window ticks onto the registry entry, replacing the same fields on repeat.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "Already-written rows keep their stamped shape.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.SetHistoryRetentionAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_advance_and_migrate_start",
      "in_process": "TreeAdminSchemaOperationTools.StartAdvanceAndMigrateAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#start-advance-and-migrate",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateControlTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The governed tree."
        },
        {
          "name": "newTargetVersion",
          "type": "uint",
          "required": true,
          "notes": "The new target version. Must be strictly greater than the tree's current target."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A fresh start whose target no longer advances fails the operation in its first phase.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartAdvanceAndMigrateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_advance_target_version",
      "in_process": "TreeAdminSchemaToolHandlers.AdvanceTargetVersionAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#advance-target-version",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "newTargetVersion",
          "type": "uint",
          "required": true,
          "notes": "The new target version. Must be strictly greater than the tree's current target."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaVersionConfig",
        "shape": "Structured JSON projection of LatticeSchemaVersionConfig returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not retry blindly after success because the target version must strictly advance.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The target is monotonic and the new version must be strictly greater than the current target.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "concurrency": {
        "rule": "New writes are stamped at the new version on the serving silo as soon as the call returns and on every other silo within LatticeSchemaVersioningOptions.PropagationInterval (one second by default); existing values are upcast lazily on read.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.AdvanceTargetVersionAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_clear_policy",
      "in_process": "TreeAdminSchemaToolHandlers.ClearPolicyAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#clear-policy",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "bool",
        "shape": "Structured JSON projection of bool returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying converges on no policy; the response may change from Removed=true to Removed=false.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation returns false when no policy remains.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and mutation.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.ClearPolicyAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_clear_version_config",
      "in_process": "TreeAdminSchemaToolHandlers.ClearVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#clear-version-config",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "bool",
        "shape": "Structured JSON projection of bool returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying converges on the tree being unversioned; the response may change from Removed=true to Removed=false.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Returns false when the tree was already unversioned.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "concurrency": {
        "rule": "New writes are no longer stamped; already stamped values remain self-describing and are still stripped on read.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.ClearVersionConfigAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_compliance_scan_cancel",
      "in_process": "LatticeOperationToolInvocations.CancelAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#cancel-compliance-scan",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id to cancel."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Cancellation is recorded durably; repeating it returns the same or a terminal status.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "A second cancel request leaves the operation unchanged; a terminal operation is returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_compliance_scan_list",
      "in_process": "LatticeOperationToolInvocations.ListAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#list-compliance-scans",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum operations per page; <= 0 uses the server default."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation cursor from a previous page."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationPage",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only listing; safe to repeat with the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_compliance_scan_start",
      "in_process": "TreeAdminOperationTools.StartComplianceScanAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#start-compliance-scan",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to scan."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#StartComplianceScanAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#ILatticeSchemaComplianceOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_compliance_scan_status",
      "in_process": "LatticeOperationToolInvocations.GetStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-compliance-scan-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from a start tool handle."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_count_dead_letters",
      "in_process": "TreeAdminSchemaToolHandlers.CountDeadLettersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#count-dead-letters",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "int",
        "shape": "Structured JSON projection of int returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only count after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and read.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.CountDeadLettersAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_get_policy",
      "in_process": "TreeAdminSchemaToolHandlers.GetPolicyAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-policy",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaPolicy?",
        "shape": "Structured JSON projection of LatticeSchemaPolicy? returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only policy lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation returns Found=false when no policy exists.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and read.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#GetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.GetPolicyAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_get_registry",
      "in_process": "TreeAdminSchemaToolHandlers.GetRegistryAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-registry",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaRuntimeRegistration",
        "shape": "Descriptors, immutable migration hops and advertised stable host transform ids. No CLR names, code or assemblies."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Identical registration is idempotent; changed definitions conflict. Reads have no writes.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Immutable descriptors and hops are appended; matching definitions do not change them.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "concurrency": {
        "rule": "Durable effective-tree catalog in the selected region, shared by silos. Not automatically replicated; provision matching definitions and host transforms in each serving region.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#GetRegistryAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_get_remediation_status",
      "in_process": "TreeAdminSchemaToolHandlers.GetRemediationStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-remediation-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaRemediationReport",
        "shape": "Structured JSON projection of LatticeSchemaRemediationReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "concurrency": {
        "rule": "Reports the current or last-known remediation status.",
        "source": "src/lattice.schema/ILatticeSchemaRemediationAdmin.cs#GetRemediationStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.GetRemediationStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_get_version_config",
      "in_process": "TreeAdminSchemaToolHandlers.GetVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-version-config",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaVersionConfig?",
        "shape": "Structured JSON projection of LatticeSchemaVersionConfig? returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only config lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation returns Found=false when the tree is unversioned.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "concurrency": {
        "rule": "Version operations require AddLatticeSchemaVersioning to be registered.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#RequireVersionAdmin"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.GetVersionConfigAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_list_dead_letters",
      "in_process": "TreeAdminSchemaToolHandlers.ListDeadLettersAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#stream-dead-letters",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "SchemaDeadLetterListResult",
        "shape": "Structured JSON projection of SchemaDeadLetterListResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only server-streaming drain; cancellation cleanly ends the stream.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#StreamDeadLetters"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only bounded-memory stream.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Large queues enumerate with bounded memory via IAsyncEnumerable.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.ListDeadLettersAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_migration_start",
      "in_process": "TreeAdminSchemaOperationTools.StartMigrationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#start-migration",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateControlTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The governed tree."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A tree already fully migrated finishes at once, having done nothing.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartMigrationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_operation_cancel",
      "in_process": "LatticeOperationToolInvocations.CancelAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#cancel-schema-operation",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateControlTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id to cancel."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Cancellation is recorded durably; repeating it returns the same or a terminal status.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "A second cancel request leaves the operation unchanged; a terminal operation is returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations. Cancelling requires schema management over the tree and takes effect only before cutover; a cancel during cutover is declined.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_operation_list",
      "in_process": "LatticeOperationToolInvocations.ListAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#list-schema-operations",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateReadTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum operations per page; <= 0 uses the server default (50, at most 500)."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation cursor from a previous page's nextPageToken; null starts at the newest."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationPage",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only listing; safe to repeat with the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_operation_status",
      "in_process": "LatticeOperationToolInvocations.GetStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#get-schema-operation-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateReadTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from a start tool handle."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_probe_capabilities",
      "in_process": "TreeAdminSchemaToolHandlers.ProbeCapabilitiesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#probe-capabilities",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaCapabilities",
        "shape": "Structured capability JSON: permission-only Can* grants, separate installed Supports* flags, and CanStart* readiness with unavailable reasons."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No-side-effect probe of the same gates used by real operations.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "No-side-effect operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "concurrency": {
        "rule": "CanView/CanManage/CanScanCompliance/CanRemediate remain permission-only; Supports* report installed support; CanStart* and unavailable reasons report current readiness. Every real operation rechecks authority and prerequisites.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.ProbeCapabilitiesAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_register",
      "in_process": "TreeAdminSchemaToolHandlers.RegisterSchemaAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#register-schema",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "registration",
          "type": "LatticeSchemaRuntimeRegistration",
          "required": true
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaRuntimeRegistration",
        "shape": "Descriptors, immutable migration hops and advertised stable host transform ids. No CLR names, code or assemblies."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Identical registration is idempotent; changed definitions conflict. Reads have no writes.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Immutable descriptors and hops are appended; matching definitions do not change them.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "concurrency": {
        "rule": "Durable effective-tree catalog in the selected region, shared by silos. Not automatically replicated; provision matching definitions and host transforms in each serving region.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#RegisterSchemaAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_remediation_start",
      "in_process": "TreeAdminSchemaOperationTools.StartRemediationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#start-remediation",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools.CreateControlTools"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The governed tree."
        },
        {
          "name": "transform",
          "type": "LatticeValueTransform",
          "required": true,
          "notes": "The per-value remediation transform IR that rewrites each stored value (for example a Passthrough pipeline of SetMember / DropMember / RenameMember operations)."
        },
        {
          "name": "targetPolicy",
          "type": "LatticeSchemaPolicy",
          "required": true,
          "notes": "The enforcement policy the transformed values must satisfy for the remediation to cut over. The remediation fails on the first value the transform cannot make compliant."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A start with the same parameters as an in-flight remediation follows it; different parameters fail the new operation in-band.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartRemediationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaOperationTools.cs#TreeAdminSchemaOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_set_policy",
      "in_process": "TreeAdminSchemaToolHandlers.SetPolicyAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#set-policy",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "policy",
          "type": "LatticeSchemaPolicy",
          "required": true,
          "notes": "The enforcement policy to apply: an ordered rule set (empty accepts every value) plus the per-tree strictIngest flag. A value is valid only when it satisfies every rule."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaPolicy",
        "shape": "Structured JSON projection of LatticeSchemaPolicy returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying the same request converges on the same replacement policy.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Sets or replaces the enforcement policy for the tree.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and mutation.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#SetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.SetPolicyAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_schema_set_version_config",
      "in_process": "TreeAdminSchemaToolHandlers.SetVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/schema.json#set-version-config",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminSchemaControlTools",
          "parameter": "enableSchemaControl",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeSchemaApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "schemaId",
          "type": "uint",
          "required": true,
          "notes": "The schema-family id stamped into every value's envelope for this tree."
        },
        {
          "name": "targetVersion",
          "type": "uint",
          "required": true,
          "notes": "The target schema version new writes are stamped at. Must be at least 1; the target is monotonic and only ever advances."
        },
        {
          "name": "strictIngest",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true (and strict ingest is also enabled host-wide), a replicated entry - a plain last-writer-wins write, a typed-CRDT delta or an atomic-batch entry - whose version is newer than the target or cannot be upcast to it is dead-lettered instead of applied. Local writes are never dead-lettered; a backup restore and a tree merge never reach this check. Defaults to false (trusted ingest)."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "LatticeSchemaVersionConfig",
        "shape": "Structured JSON projection of LatticeSchemaVersionConfig returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying the same request converges on the same replacement version config.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Opts in or replaces the existing version config.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "concurrency": {
        "rule": "New writes are stamped at the configured target version on the serving silo as soon as the call returns and on every other silo within LatticeSchemaVersioningOptions.PropagationInterval (one second by default).",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminSchemaToolHandlers.cs#TreeAdminSchemaToolHandlers.SetVersionConfigAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_shard_diagnostics",
      "in_process": "TreeAdminDiagnosticsToolHandlers.GetDiagnosticsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-diagnostics",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to diagnose. Must not be null or empty."
        },
        {
          "name": "deep",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, also count tombstoned and expired entries in each leaf. When false, page the leaf chain for live keys only and report tombstone counts as zero. Each mode is cached briefly."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeAdminDiagnosticReport",
        "shape": "Structured JSON projection of TreeAdminDiagnosticReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only diagnostics.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "concurrency": {
        "rule": "Both shallow and deep diagnostics page through every shard leaf chain; shallow counts live keys only and reports tombstones as zero, while deep also counts tombstoned and expired entries.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.GetDiagnosticsAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_shard_hotness",
      "in_process": "TreeAdminDiagnosticsToolHandlers.GetShardHotnessAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-shard-hotness",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to sample the per-shard read/write hotness of. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeHotnessReport",
        "shape": "Structured JSON projection of TreeHotnessReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Cheap non-blocking read-only sample.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.GetShardHotnessAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_shard_map_inspect",
      "in_process": "TreeAdminDiagnosticsToolHandlers.InspectShardMapAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#inspect-shard-map",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose shard-map topology to inspect. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ShardMapInspection",
        "shape": "Structured JSON projection of ShardMapInspection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only topology inspection.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.InspectShardMapAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_storage_usage",
      "in_process": "TreeAdminDiagnosticsToolHandlers.GetStorageUsageAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-storage-usage",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "deep",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, force an expensive fresh leaf-walk that re-measures every shard; when false (the default), return each tree's cheap cached figures, refilled from shard-root byte totals and WAL partitions without walking leaves."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "ClusterStorageUsageSummary",
        "shape": "Structured JSON projection of ClusterStorageUsageSummary returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only storage accounting.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.GetStorageUsageAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_storage_usage_refresh_cancel",
      "in_process": "LatticeOperationToolInvocations.CancelAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#cancel-storage-usage-refresh",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id to cancel."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Cancellation is recorded durably; repeating it returns the same or a terminal status.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "A second cancel request leaves the operation unchanged; a terminal operation is returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_storage_usage_refresh_list",
      "in_process": "LatticeOperationToolInvocations.ListAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#list-storage-usage-refreshes",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Maximum operations per page; <= 0 uses the server default."
        },
        {
          "name": "pageToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Continuation cursor from a previous page."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationPage",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only listing; safe to repeat with the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_storage_usage_refresh_start",
      "in_process": "TreeAdminOperationTools.StartStorageRefreshAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-storage-usage-refresh",
      "tool_annotations": {
        "read_only": false,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id for the tracked operation; null generates one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeStorageUsageOperations.cs#StartStorageUsageRefreshAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeStorageUsageOperations.cs#ILatticeStorageUsageOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_storage_usage_refresh_status",
      "in_process": "LatticeOperationToolInvocations.GetStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-storage-usage-refresh-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools.Create"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools"
      },
      "request": [
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The operation id from a start tool handle."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpLatticeOperationResult",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationTools.cs#TreeAdminOperationTools",
        "src/lattice.api.mcp/Tools/Operations/LatticeOperationToolInvocations.cs"
      ]
    },
    {
      "id": "lattice_treeadmin_tag_index_list",
      "in_process": "TreeAdminLifecycleToolHandlers.ListTagIndexesAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#list-tag-indexes",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeTagIndexCatalog",
        "shape": "Structured JSON projection of TreeTagIndexCatalog returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ListTagIndexesAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tag_index_reconcile_start",
      "in_process": "TreeAdminOperationToolHandlers.StartTagIndexReconcileAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-tag-index-reconcile",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The tag-index name."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartTagIndexReconcileAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the tag-{indexName} tree; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartTagIndexReconcileAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_tag_index_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetTagIndexStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-tag-index-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "indexName",
          "type": "string",
          "required": true,
          "notes": "The logical tag-index name whose status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeTagIndexStatus",
        "shape": "Structured JSON projection of TreeTagIndexStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetTagIndexStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_create",
      "in_process": "TreeAdminLifecycleToolHandlers.CreateTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#create-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to create. Must not be null, empty, or a reserved system tree id (the '_lattice_' namespace)."
        },
        {
          "name": "shardCount",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "The initial physical shard count to pin, or null for the library default. Honoured only when the tree is created for the first time."
        },
        {
          "name": "maxLeafKeys",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "The initial maximum keys per leaf node to pin, or null for the library default. Honoured only on first creation."
        },
        {
          "name": "maxInternalChildren",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "The initial maximum children per internal node to pin, or null for the library default. Honoured only on first creation."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeCreationResult",
        "shape": "Structured JSON projection of TreeCreationResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Creating an already registered tree is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.CreateTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_delete",
      "in_process": "TreeAdminLifecycleToolHandlers.DeleteTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#delete-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to soft-delete. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeDeletionStatus",
        "shape": "Structured JSON projection of TreeDeletionStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Deleting an already deleted tree is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "concurrency": {
        "rule": "Rejected while the tree is the source of a materialised view, while another tree aliases it, when its alias targets a tree it does not own, or while a resize, restore or remediation is changing its alias.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.DeleteTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_deletion_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetTreeDeletionStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-tree-deletion-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose soft-deletion status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeDeletionStatus",
        "shape": "Structured JSON projection of TreeDeletionStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetTreeDeletionStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_exists",
      "in_process": "TreeAdminLifecycleToolHandlers.CheckTreeExistsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#check-tree-exists",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to check for registration. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeExistenceResult",
        "shape": "Structured JSON projection of TreeExistenceResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.CheckTreeExistsAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_get_config",
      "in_process": "TreeAdminLifecycleToolHandlers.GetTreeConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-tree-config",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose registry-backed configuration to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeConfigurationReport",
        "shape": "Structured JSON projection of TreeConfigurationReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetTreeConfigAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_get_shard_map",
      "in_process": "TreeAdminLifecycleToolHandlers.GetShardMapAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-shard-map",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose registry-persisted shard map to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeShardMapView",
        "shape": "Structured JSON projection of TreeShardMapView returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetShardMapAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_purge",
      "in_process": "TreeAdminLifecycleToolHandlers.PurgeTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#purge-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The soft-deleted tree to hard-purge. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "confirm",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Must be set to true to acknowledge the irreversible destruction of the tree's data. A false or omitted value is rejected."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeDeletionStatus",
        "shape": "Structured JSON projection of TreeDeletionStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry. The purge is accept-then-poll: the first call records it in progress and hands the shard walk to a background timer, then waits a bounded time; a call while the purge runs, after the shard walk completed but registry removal is still owed, or after it completed returns the current status without error, so after an ambiguous failure or a return with PurgeInProgress still true, read the deletion status or simply call again.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#TreeDeletionGrain.SettleRegistryEntryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Accepting a purge that is already running, still settling registry removal, or complete changes nothing and returns its status; the background walk resumes from its last durably recorded shard after a restart, and an owed registry removal is re-driven from RegistryUnregisterPending.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#TreeDeletionGrain.SettleRegistryEntryAsync"
      },
      "concurrency": {
        "rule": "confirm must be true before irreversible purge.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PurgeTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.PurgeTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_recover",
      "in_process": "TreeAdminLifecycleToolHandlers.RecoverTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#recover-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The soft-deleted tree to recover. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeDeletionStatus",
        "shape": "Structured JSON projection of TreeDeletionStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry is safe until recovery state is durably cleared; after success a repeated call fails with InvalidOperationException because the tree is not deleted.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#RecoverPhysicalAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "RecoverPhysicalAsync re-runs before IsDeleted is cleared, but a repeat after a successful clear throws because the tree is no longer deleted.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#RecoverPhysicalAsync"
      },
      "concurrency": {
        "rule": "Available within the soft-delete recovery window; on an aliased tree it recovers the live copy the delete pinned, and a live resized tree is not deleted, so recovering it is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RecoverTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.RecoverTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_reshard",
      "in_process": "TreeAdminLifecycleToolHandlers.ReshardTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#reshard-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to reshard. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "targetShardCount",
          "type": "int",
          "required": true,
          "notes": "Desired physical shard count. A larger target grows the tree and a smaller one shrinks it; an equal target is a no-op; the target must be at least 2 and at most the smaller of 4096 and the tree's virtual slot count."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeReshardStatus",
        "shape": "Structured JSON projection of TreeReshardStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "A request for the current physical shard count, or a matching in-flight target, is a no-op; a different in-flight target is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "concurrency": {
        "rule": "A reshard with a different target is rejected; a resize in flight, or a completed resize that can still be undone while the previous copy mirrors into the resized one, rejects a reshard only when the requested target requires a migration, because the empty-tree re-pin fast path runs before the resize interlock.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ReshardTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_reshard_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetReshardStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-reshard-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose reshard status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeReshardStatus",
        "shape": "Structured JSON projection of TreeReshardStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetReshardStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_resize",
      "in_process": "TreeAdminLifecycleToolHandlers.ResizeTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#resize-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to resize. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "newMaxLeafKeys",
          "type": "int",
          "required": true,
          "notes": "The new maximum number of keys per leaf node. Must be at least 2."
        },
        {
          "name": "newMaxInternalChildren",
          "type": "int",
          "required": true,
          "notes": "The new maximum number of children per internal node. Must be at least 3."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeResizeStatus",
        "shape": "Structured JSON projection of TreeResizeStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Matching in-flight target is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "concurrency": {
        "rule": "A resize with different parameters, or a reshard, is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ResizeTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_resize_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetResizeStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-resize-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose resize status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeResizeStatus",
        "shape": "Structured JSON projection of TreeResizeStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetResizeStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_resize_undo",
      "in_process": "TreeAdminLifecycleToolHandlers.UndoTreeResizeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#undo-tree-resize",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose in-flight or most recent completed resize to undo. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeResizeStatus",
        "shape": "Structured JSON projection of TreeResizeStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry: RequestUndoAsync records the undo intent once per resize operation id and acknowledges a repeat while that undo is pending; after the unwind is recorded a repeat throws InvalidOperationException whose message names the most recent resize as already undone, which is the benign terminal condition.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The undo intent is keyed by the resize operation id, so a repeat while it is pending starts no second unwind; once the unwind is recorded a repeat is refused because no resize remains to undo.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      },
      "concurrency": {
        "rule": "RequestUndoAsync is interleaved with the resize phase loop and writes only the separate undo-intent slot under a semaphore, so the undo is admitted even while a resize phase is in flight; the phase loop runs the unwind at its next phase or snapshot-slice boundary, and the call waits only a bounded time for it. A returned status with UndoRequested true means the undo was accepted and is still unwinding; poll GetResizeStatusAsync instead of retrying.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#UndoTreeResizeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.UndoTreeResizeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_resolve_alias",
      "in_process": "TreeAdminLifecycleToolHandlers.ResolveTreeAliasAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#resolve-tree-alias",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The logical tree to resolve to its physical target. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeAliasResolution",
        "shape": "Structured JSON projection of TreeAliasResolution returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ResolveTreeAliasAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_restore",
      "in_process": "TreeAdminLifecycleToolHandlers.RestoreTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#restore-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to restore the backup into. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed id of the backup to restore. Must not be null or empty."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional idempotency key that makes a retried restore a no-op, or null to derive one from the request. Must be non-empty when supplied."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeRestoreResult",
        "shape": "Structured JSON projection of TreeRestoreResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Same operationId converges to the same state.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeAsync"
      },
      "concurrency": {
        "rule": "The composed backup/restore engine authorizes the target before coordinated dispatch and requires Backup authority on any distinct captured source tree for a cross-tree retarget.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.RestoreTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_restore_revert",
      "in_process": "TreeAdminLifecycleToolHandlers.RevertTreeRestoreAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#revert-tree-restore",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "targetTreeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose restore is being reverted. Must match the restore result's target tree and must not be a reserved system tree id."
        },
        {
          "name": "backupId",
          "type": "string",
          "required": true,
          "notes": "The backup id that was restored, from the tree_restore result."
        },
        {
          "name": "operationId",
          "type": "string",
          "required": true,
          "notes": "The idempotency key from the tree_restore result."
        },
        {
          "name": "shadowPhysicalTreeId",
          "type": "string",
          "required": true,
          "notes": "The physical tree the alias now points at, from the tree_restore result's shadowPhysicalTreeId. Required: a restore with no shadow physical tree is not revertible."
        },
        {
          "name": "previousPhysicalTreeId",
          "type": "string",
          "required": true,
          "notes": "The physical tree the alias pointed at before the restore, from the tree_restore result's previousPhysicalTreeId. Required to swap the alias back."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeRestoreResult",
        "shape": "Structured JSON projection of TreeRestoreResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RevertTreeRestoreAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Shadow-cutover revert is idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RevertTreeRestoreAsync"
      },
      "concurrency": {
        "rule": "The backup/restore engine revalidates caller-supplied physical tree ids against registry provenance before a shadow-cutover revert can repoint an alias.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#AssertPhysicalBelongsToTargetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.RevertTreeRestoreAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_restore_set",
      "in_process": "TreeAdminLifecycleToolHandlers.RestoreTreeSetAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#restore-tree-set",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "setId",
          "type": "string",
          "required": true,
          "notes": "The content-addressed id of the backup set to restore. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeRestoreSetResult",
        "shape": "Structured JSON projection of TreeRestoreSetResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeSetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running the same set restore converges to the same state.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeSetAsync"
      },
      "concurrency": {
        "rule": "The composed backup/restore engine authorizes every member target before coordinated dispatch, then replicated members flip together as an all-or-nothing coordinated restore.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreSetAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.RestoreTreeSetAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_set_alias",
      "in_process": "TreeAdminLifecycleToolHandlers.SetTreeAliasAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#set-tree-alias",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The logical tree to alias. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "physicalTreeId",
          "type": "string",
          "required": true,
          "notes": "The physical tree the logical tree should resolve to. Must not be null or empty, must differ from treeId, and must not itself be aliased."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeAliasResolution",
        "shape": "Structured JSON projection of TreeAliasResolution returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "The alias is refused because another operation (a resize, shadow-cutover restore, restore revert, or schema remediation or migration) holds the tree's alias reservation; the message names the holder."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; a repeated current alias leaves the logical shard map unchanged and releases any redirect on the target, while an interrupted first attempt re-drives the target map carry and previous-copy redirect repair.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "CarryAcrossExplicitAliasAsync moves the target's shard map and split allocation mark onto the logical entry in the same registry write as the alias; repeating the same current alias carries no map change and releases target redirects.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "concurrency": {
        "rule": "Only one level of alias indirection is allowed, the alias is refused while either tree is deleted or a delete of it is pending, it is refused with InvalidOperationException naming the holder while a resize, shadow-cutover restore, restore revert, or schema remediation or migration holds the tree's alias reservation (retry after that operation completes, or cancel it), and a refused alias writes nothing; a successful alias carries the target's shard map and split allocation mark onto the logical tree, writes the replaced map to the previous physical entry when possible, arms previous-copy redirects, and releases target redirects.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.SetTreeAliasAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_set_config",
      "in_process": "TreeAdminLifecycleToolHandlers.SetTreeConfigAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#set-tree-config",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to configure. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "applyPublishEvents",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, write the publishEvents override; when false, leave the tree's publish-events override unchanged."
        },
        {
          "name": "publishEvents",
          "type": "bool?",
          "required": false,
          "default": "null",
          "notes": "The publish-events override to pin (true/false), or null to clear it (fall back to the silo-wide option). Honoured only when applyPublishEvents is true."
        },
        {
          "name": "applyMaintainProjectionDigest",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, write the maintainProjectionDigest override; when false, leave the tree's projection-digest override unchanged."
        },
        {
          "name": "maintainProjectionDigest",
          "type": "bool?",
          "required": false,
          "default": "null",
          "notes": "The projection-digest-maintenance override to pin (true/false), or null to clear it. Honoured only when applyMaintainProjectionDigest is true. The permanent-disable latch, once set, supersedes a pinned true."
        },
        {
          "name": "applyHistoryRetention",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, write the durable-history retention override (mode and window, each cleared independently by a null value); when false, leave the tree's history-retention override unchanged."
        },
        {
          "name": "historyRetentionMode",
          "type": "HistoryRetentionMode?",
          "required": false,
          "default": "null",
          "notes": "The durable-history retention mode to pin, or null to clear it. Honoured only when applyHistoryRetention is true."
        },
        {
          "name": "historyRetentionWindowTicks",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The durable-history age bound in ticks to pin, or null to clear it. Must be strictly positive when supplied. Honoured only when applyHistoryRetention is true."
        },
        {
          "name": "applyWalMaxRetainedBytes",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, write the walMaxRetainedBytes override; when false, leave the tree's WAL retained-byte ceiling override unchanged."
        },
        {
          "name": "walMaxRetainedBytes",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The advisory WAL retained-byte ceiling to pin, or null to clear it (fall back to the silo-wide option). Must be strictly positive when supplied. Honoured only when applyWalMaxRetainedBytes is true. The ceiling is advisory: it never changes what a WAL garbage-collection pass may trim, so lowering it cannot over-trim. Takes effect on the tree's next GC pass, with no silo restart."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeConfigurationReport",
        "shape": "Structured JSON projection of TreeConfigurationReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "The facade reports a tree-not-registered or not-found fault and the MCP translator surfaces it as an actionable McpException."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; every applied dimension is overwritten with the same value and unapplied dimensions are skipped again.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetTreeConfigAsync applies each flagged registry override by replacing that dimension with the requested value, so reapplying the same partial update leaves the same configuration.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.SetTreeConfigAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_snapshot",
      "in_process": "TreeAdminLifecycleToolHandlers.SnapshotTreeAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#snapshot-tree",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The source tree to snapshot. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "destinationTreeId",
          "type": "string",
          "required": true,
          "notes": "The destination tree id to snapshot into. Must not be null, empty, reserved, or already exist."
        },
        {
          "name": "mode",
          "type": "TreeSnapshotMode",
          "required": true,
          "notes": "Snapshot mode: Offline quiesces the source tree during the copy; Online keeps it serving reads and writes."
        },
        {
          "name": "maxLeafKeys",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "Optional maximum keys per leaf node for the destination tree. Null inherits the source tree's sizing."
        },
        {
          "name": "maxInternalChildren",
          "type": "int?",
          "required": false,
          "default": "null",
          "notes": "Optional maximum children per internal node for the destination tree. Null inherits the source tree's sizing."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeSnapshotStatus",
        "shape": "Structured JSON projection of TreeSnapshotStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Matching in-flight destination and mode is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "concurrency": {
        "rule": "Different in-flight snapshot or existing destination is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.SnapshotTreeAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_snapshot_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetSnapshotStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-snapshot-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The source tree whose snapshot status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeSnapshotStatus",
        "shape": "Structured JSON projection of TreeSnapshotStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetSnapshotStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_tree_stats",
      "in_process": "TreeAdminDiagnosticsToolHandlers.GetTreeStatsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-tree-stats",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree to summarize topology, live-key counts, and storage bytes for. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeStatsReport",
        "shape": "Structured JSON projection of TreeStatsReport returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only statistics snapshot.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminDiagnosticsToolHandlers.cs#TreeAdminDiagnosticsToolHandlers.GetTreeStatsAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_view_create",
      "in_process": "TreeAdminLifecycleToolHandlers.CreateViewAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#create-view",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "viewName",
          "type": "string",
          "required": true,
          "notes": "The logical materialised-view name to create. Must not be null or empty."
        },
        {
          "name": "sourceTreeId",
          "type": "string",
          "required": true,
          "notes": "The directly writable source tree whose WAL the view tails. Must not be null, empty, or another view tree."
        },
        {
          "name": "providerKey",
          "type": "string",
          "required": true,
          "notes": "The stable runtime projection provider key configured on the target cluster."
        },
        {
          "name": "providerPayloadBase64",
          "type": "string",
          "required": true,
          "notes": "The provider's opaque persisted payload encoded as base64. Decoded content is limited to 65536 bytes and is never returned by status or list operations."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeViewStatus",
        "shape": "Structured JSON projection of TreeViewStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the durable view registration returns immediately when the same registration already exists.",
        "source": "src/lattice/Views/ViewRegistryGrain.cs#RegisterAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The runtime view registry returns without writing when the existing registration equals the requested registration.",
        "source": "src/lattice/Views/ViewRegistryGrain.cs#RegisterAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateViewAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.CreateViewAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_view_drop",
      "in_process": "TreeAdminLifecycleToolHandlers.DropViewAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#drop-view",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "viewName",
          "type": "string",
          "required": true,
          "notes": "The logical materialised-view name to drop. Must not be null or empty, and must not be a startup-declared view."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "string",
        "shape": "Structured JSON projection of string returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Dropping an already absent runtime view is idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "concurrency": {
        "rule": "Startup-declared views cannot be dropped at runtime.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.DropViewAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_view_list",
      "in_process": "TreeAdminLifecycleToolHandlers.ListViewsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#list-views",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeViewCatalog",
        "shape": "Structured JSON projection of TreeViewCatalog returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ListViewsAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_view_rebuild_start",
      "in_process": "TreeAdminOperationToolHandlers.StartViewRebuildAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-view-rebuild",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "viewName",
          "type": "string",
          "required": true,
          "notes": "The logical view name."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewRebuildAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the view source tree; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartViewRebuildAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_view_reconcile_start",
      "in_process": "TreeAdminOperationToolHandlers.StartViewReconcileAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-view-reconcile",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "viewName",
          "type": "string",
          "required": true,
          "notes": "The logical view name."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewReconcileAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the view source tree; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartViewReconcileAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_view_status",
      "in_process": "TreeAdminLifecycleToolHandlers.GetViewStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-view-status",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "viewName",
          "type": "string",
          "required": true,
          "notes": "The logical materialised-view name whose status to read. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeViewStatus",
        "shape": "Structured JSON projection of TreeViewStatus returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetViewStatusAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_move_plan",
      "in_process": "TreeAdminLifecycleToolHandlers.PlanWalMoveAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#plan-wal-move",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose WAL partition to preview a move for. Must not be null or empty."
        },
        {
          "name": "partition",
          "type": "int",
          "required": true,
          "notes": "The WAL partition index to preview. Must be in range for the tree."
        },
        {
          "name": "targetProviderKey",
          "type": "string",
          "required": true,
          "notes": "The target storage provider key to preview a move to. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeWalMovePlan",
        "shape": "Structured JSON projection of TreeWalMovePlan returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read-only preview.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.PlanWalMoveAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_move_reclaim",
      "in_process": "TreeAdminLifecycleToolHandlers.ReclaimMovedWalSourceAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#reclaim-moved-wal-source",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.DestructiveTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose moved WAL source to reclaim. Must not be null, empty, or a reserved system tree id."
        },
        {
          "name": "partition",
          "type": "int",
          "required": true,
          "notes": "The WAL partition index whose orphaned source to reclaim. Must be in range for the tree."
        },
        {
          "name": "sourceProviderKey",
          "type": "string",
          "required": true,
          "notes": "The provider key of the orphaned source tail. Must not be null or empty, and must not be the partition's live placement."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeWalMoveReceipt",
        "shape": "Structured JSON projection of TreeWalMoveReceipt returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; after the source tail is trimmed the live-range check leaves the outcome as NoOp.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ReclaimMovedWalSourceAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "ReclaimMovedWalSourceAsync trims only when the source provider still has a live retained range, otherwise it returns NoOp without trimming.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ReclaimMovedWalSourceAsync"
      },
      "concurrency": {
        "rule": "Refused if the source provider is the live placement.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReclaimMovedWalSourceAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.ReclaimMovedWalSourceAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_move_start",
      "in_process": "TreeAdminOperationToolHandlers.StartWalMoveAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#start-wal-move",
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": {
          "option": "LatticeApiMcpOptions.EnableTreeAdminLifecycleTools",
          "parameter": "enableLifecycle",
          "source": "src/lattice.api.mcp/Tools/TreeAdmin/LatticeMcpTreeAdminServiceCollectionExtensions.cs#LatticeMcpTreeAdminServiceCollectionExtensions.AddTreeAdminTools"
        },
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree id."
        },
        {
          "name": "partition",
          "type": "int",
          "required": true,
          "notes": "The WAL partition."
        },
        {
          "name": "targetProviderKey",
          "type": "string",
          "required": true,
          "notes": "The target provider key."
        },
        {
          "name": "quiesceLeaseSeconds",
          "type": "double",
          "required": false,
          "default": "0",
          "notes": "Zero takes the 30-second default."
        },
        {
          "name": "copyPageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "Zero takes the 256-entry default."
        },
        {
          "name": "disableVerifyAfterCopy",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "Skip target verification."
        },
        {
          "name": "operationId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional idempotency id; omit to generate one."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id."
        }
      ],
      "response": {
        "type": "McpTreeAdminOperationHandle",
        "shape": "Structured JSON projection returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#StartWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree TreeLifecycle; the operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminOperationToolHandlers.cs#StartWalMoveAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#Build",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_placement_audit",
      "in_process": "TreeAdminLifecycleToolHandlers.AuditWalPlacementAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#audit-wal-placement",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose WAL placement to audit. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeWalPlacementAudit",
        "shape": "Structured JSON projection of TreeWalPlacementAudit returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.AuditWalPlacementAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_placement_inspect",
      "in_process": "TreeAdminLifecycleToolHandlers.GetWalPlacementAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-wal-placement",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose WAL placement to inspect. Must not be null or empty."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "TreeWalPlacement",
        "shape": "Structured JSON projection of TreeWalPlacement returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminLifecycleToolHandlers.cs#TreeAdminLifecycleToolHandlers.GetWalPlacementAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup"
      ]
    },
    {
      "id": "lattice_treeadmin_wal_reclamation",
      "in_process": "TreeAdminWalReclamationToolHandlers.GetWalReclamationAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": "api/treeadmin.json#get-wal-reclamation",
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp/Tools/McpHandlerToolFactory.cs#McpHandlerToolFactory.ReadOnlyTool"
      },
      "availability": {
        "module": "AddTreeAdminTools",
        "package": "Orleans.Lattice.Api.Mcp",
        "opt_in": null,
        "requires": [
          "AddLatticeTreeAdminApi"
        ],
        "source": "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminWalReclamationToolHandlers.cs"
      },
      "request": [
        {
          "name": "treeId",
          "type": "string",
          "required": true,
          "notes": "The tree whose WAL reclamation to inspect. Must not be null or empty. An aliased tree is resolved to its physical tree."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "McpTreeWalReclamation",
        "shape": "Structured JSON projection of TreeWalReclamationReport: treeId, pinStoreReadable, pinCount, pinsWithoutOffset, isWedged, and floorHolder (consumerId, leafId, partition, pinOffset, persistedCheckpoint, state by name, holdsOffsetFloor) or null when the tree holds no pin."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "The host registers no ILatticeWalReclamation, or a remote cluster answers Unimplemented; either is surfaced as an McpException message naming the cause."
        },
        {
          "error_id": "facade-fault",
          "condition": "The facade operation named by facade_operation raises one of its own errors (for example InvalidOperationException, KeyNotFoundException or a tenant or ownership denial); see that operation's errors."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects; it never activates a leaf.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "sources": [
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminWalReclamationToolHandlers.cs#TreeAdminWalReclamationToolHandlers.GetWalReclamationAsync",
        "src/lattice.api.mcp/Tools/TreeAdmin/TreeAdminToolGroup.cs#TreeAdminToolGroup",
        "src/lattice.api.mcp/Remote/GrpcLatticeWalReclamation.cs#GrpcLatticeWalReclamation"
      ]
    },
    {
      "id": "repo-context_claim_status",
      "in_process": "RepoContextToolHandlers.ClaimStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name claim_status; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the memory record whose claim to inspect."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextClaimStatusResult",
        "shape": "Structured JSON projection of RepoContextClaimStatusResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildClaimStatusTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_context",
      "in_process": "RepoContextToolHandlers.ContextAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name context; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to bundle context from."
        },
        {
          "name": "task",
          "type": "string",
          "required": true,
          "notes": "The natural-language task to pack a ranked, explained context bundle for."
        },
        {
          "name": "top",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of files to consider. Clamped to the range [1, 50]; defaults to 10."
        },
        {
          "name": "responseBudgetTokens",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The hard token ceiling for the whole bundle, measured with the exact BPE token counter. Clamped to the range [1, 200000]; defaults to 8192. The bundle's reported total never exceeds it."
        },
        {
          "name": "detail",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "seen",
          "type": "string[]?",
          "required": false,
          "default": "null"
        },
        {
          "name": "known",
          "type": "string[]?",
          "required": false,
          "default": "null"
        },
        {
          "name": "session",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextContextResult",
        "shape": "Structured JSON projection of RepoContextContextResult returned by the handler. responseTokens is the estimated wire cost of the whole response; totalTokens is the packed source text total."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildContextTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_health",
      "in_process": "RepoContextToolHandlers.HealthAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name health; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional repository id. When supplied, report passive per-repository readiness and component evidence instead of process-wide readiness; no embedding, search, or recovery probe is executed."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextHealthResult",
        "shape": "Structured JSON projection of RepoContextHealthResult. Without repoId it reports host retrieval readiness; with repoId it includes repository-scoped passive evidence in repository."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync",
        "src/lattice.api.mcp.repocontext/RepoContextHealthResult.cs#RepoContextHealthResult.Repository",
        "src/lattice.api.mcp.repocontext/RepoContextRepositoryReadiness.cs#RepoContextRepositoryReadiness",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_index_status",
      "in_process": "RepoContextToolHandlers.IndexStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name index_status; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identity whose indexing job to inspect. A repository that was never onboarded reports status 'None'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoIndexProgress",
        "shape": "Structured JSON projection of RepoIndexProgress returned by the handler, including pending/walking/reconciling/applying/vectorising/done phases and resetting while repocontext_reset_index sweeps."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildIndexStatusTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_list_topics",
      "in_process": "RepoContextToolHandlers.ListTopicsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name list_topics; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier whose memory topics to enumerate."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextTopicsResult",
        "shape": "Structured JSON projection of RepoContextTopicsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildListTopicsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_neighbors",
      "in_process": "RepoContextToolHandlers.NeighborsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name neighbors; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The seed repository-context key to walk knowledge-linking edges from, for example 'repo/{repoId}/mem/{topic}/{id}'."
        },
        {
          "name": "relation",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional relation name to restrict the walk to (for example 'broader' or 'related'); omit to follow every relation."
        },
        {
          "name": "depth",
          "type": "int",
          "required": false,
          "default": "1",
          "notes": "The maximum number of hops to traverse. Clamped to the range [1, 3]; defaults to 1 (immediate neighbors)."
        },
        {
          "name": "maxNodes",
          "type": "int",
          "required": false,
          "default": "50",
          "notes": "The maximum number of neighbor entries to return. Clamped to the range [1, 100]; defaults to 50. A non-positive value applies the default of 50, not the ceiling."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextNeighborsResult",
        "shape": "Structured JSON projection of RepoContextNeighborsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildNeighborsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/Capture/RepoContextStore.cs#RepoContextStore.DefaultNeighborNodes",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      ]
    },
    {
      "id": "repo-context_outline",
      "in_process": "RepoContextToolHandlers.OutlineAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name outline; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier the file belongs to."
        },
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "The repository-relative file path to outline, for example 'src/foo/Bar.cs'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextOutlineResult",
        "shape": "Structured JSON projection of RepoContextOutlineResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildOutlineTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_recall",
      "in_process": "RepoContextToolHandlers.RecallAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name recall; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key to fetch, for example 'repo/{repoId}/file/{path}' or 'repo/{repoId}/mem/{topic}/{id}'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextEntryView",
        "shape": "Structured JSON projection of RepoContextEntryView returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRecallTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_related",
      "in_process": "RepoContextToolHandlers.RelatedAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name related; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier the file belongs to."
        },
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "The repository-relative file path whose related neighbourhood to resolve, for example 'src/foo/Bar.cs'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextRelatedResult",
        "shape": "Structured JSON projection of RepoContextRelatedResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRelatedTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_scan",
      "in_process": "RepoContextToolHandlers.ScanAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name scan; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to scan."
        },
        {
          "name": "scope",
          "type": "string",
          "required": true,
          "notes": "The range to walk: 'Files', 'Packages', 'Symbols', 'Memory', or 'MemoryTopic'."
        },
        {
          "name": "topic",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The memory topic to scan; required when scope is 'MemoryTopic', otherwise ignored."
        },
        {
          "name": "pathPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional directory path prefix to restrict a 'Files' scan to a subtree (for example 'src/'); rejected for other scopes."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An opaque continuation token from a prior page; omit to start at the beginning of the range."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of entries to return on this page. Clamped to the range [1, 500]; defaults to 100."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextScanResult",
        "shape": "Structured JSON projection of RepoContextScanResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildScanTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_search",
      "in_process": "RepoContextToolHandlers.SearchAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name search; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to search."
        },
        {
          "name": "query",
          "type": "string",
          "required": true,
          "notes": "The natural-language query to find relevant repository-context records for."
        },
        {
          "name": "k",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of hits to return. Clamped to the range [1, 100]; defaults to 10."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextSearchResult",
        "shape": "Structured JSON projection of RepoContextSearchResult returned by the handler, including retrievalPath and reasons such as chunk:symbol, chunk:file, chunk:memory, symbol:<fqName>, and topic:<topic>. With source indexing disabled, new passes add memory vectors only; search can still return memory hits and any source-derived records left from an earlier index until repocontext_reset_index removes them."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildSearchTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repo-context_stats",
      "in_process": "RepoContextToolHandlers.Stats",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "registerAsApp",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [
          "AddRepoContextTools(registerAsApp: true)",
          "AddAppMcpTools"
        ],
        "source": "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest",
        "note": "App-local tool id is built from the repo-context app slug (repo-context) plus the manifest local tool name stats; most full repo-context_* ids are not present as one source literal."
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id. App-contributed tools are served in-process and accept only the current region; a peer region is rejected fail-closed."
        }
      ],
      "response": {
        "type": "RepoContextStatsResult",
        "shape": "Structured JSON projection of RepoContextStatsResult returned by the handler, counted over answered repocontext_context bundles and using each bundle's estimated responseTokens."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildStatsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/App/repo-context.app.json",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppManifest.cs#RepoContextAppManifest.AppToolNames",
        "src/lattice.api.mcp.repocontext/App/RepoContextAppToolAlias.cs#RepoContextAppToolAlias",
        "src/lattice.api.mcp.apps/AppMcpNamespacedTool.cs#AppMcpNamespacedTool.InvokeAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_add_repo",
      "in_process": "RepoContextToolHandlers.AddRepoAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildAddRepoTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "note": "Workspace-mode repository maintenance tools also require AddRepoContextTools(workspaceMode: true); repocontext_add_repo additionally requires a non-empty workspaceRoot so the path guard is enforcing."
      },
      "request": [
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "Path to the repository to register, under the mounted workspace root (for example '/workspace/my-repo'). Resolved against the workspace boundary; a path outside it is rejected. With source indexing disabled, this path is still validated, but the accepted pass records only the repository marker and memory embeddings and does not walk or read files."
        },
        {
          "name": "repoId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional stable repository identity to file records under; when omitted it is derived from the final path segment. Re-adding the same id updates the same records."
        },
        {
          "name": "includeGlobs",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Optional include globs (for example 'src/**' or '*.cs'); when non-empty a file is ingested only if it matches at least one. '**' matches any depth, '*' a single path segment."
        },
        {
          "name": "excludeGlobs",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Optional exclude globs; a match removes a file even when it also matched an include. The '.git' directory is always skipped."
        },
        {
          "name": "respectGitignore",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "When true (the default), the tree's .gitignore files are honoured so ignored files and directories are not ingested. Set false to ingest every file regardless of ignore rules."
        },
        {
          "name": "excludeBinary",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "When true (the default), files that look binary (a NUL byte in their leading bytes) are dropped so compiled artefacts, images, and other blobs are not ingested. Set false to ingest binary files too."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoIndexProgress",
        "shape": "Structured JSON projection of RepoIndexProgress returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "After an ambiguous add_repo failure, poll repocontext_index_status for the repository id; reissuing the same repository id is safe because onboarding is idempotent and resumable.",
        "source": "src/lattice.api.mcp.repocontext/Indexing/RepoContextSelfIndexGrain.cs#EnsureRunningAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-adding the same repository id updates the same records through the self-index grain's idempotent indexing path; with source indexing disabled the pass only re-stamps the marker and embeds memory.",
        "source": "src/lattice.api.mcp.repocontext/Indexing/RepoContextSelfIndexGrain.cs#EnsureRunningAsync"
      },
      "concurrency": {
        "rule": "Facade access gates and grains serialize or reject conflicting mutations according to the underlying facade contract.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.AddRepoAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.AddRepoAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_bootstrap",
      "in_process": "RepoContextToolHandlers.BootstrapAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildBootstrapTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "note": "Single-repository onboarding is contributed only outside workspace mode and only when a non-empty workspaceRoot makes the path guard enforcing."
      },
      "request": [
        {
          "name": "repoRoot",
          "type": "string",
          "required": true,
          "notes": "Absolute path to the repository working tree the server should walk and ingest."
        },
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "Stable repository identity to file records under, so re-ingesting the same codebase updates the same records."
        },
        {
          "name": "includeGlobs",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Optional include globs (for example 'src/**' or '*.cs'); when non-empty a file is ingested only if it matches at least one. '**' matches any depth, '*' a single path segment."
        },
        {
          "name": "excludeGlobs",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Optional exclude globs; a match removes a file even when it also matched an include. The '.git' directory is always skipped."
        },
        {
          "name": "respectGitignore",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "When true (the default), the tree's .gitignore files are honoured so ignored files and directories are not ingested. Set false to ingest every file regardless of ignore rules."
        },
        {
          "name": "excludeBinary",
          "type": "bool",
          "required": false,
          "default": "true",
          "notes": "When true (the default), files that look binary (a NUL byte in their leading bytes) are dropped so compiled artefacts, images, and other blobs are not ingested. Set false to ingest binary files too."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoIndexProgress",
        "shape": "Structured JSON projection of RepoIndexProgress returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "After an ambiguous bootstrap failure, poll repocontext_index_status for the repository id; reissuing the same repository id is safe because the walk is idempotent and resumable.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildBootstrapTool"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running on an unchanged repository is a no-op, a changed repository updates only changed files and prunes deleted ones, and an interrupted run resumes without duplication.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildBootstrapTool"
      },
      "concurrency": {
        "rule": "Facade access gates and grains serialize or reject conflicting mutations according to the underlying facade contract.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.BootstrapAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.BootstrapAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_changed",
      "in_process": "RepoContextToolHandlers.ChangedAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildChangedTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "workspaceRoot",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "note": "This path-taking read tool is withheld unless AddRepoContextTools receives a non-empty workspaceRoot so the workspace guard is enforcing."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier whose stored index is compared."
        },
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "The repository root to compare, or a directory inside it to scope the report to that subtree. The walk is always rooted at the repository's indexed root and uses the filters it was ingested with, so the report compares the same path space the index was built in. Resolved through the mounted workspace boundary; a path outside the indexed repository root is refused."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextChangedResult",
        "shape": "Structured JSON projection of RepoContextChangedResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ChangedAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildChangedTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ChangedAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ChangedAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_claim",
      "in_process": "RepoContextToolHandlers.ClaimAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildClaimTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the memory record to claim, for example 'repo/{repoId}/mem/{topic}/{id}'. Claims are supported on memory records only."
        },
        {
          "name": "owner",
          "type": "string",
          "required": true,
          "notes": "The claiming agent's identity, recorded on the record so a later reader can see who holds the claim. Prefer a stable session or agent id."
        },
        {
          "name": "leaseSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The lease length to request in seconds. Always pass this explicitly for work that outlives a few seconds: omitting it defers to the cluster's configured default lease, which is deliberately short (30 seconds unless the host overrides it), on the reasoning that a caller which named no length is not one that should be granted a long one. The lock clamps any request to the configured maximum, so the granted length may be shorter than the one requested; act on the returned 'leaseSeconds' and 'leaseExpiresAtUtc', never on the value you asked for."
        },
        {
          "name": "maxWaitSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "How long to wait in the lock's first-in-first-out queue for the claim, in seconds. Omit to fail immediately when the record is already claimed, which is what a work-stealing agent wants."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextClaimResult",
        "shape": "Structured JSON projection of RepoContextClaimResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not blindly retry a mutating call after an ambiguous failure.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Mutation has no general idempotency guarantee in the MCP binding.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimAsync"
      },
      "concurrency": {
        "rule": "Claims use lease-backed FIFO locking and monotonically increasing fencing tokens.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_claim_status",
      "in_process": "RepoContextToolHandlers.ClaimStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildClaimStatusTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the memory record whose claim to inspect."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextClaimStatusResult",
        "shape": "Structured JSON projection of RepoContextClaimStatusResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildClaimStatusTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ClaimStatusAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_context",
      "in_process": "RepoContextToolHandlers.ContextAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildContextTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to bundle context from."
        },
        {
          "name": "task",
          "type": "string",
          "required": true,
          "notes": "The natural-language task to pack a ranked, explained context bundle for."
        },
        {
          "name": "top",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of files to consider. Clamped to the range [1, 50]; defaults to 10."
        },
        {
          "name": "responseBudgetTokens",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The hard token ceiling for the whole bundle, measured with the exact BPE token counter. Clamped to the range [1, 200000]; defaults to 8192. The bundle's reported total never exceeds it."
        },
        {
          "name": "detail",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "seen",
          "type": "string[]?",
          "required": false,
          "default": "null"
        },
        {
          "name": "known",
          "type": "string[]?",
          "required": false,
          "default": "null"
        },
        {
          "name": "session",
          "type": "string?",
          "required": false,
          "default": "null"
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextContextResult",
        "shape": "Structured JSON projection of RepoContextContextResult returned by the handler. responseTokens is the estimated wire cost of the whole response; totalTokens is the packed source text total."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildContextTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ContextAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_forget",
      "in_process": "RepoContextToolHandlers.ForgetAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildForgetTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the entry to forget."
        },
        {
          "name": "lapse",
          "type": "bool",
          "required": false,
          "default": "false",
          "notes": "When true, re-write the entry with a short time-to-live so it lapses; when false (the default), hard-delete it immediately."
        },
        {
          "name": "lapseSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The lapse window in seconds when 'lapse' is true; defaults to 60. Ignored for a hard delete."
        },
        {
          "name": "fencingToken",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The fencing token returned by repocontext_claim, presented as proof of the caller's claim on this entry. Required when the entry is claimed: forgetting a claimed entry without a valid token is refused. Memory entries only."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextForgetResult",
        "shape": "Structured JSON projection of RepoContextForgetResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not blindly retry a mutating call after an ambiguous failure.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ForgetAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Mutation has no general idempotency guarantee in the MCP binding.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ForgetAsync"
      },
      "concurrency": {
        "rule": "Claimed memory records require the current fencing token; unclaimed writes use CRDT merge semantics where applicable.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ForgetAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ForgetAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_health",
      "in_process": "RepoContextToolHandlers.HealthAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "Optional repository id. When supplied, report passive per-repository readiness and component evidence instead of process-wide readiness; no embedding, search, or recovery probe is executed."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextHealthResult",
        "shape": "Structured JSON projection of RepoContextHealthResult. Without repoId it reports host retrieval readiness; with repoId it includes repository-scoped passive evidence in repository. A zero-file repository is not automatically NothingRegistered: vectorCoverage counts files, symbols and memory, so memory embeddings can make a memory-only repository Serving."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.HealthAsync",
        "src/lattice.api.mcp.repocontext/RepoContextHealthResult.cs#RepoContextHealthResult.Repository",
        "src/lattice.api.mcp.repocontext/RepoContextRepositoryReadiness.cs#RepoContextRepositoryReadiness",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_index_status",
      "in_process": "RepoContextToolHandlers.IndexStatusAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildIndexStatusTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identity whose indexing job to inspect. A repository that was never onboarded reports status 'None'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoIndexProgress",
        "shape": "Structured JSON projection of RepoIndexProgress returned by the handler, including pending/walking/reconciling/applying/vectorising/done phases and resetting while repocontext_reset_index sweeps. filesEmbedded is stored-file work accumulated across resumed drives, monotonic within the same attempt and startedAt, reset for a fresh job, and not corpus coverage. With source indexing disabled, accepted passes can report zero file, content and symbol counters because only agent-memory embedding runs."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildIndexStatusTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.IndexStatusAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_list_repos",
      "in_process": "RepoContextToolHandlers.ListReposAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildListReposTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "workspaceMode",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextRepoListResult",
        "shape": "Structured JSON projection of RepoContextRepoListResult returned by the handler. Each row carries embeddedVectorCountAsOf, the UTC start of the completed membership scan that produced embeddedVectorCount; it is absent before the first completed scan and stays unchanged with the old count while embeddedVectorCountPending is true. The scan-time anchor exposes lag without promising a transactional snapshot or a live ANN passage count. In memory-only mode a registered repository remains listed with fileCount zero, and embeddedVectorCount can still be non-zero because memory entries are embedded sources."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListReposAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildListReposTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListReposAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListReposAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_list_topics",
      "in_process": "RepoContextToolHandlers.ListTopicsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildListTopicsTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier whose memory topics to enumerate."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextTopicsResult",
        "shape": "Structured JSON projection of RepoContextTopicsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildListTopicsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ListTopicsAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_neighbors",
      "in_process": "RepoContextToolHandlers.NeighborsAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildNeighborsTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The seed repository-context key to walk knowledge-linking edges from, for example 'repo/{repoId}/mem/{topic}/{id}'."
        },
        {
          "name": "relation",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional relation name to restrict the walk to (for example 'broader' or 'related'); omit to follow every relation."
        },
        {
          "name": "depth",
          "type": "int",
          "required": false,
          "default": "1",
          "notes": "The maximum number of hops to traverse. Clamped to the range [1, 3]; defaults to 1 (immediate neighbors)."
        },
        {
          "name": "maxNodes",
          "type": "int",
          "required": false,
          "default": "50",
          "notes": "The maximum number of neighbor entries to return. Clamped to the range [1, 100]; defaults to 50. A non-positive value applies the default of 50, not the ceiling."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextNeighborsResult",
        "shape": "Structured JSON projection of RepoContextNeighborsResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildNeighborsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/Capture/RepoContextStore.cs#RepoContextStore.DefaultNeighborNodes",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.NeighborsAsync"
      ]
    },
    {
      "id": "repocontext_outline",
      "in_process": "RepoContextToolHandlers.OutlineAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildOutlineTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier the file belongs to."
        },
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "The repository-relative file path to outline, for example 'src/foo/Bar.cs'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextOutlineResult",
        "shape": "Structured JSON projection of RepoContextOutlineResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildOutlineTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.OutlineAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_recall",
      "in_process": "RepoContextToolHandlers.RecallAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRecallTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key to fetch, for example 'repo/{repoId}/file/{path}' or 'repo/{repoId}/mem/{topic}/{id}'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextEntryView",
        "shape": "Structured JSON projection of RepoContextEntryView returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRecallTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RecallAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_related",
      "in_process": "RepoContextToolHandlers.RelatedAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRelatedTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier the file belongs to."
        },
        {
          "name": "path",
          "type": "string",
          "required": true,
          "notes": "The repository-relative file path whose related neighbourhood to resolve, for example 'src/foo/Bar.cs'."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextRelatedResult",
        "shape": "Structured JSON projection of RepoContextRelatedResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRelatedTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RelatedAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_release_claim",
      "in_process": "RepoContextToolHandlers.ReleaseClaimAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildReleaseClaimTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the claimed memory record."
        },
        {
          "name": "fencingToken",
          "type": "long",
          "required": true,
          "notes": "The fencing token returned by the repocontext_claim call that took this claim."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextReleaseClaimResult",
        "shape": "Structured JSON projection of RepoContextReleaseClaimResult returned by the handler; stale, missing, and unclaimed release attempts are reported as released=false rather than errors."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Retry only with the same idempotency key, fencing token, or resume token when the operation documents one; otherwise inspect status first.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ReleaseClaimAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Release is idempotent for stale, missing, or unclaimed records and never lowers the fencing high-water mark.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ReleaseClaimAsync"
      },
      "concurrency": {
        "rule": "Claims use lease-backed FIFO locking and monotonically increasing fencing tokens.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ReleaseClaimAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ReleaseClaimAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_remember",
      "in_process": "RepoContextToolHandlers.RememberAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRememberTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier the entry belongs to."
        },
        {
          "name": "topic",
          "type": "string",
          "required": true,
          "notes": "The topic bucket to file the memory entry under. Free-form and not enforced, but prefer a small, stable vocabulary so related notes stay groupable across sessions rather than fragmenting into synonyms - for example 'decisions' (design choices with rationale), 'gotchas' (non-obvious pitfalls), 'conventions' (project norms), 'glossary' (domain terms), 'todo' (follow-ups), or a stable feature or component name."
        },
        {
          "name": "id",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The per-topic entry id. Omit to create a new entry with a generated id; supply an existing id to update in place."
        },
        {
          "name": "kind",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The memory kind applied when the entry is created: 'Decision', 'Note', or 'Memory'. Defaults to 'Note'. Any other value, including 'Unspecified', is rejected with an McpException."
        },
        {
          "name": "title",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional short title for the entry."
        },
        {
          "name": "body",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional free-form body for the entry."
        },
        {
          "name": "author",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional author identity (the agent or session that wrote the entry)."
        },
        {
          "name": "provenance",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional provenance descriptor (where the context came from)."
        },
        {
          "name": "tags",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Optional tags to add to the entry's add-wins tag set."
        },
        {
          "name": "addLinks",
          "type": "IReadOnlyDictionary<string, IReadOnlyList<string>>?",
          "required": false,
          "default": "null",
          "notes": "Optional knowledge-linking edges to add, as a map from relation name (for example 'broader', 'narrower', 'related', 'partOf') to the target repository-context keys the entry links to. Memory entries only; each target must be a well-formed key."
        },
        {
          "name": "removeLinks",
          "type": "IReadOnlyDictionary<string, IReadOnlyList<string>>?",
          "required": false,
          "default": "null",
          "notes": "Optional knowledge-linking edges to remove, as a map from relation name to the target keys to unlink. Memory entries only."
        },
        {
          "name": "ttlSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "An optional explicit time-to-live in seconds. When omitted, a newly created entry uses the repository's default memory TTL (if configured), otherwise it is durable."
        },
        {
          "name": "fencingToken",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The fencing token returned by repocontext_claim, presented as proof of the caller's claim on this entry. Required when the entry is claimed: a write carrying no token, or a token the entry has already moved past, is refused rather than silently merged. Omit it for an unclaimed entry."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextRememberResult",
        "shape": "Structured JSON projection of RepoContextRememberResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not blindly retry a mutating call after an ambiguous failure.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RememberAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Mutation has no general idempotency guarantee in the MCP binding.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RememberAsync"
      },
      "concurrency": {
        "rule": "Claimed memory records require the current fencing token; unclaimed writes use CRDT merge semantics where applicable.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RememberAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RememberAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_remove_repo",
      "in_process": "RepoContextToolHandlers.RemoveRepoAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRemoveRepoTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "note": "Workspace-mode repository maintenance tools also require AddRepoContextTools(workspaceMode: true); repocontext_add_repo additionally requires a non-empty workspaceRoot so the path guard is enforcing."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identity whose records to remove from the context store. The working tree on disk is not touched."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextRepoRemovalResult",
        "shape": "Structured JSON projection of RepoContextRepoRemovalResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Retry only with the same idempotency key, fencing token, or resume token when the operation documents one; otherwise inspect status first.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RemoveRepoAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Source describes idempotency, resume/status polling, or state-based retry semantics; inspect status when a result is ambiguous.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RemoveRepoAsync"
      },
      "concurrency": {
        "rule": "Facade access gates and grains serialize or reject conflicting mutations according to the underlying facade contract.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RemoveRepoAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RemoveRepoAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_renew_claim",
      "in_process": "RepoContextToolHandlers.RenewClaimAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildRenewClaimTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the claimed memory record."
        },
        {
          "name": "fencingToken",
          "type": "long",
          "required": true,
          "notes": "The fencing token returned by the repocontext_claim call that took this claim."
        },
        {
          "name": "leaseSeconds",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The lease length to request in seconds. Always pass this explicitly. Omitting it defers to the same deliberately short cluster default as a claim (30 seconds unless the host overrides it), so a renew that omits it SHORTENS a claim currently held for longer - and still reports 'granted: true', with the loss surfacing only on the next renew as 'superseded'. A renew that shortens its lease is flagged in 'leaseShortened'. The lock clamps any request to the configured maximum; act on the returned 'leaseSeconds' and 'leaseExpiresAtUtc', never on the value you asked for."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextClaimResult",
        "shape": "Structured JSON projection of RepoContextClaimResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not blindly retry a mutating call after an ambiguous failure.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RenewClaimAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Mutation has no general idempotency guarantee in the MCP binding.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RenewClaimAsync"
      },
      "concurrency": {
        "rule": "Claims use lease-backed FIFO locking and monotonically increasing fencing tokens.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RenewClaimAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.RenewClaimAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_reset_index",
      "in_process": "RepoContextToolHandlers.ResetIndexAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildResetIndexTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup",
        "note": "Workspace-mode repository maintenance tools also require AddRepoContextTools(workspaceMode: true); repocontext_add_repo additionally requires a non-empty workspaceRoot so the path guard is enforcing."
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identity whose code index to reset. Agent memory for this repository is preserved. After source indexing is disabled, this is the operation that drops an existing file, symbol, content, cross-reference and vector code index; memory-only passes do not delete those records themselves."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextIndexResetResult",
        "shape": "Structured JSON projection of RepoContextIndexResetResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "After a timeout or dropped connection poll repocontext_index_status rather than re-running, because the reset sweep is bound to the host and keeps running; re-run only when a host restart left it Running in phase Resetting, which the idempotent re-run finishes.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildResetIndexTool"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running the reset is idempotent and finishes an interrupted sweep; resetting an unknown repository is a no-op that reports zero deletions and does not register it.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildResetIndexTool"
      },
      "concurrency": {
        "rule": "Facade access gates and grains serialize or reject conflicting mutations according to the underlying facade contract.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ResetIndexAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ResetIndexAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_scan",
      "in_process": "RepoContextToolHandlers.ScanAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildScanTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to scan."
        },
        {
          "name": "scope",
          "type": "string",
          "required": true,
          "notes": "The range to walk: 'Files', 'Packages', 'Symbols', 'Memory', or 'MemoryTopic'."
        },
        {
          "name": "topic",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "The memory topic to scan; required when scope is 'MemoryTopic', otherwise ignored."
        },
        {
          "name": "pathPrefix",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An optional directory path prefix to restrict a 'Files' scan to a subtree (for example 'src/'); rejected for other scopes."
        },
        {
          "name": "continuationToken",
          "type": "string?",
          "required": false,
          "default": "null",
          "notes": "An opaque continuation token from a prior page; omit to start at the beginning of the range."
        },
        {
          "name": "pageSize",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of entries to return on this page. Clamped to the range [1, 500]; defaults to 100."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextScanResult",
        "shape": "Structured JSON projection of RepoContextScanResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildScanTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.ScanAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_search",
      "in_process": "RepoContextToolHandlers.SearchAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildSearchTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "repoId",
          "type": "string",
          "required": true,
          "notes": "The repository identifier to search."
        },
        {
          "name": "query",
          "type": "string",
          "required": true,
          "notes": "The natural-language query to find relevant repository-context records for."
        },
        {
          "name": "k",
          "type": "int",
          "required": false,
          "default": "0",
          "notes": "The maximum number of hits to return. Clamped to the range [1, 100]; defaults to 10."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextSearchResult",
        "shape": "Structured JSON projection of RepoContextSearchResult returned by the handler, including retrievalPath and reasons such as chunk:symbol, chunk:file, chunk:memory, symbol:<fqName>, and topic:<topic>. With source indexing disabled, new passes add memory vectors only; search can still return memory hits and any source-derived records left from an earlier index until repocontext_reset_index removes them."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildSearchTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.SearchAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_stats",
      "in_process": "RepoContextToolHandlers.Stats",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": true,
        "destructive": false,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildStatsTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": null,
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextStatsResult",
        "shape": "Structured JSON projection of RepoContextStatsResult returned by the handler, counted over answered repocontext_context bundles and using each bundle's estimated responseTokens."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after transient transport or backend faults; cancellation is not retried by the server.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only tool (tool_annotations.read_only) with no server-side mutation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildStatsTool"
      },
      "concurrency": {
        "rule": "Concurrent with other operations; returned state is a point-in-time observation.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.Stats",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    },
    {
      "id": "repocontext_update",
      "in_process": "RepoContextToolHandlers.UpdateAsync",
      "grpc_method": null,
      "transport_scope": "mcp_tool",
      "facade_operation": null,
      "tool_annotations": {
        "read_only": false,
        "destructive": true,
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup.BuildUpdateTool"
      },
      "availability": {
        "module": "AddRepoContextTools",
        "package": "Orleans.Lattice.Api.Mcp.RepoContext",
        "opt_in": {
          "option": null,
          "parameter": "enableWrites",
          "source": "src/lattice.api.mcp.repocontext/LatticeMcpRepoContextServiceCollectionExtensions.cs#LatticeMcpRepoContextServiceCollectionExtensions.AddRepoContextTools"
        },
        "requires": [],
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      },
      "request": [
        {
          "name": "key",
          "type": "string",
          "required": true,
          "notes": "The full repository-context key of the record to patch, for example 'repo/{repoId}/file/{path}'."
        },
        {
          "name": "fields",
          "type": "IReadOnlyDictionary<string, string>?",
          "required": false,
          "default": "null",
          "notes": "Scalar field patches keyed by field name (for example {\"digest\":\"...\",\"language\":\"csharp\"}). Valid names depend on the record family."
        },
        {
          "name": "addTags",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Tags to add to the record's add-wins set."
        },
        {
          "name": "removeTags",
          "type": "IReadOnlyList<string>?",
          "required": false,
          "default": "null",
          "notes": "Tags to remove from the record's add-wins set."
        },
        {
          "name": "addLinks",
          "type": "IReadOnlyDictionary<string, IReadOnlyList<string>>?",
          "required": false,
          "default": "null",
          "notes": "Knowledge-linking edges to add, as a map from relation name (for example 'broader', 'narrower', 'related', 'partOf') to target repository-context keys. Memory records only; each target must be a well-formed key."
        },
        {
          "name": "removeLinks",
          "type": "IReadOnlyDictionary<string, IReadOnlyList<string>>?",
          "required": false,
          "default": "null",
          "notes": "Knowledge-linking edges to remove, as a map from relation name to the target keys to unlink. Memory records only."
        },
        {
          "name": "fencingToken",
          "type": "long?",
          "required": false,
          "default": "null",
          "notes": "The fencing token returned by repocontext_claim, presented as proof of the caller's claim on this record. Required when the record is claimed: a patch carrying no token, or a token the record has already moved past, is refused rather than silently merged. Memory records only."
        },
        {
          "name": "region",
          "type": "string",
          "required": false,
          "notes": "Optional region id from lattice_list_regions; omitted targets the current region."
        }
      ],
      "response": {
        "type": "RepoContextUpdateResult",
        "shape": "Structured JSON projection of RepoContextUpdateResult returned by the handler."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The coarse MCP authorizer or the facade access gate denies the call."
        },
        {
          "error_id": "invalid-argument",
          "condition": "A required parameter is absent, malformed, out of range, or names an unsupported region."
        },
        {
          "error_id": "mcp-exception",
          "condition": "Caller errors and fail-closed workspace faults are surfaced as McpException messages, as is a peer region that fails identity verification; an unknown or unserved region is answered as an invalid-argument client error instead."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not blindly retry a mutating call after an ambiguous failure.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.UpdateAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Mutation has no general idempotency guarantee in the MCP binding.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.UpdateAsync"
      },
      "concurrency": {
        "rule": "Claimed memory records require the current fencing token; unclaimed writes use CRDT merge semantics where applicable.",
        "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.UpdateAsync"
      },
      "sources": [
        "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers.UpdateAsync",
        "src/lattice.api.mcp.repocontext/RepoContextToolGroup.cs#RepoContextToolGroup"
      ]
    }
  ],
  "error_taxonomy": [
    {
      "id": "authorization-denied",
      "type": "McpException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The session is unauthenticated, the coarse authorizer denied the tool, or the facade access gate refused the requested scope.",
      "source": "src/lattice.api.mcp/Discovery/McpToolAuthorizationGate.cs#McpToolAuthorizationGate.IsAuthorizedAsync"
    },
    {
      "id": "facade-fault",
      "type": "McpException",
      "grpc_status": null,
      "retryable": "conditional",
      "meaning": "A facade or binding fault that is not classified as a client error is thrown as an McpException: a local facade exception surfaces its type name and message; a remote gRPC fault surfaces only its status code and sanitised detail (FailedPrecondition detail verbatim, PermissionDenied and Unauthenticated kept as denials, Unavailable, DeadlineExceeded, Cancelled, Aborted and ResourceExhausted described as possibly not applied). Retry follows the tool's retry block; caller cancellation is rethrown untranslated.",
      "source": "src/lattice.api.mcp/Tools/McpToolFaultTranslator.cs#McpToolFaultTranslator.Translate"
    },
    {
      "id": "invalid-argument",
      "type": "result-error",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The request supplied an unknown parameter, a missing or invalid value, refused content, an unsafe path, or an unsupported region. A fault classified as a client error is answered as an MCP error result (isError true) rather than thrown, logged at Debug and counted; its message is sanitized and length-capped before it is echoed to the caller or log. Authorization denials are never classified as client errors.",
      "source": "src/lattice.api.mcp/Tools/McpToolClientErrors.cs#McpToolClientErrors"
    },
    {
      "id": "mcp-exception",
      "type": "McpException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A tool handler rejected a caller error or a fail-closed workspace fault with an McpException message, or the per-invocation wrapper refused a peer region whose identity verification failed (its endpoint does not reach the region's own cluster).",
      "source": "src/lattice.api.mcp.repocontext/RepoContextToolHandlers.cs#RepoContextToolHandlers"
    },
    {
      "id": "schema-policy",
      "type": "result-error",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A schema-rejected write returns isError=true with structuredContent {code, treeId, key, reason}; code is schema-policy and classification is rejected_content. Only capped policy-derived diagnostics are returned, never submitted values or raw exception text. Correct input or policy before retrying.",
      "source": "src/lattice.api.mcp/Tools/McpValueValidationErrors.cs#McpValueValidationErrors"
    },
    {
      "id": "telemetry-backend-error",
      "type": "result-error",
      "grpc_status": null,
      "retryable": "conditional",
      "meaning": "Telemetry backend failures are returned in the result Error field except caller cancellation.",
      "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.QueryAsync"
    },
    {
      "id": "telemetry-capability-denied",
      "type": "result-error",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The caller lacks the cluster-wide LatticeOperation.Telemetry capability; the tool returns a fixed message in the result Error field before any backend call.",
      "source": "src/lattice.api.mcp.telemetry/TelemetryToolHandlers.cs#TelemetryToolHandlers.CapabilityDeniedMessage"
    }
  ]
}
