Skip to main content
Glama

Kovlet

Generate typed Kovlet connection code

generate_app_connection
Read-only

Generate ready-to-use TypeScript that connects a new app to a Data Space with @kovlet/client, typed from the space's live schema: "client" (browser, consent popup), "react" (adds @kovlet/react hooks), or "node" (headless, device-code sign-in, space pinned). Write the returned files into the project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "space": "<space>",
      "app_name": "<app_name>"
    },
    "name": "generate_app_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoAccess the app asks for. Default: editor if you can write, else viewer.
slotNoThe logical space name used in code, e.g. "finance". Defaults to one derived from the space name.
spaceYesThe Data Space: its id (from list_spaces), slug or exact name.
tablesNoOnly declare these tables. Default: all.
targetNoDefault "client".
app_nameYesThe app's name, shown on the consent screen and in the console.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true and openWorldHint=false; the description adds genuinely useful behavior the annotations cannot convey — output is source files the caller must write to disk, generation is derived from the live schema, and each target has distinct runtime traits (consent popup, React hooks, device-code sign-in, pinned space). It does not disclose whether the generated code embeds credentials or what permissions the caller needs, which is the notable remaining gap.

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

Conciseness4/5

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

Front-loaded with verb, resource, and artifact, and the trailing "Write the returned files into the project" is a high-value usage instruction. It is a single very dense sentence with three inline parentheticals, which slightly hurts scanability but contains no filler.

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

Completeness3/5

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

With six parameters at 100% coverage and no output schema, the description should compensate for the missing return specification; it refers to "the returned files" but never indicates their shape (filenames, paths, count, entry points). Prerequisite access to the space is also unmentioned, leaving the agent to infer steps before invocation.

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 baseline is 3, but the description adds real meaning for the `target` enum beyond the schema's bare "Default \"client\"" — browser + consent popup, React hooks, or headless device-code with pinned space. The other parameters (space, slot, tables, role) 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 and artifact: "Generate ready-to-use TypeScript that connects a new app to a Data Space with @kovlet/client." The three enumerated flavors (client/react/node) further distinguish it from siblings like create_space or request_space_access, which do not produce code.

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 clear context for use (connecting a NEW app, code typed from the space's live schema) and an operative instruction: "Write the returned files into the project." It also implicitly guides target selection by describing each flavor's runtime. It stops short of naming prerequisites (e.g., obtaining access via request_space_access) or stating when not to use it.

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.