Skip to main content
Glama

tide_asgard_scaffold

Read-only

SCAFFOLD AN ASP.NET CORE (.NET) BACKEND + BROWSER FRONTEND SECURED WITH TIDECLOAK VIA ASGARD. Returns FINISHED files to WRITE — a realm script that creates the public frontend client, the tide-mtls backend client and the AUDIENCE MAPPER (backend in the frontend's access-token aud) and exports both adapter configs; the ASP.NET Program.cs/csproj (asgard 4f41371: AddAsgard + RequireTokenBinding(Binding.DPoP) — EdDSA validation, mandatory DPoP binding, mTLS enrollment with identity paths under Asgard:, UseExceptionHandler, the pack's known-good DPoP relay page instead of Asgard's UseTide_over_DPoP, server-side role checks); and a vanilla or React frontend that calls the API through IAMService.fetch. Features: 'delegation' = the backend acts on the user's behalf (user-approved resource delegation + DPoP token exchange, calls TideCloak over mTLS as the user); 'lock' = the backend locks (encrypts) user data under a Forseti policy and unlocks it for authorized callers, with an admin-only policy deployment endpoint. Modelled on the asgard examples StandardResourceDelegation and LockingUserDataWithTide. CALL THIS when the user wants a C#/.NET/ASP.NET backend with Tide, a backend that acts for the user / calls another service on their behalf, or server-side encryption of user data. Ask which features and frontend first; state the availability caveats it returns.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tide_asgard_scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNoRealm name. Default: app slug.
appNameNoApp name, e.g. 'Payroll Portal'. Drives project and client names.
featuresNoASK THE USER. 'delegation' = backend acts for the user; 'lock' = backend encrypts user data under a policy. Default both.
frontendNoFrontend flavour. Default vanilla.
userRoleNoRealm role allowed to lock data. Default '<slug>-user'.
adminRoleNoRealm role allowed to deploy the lock policy. Default '<slug>-admin'.
appOriginNoOrigin the ASP.NET server (and page) is served on. Default http://localhost:3000.
asgardRootNoPath to an asgard checkout (branch main, >= a77fd5a; main-asgard-merge merged into main on 2026-11-09). Default $(HOME)/asgard.
lockContractNoBuilt-in ORK contract for 'lock'. 'tag-roles' = SimpleTagBasedDecryption:1 (ORK main; caller needs realm role _tide_<tag>.encrypt to lock, _tide_<tag>.decrypt to unlock). 'relationship' = RelationshipAttestation:1 (ORK main since c69fc4f6, 2026-10-16; caller needs the policy's subject role AND _tide_encryptor to lock, _tide_decryptor to unlock). Default tag-roles.
tidecloakUrlNoTideCloak base URL. Default http://localhost:8080.
backendClientNoConfidential tide-mtls client id. Default '<slug>-api'.
frontendClientNoPublic browser client id. Default '<slug>-web'.
tidecloakJsPathNoPath to tidecloak-js/packages/tidecloak-js on branch main-asgard-merge (>= fd6c41f), built (published @tidecloak/js lacks delegation). Default ~/tidecloak-js/packages/tidecloak-js.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true/destructiveHint=false, and the description is consistent with that by clarifying it only returns files to WRITE rather than mutating anything — no contradiction. It adds substantial behavior context beyond the annotations: pinned asgard commit 4f41371, mandatory DPoP binding, mTLS enrollment paths, the intentional substitution of a known-good DPoP relay page, and the existence of availability caveats. It stops short of saying what those caveats are.

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

Conciseness3/5

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

Front-loads the core statement well, but the body is a single dense paragraph mixing generated-artifact inventory, feature definitions, and version hashes that are already documented in the parameter descriptions. The ALL-CAPS emphasis and nested parentheticals make it hard to scan; it is informative but not well structured.

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

Completeness4/5

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

For a 13-parameter generator with no output schema, it covers the essentials: what files are produced, which reference implementations it mirrors, and that caveats are returned. It does not describe the shape of the returned file payload (how files/paths are presented), which matters for a tool whose entire output is a set of files to write.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by expanding the two enum values with real semantics — 'delegation' as user-approved resource delegation plus DPoP token exchange over mTLS, 'lock' as Forseti-policy encryption with an admin-only deployment endpoint, and by naming the reference examples. Infrastructure params (asgardRoot, tidecloakJsPath, lockContract) are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (scaffold) and a precise compound resource (ASP.NET Core backend + browser frontend secured with TideCloak via Asgard), and immediately clarifies that it returns generated files rather than deploying anything. The enumeration of what the generated realm script, Program.cs/csproj, and frontend contain leaves no ambiguity about scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions: a C#/.NET/ASP.NET backend with Tide, a backend acting on the user's behalf, or server-side encryption of user data. It also prescribes a pre-call interaction step ('Ask which features and frontend first'). It does not name a sibling alternative or state when NOT to use it (e.g. non-.NET stacks), which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.