Skip to main content
Glama

deploy_to_kafka

Create a deployable Flink job that streams query results into a Kafka topic, with SELECT logic verified against sample data first.

Instructions

Produce a deployable topic->topic Flink job: INSERT INTO a Kafka sink topic SELECT ... The SELECT logic is verified on the sample data by running it on real Flink; the returned deployable_sql is the full pipeline (upsert-kafka sink for updating jobs). Use when the user wants to WRITE results to a Kafka topic, not just query them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes
sourcesYesSource tables. Each: name, columns [[name, flinkType], ...], event_time (column), watermark_delay_seconds, optional primary_key.
bootstrapNo
sink_topicYesDestination Kafka topic.
sample_dataYesMap of source name -> list of row objects. TIMESTAMP columns may be integer seconds (offset from a base) or a 'yyyy-MM-dd HH:mm:ss.SSS' string.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the SELECT logic is verified on real Flink and that the returned deployable_sql uses an upsert-kafka sink for updating jobs, which is valuable behavioral context beyond the basic purpose.

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

Conciseness5/5

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

The description is three sentences with key information front-loaded. Every sentence contributes purpose, behavior, or usage context without redundancy.

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?

The tool has 5 parameters and no output schema, requiring more detail. The description explains the high-level flow but omits the semantics of 'request' and 'bootstrap', and does not describe the structure of the returned deployable_sql beyond noting it is a full pipeline.

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

Parameters3/5

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

The schema covers sources, sample_data, and sink_topic (60% coverage), but the description does not explain the 'request' or 'bootstrap' parameters, which also lack schema descriptions. The description adds no parameter-specific semantics beyond what the schema already provides.

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 states a specific action: 'Produce a deployable topic->topic Flink job' with a clear verb and resource. It further distinguishes from siblings by noting 'Use when the user wants to WRITE results to a Kafka topic, not just query them.'

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

Usage Guidelines5/5

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

Explicitly provides the trigger condition: 'Use when the user wants to WRITE results to a Kafka topic.' It contrasts with query-only use, indicating the alternative path, though it doesn't name sibling tools directly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clementlemon02/text2flink'

If you have feedback or need assistance with the MCP directory API, please join our Discord server