Skip to main content
Glama

generate_types

Generate types, a runtime validator, or a full handler from a learned schema — the payoff of the knowledge layer. Everything is derived from the payloads this account ACTUALLY received, with genuinely-optional fields marked optional, instead of a plausible-but-wrong guess from a model's memory of the provider docs. Pass lang for a bare type (typescript / json-schema / zod), or framework (next / express) for a ready-to-paste handler that validates and hands back a fully-typed event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoOutput format for a bare type.
versionNoVersion number, or "current" (the default).
frameworkNoReturn a ready-to-paste handler scaffold instead of a bare type. Overrides lang.
schema_idYesThe schema id.

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose important behavioral traits: outputs are derived from actual received payloads, genuinely-optional fields are marked optional, and framework handlers are ready-to-paste. However, it does not mention side effects, error behavior, or resource impact, leaving some uncertainty about whether the operation is purely in-memory or mutates state.

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?

The description is two well-structured sentences that convey the core purpose, underlying logic, and parameter usage. It is somewhat long, but every clause adds information about behavior or usage, with no wasted phrases.

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?

Given the tool's moderate complexity (4 params, no output schema) and the absence of annotations, the description covers the essential aspects: the two output modes, the data source, and the optionality behavior. It lacks edge-case details (e.g., invalid schema_id, no payloads), but is complete enough for an agent to select and invoke the tool correctly in common scenarios.

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?

The input schema already covers all four parameters with descriptions. The description adds valuable meaning beyond the schema: it explains the relationship between 'lang' and 'framework' (framework overrides lang), clarifies what 'lang' values produce, and indicates that 'framework' yields a handler scaffold. This additive context justifies a higher-than-baseline score.

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

Purpose5/5

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

The description clearly states the tool's purpose: generating types, validators, or handlers from a learned schema. It uses a specific verb ('Generate') and resource ('from a learned schema'), and distinguishes itself from sibling tools like get_schema by emphasizing that output is derived from actual payloads rather than model memory.

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

Usage Guidelines4/5

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

The description provides good context for when to use the tool ('the payoff of the knowledge layer') and explains that passing 'lang' yields a bare type while passing 'framework' overrides it for a handler. However, it does not explicitly contrast with alternatives (e.g., get_schema) or state 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.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: buckets, events, schemas, deliveries, forwarding, verification, replay, and waiting. Even similar pairs like latest_event vs list_events are clearly differentiated by purpose, with no overlapping responsibilities.

Naming Consistency4/5

Most tools follow a consistent verb_noun pattern with underscores, such as create_bucket, list_events, and delete_bucket. The only slight deviation is 'latest_event', which uses an adjective instead of a verb, but it remains intuitive and does not disrupt the overall predictability.

Tool Count4/5

At 17 tools, the set is slightly above the typical well-scoped range of 3-15, but the domain covers buckets, events, schemas, deliveries, configuration, and more, so each tool serves a distinct and justified purpose. The count feels appropriate for the platform's breadth rather than excessive.

Completeness3/5

The set covers the primary lifecycle for buckets, events, and schemas, including create, read, list, and delete operations. However, there is no way to update or delete a forwarding rule after creation, and no explicit update operation for bucket metadata, leaving notable gaps in managing configurations.