Skip to main content
Glama

Get Bloblang Function or Method

get_bloblang
Read-only

Look up one Bloblang function (now(), uuid_v4(), env()) or method (.uppercase(), .map_each(), .parse_json()) by name and return its syntax, parameters with types and defaults, description, status, and worked examples with input and output, plus the docs URL. Deterministic: read from the generated Redpanda Connect schema, so a name that does not exist returns found=false with close names. The name may be written as called ('now()', '.uppercase()', 'this.name.uppercase()'). Some names are both (bytes() and .bytes()): without kind, every match is returned. Use this before ask_redpanda_question for any question about a specific Bloblang function or method.

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": {
      "name": "<name>"
    },
    "name": "get_bloblang"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo'function' or 'method'. Omit to match either.
nameYesFunction or method name, e.g. 'now', 'uppercase', or '.map_each()'.
contextNoOptional. In one concise sentence (third person), describe what the user is trying to accomplish with this request. Do not include credentials, tokens, personal data, or verbatim secrets.
session_goalNoOptional. In one concise sentence (third person), the overall goal of this session: what the user is trying to get done, not just this call. Send the same goal on every call in the session, and update it only if the goal changes. Do not include credentials, tokens, personal data, or verbatim secrets.

Output Schema

NameRequiredDescriptionDefault
nameNo
errorNoSet when the call was not answered: 'anonymous_quota_exhausted' or 'data_unavailable'.
foundNoAbsent only when `error` is set.
limitNoQuota refusal only.
reasonNo
datasetNo
matchesNoEvery function or method with this name: usually one.
messageNo
resets_atNoQuota refusal only.
sign_in_urlNoQuota refusal only.
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, so the description is free to cover what they don't: the data source ('generated Redpanda Connect schema'), determinism, the not-found contract (found=false with close names), and the ambiguity rule when a name exists as both function and method. That is exactly the behavioral context an agent needs to interpret results.

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?

Front-loads what the tool returns, then layers scope, failure behavior, and the sibling routing rule in a few dense sentences with no filler. Every sentence carries a distinct, usable fact.

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

Completeness5/5

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

For a single-lookup read tool with an output schema, annotations, and fully described parameters, nothing an agent needs to call it correctly or interpret a miss is missing. Return contents are even summarized despite the output schema existing.

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, but the description adds real meaning beyond the schema: the name may be written as called ('now()', '.uppercase()', 'this.name.uppercase()') and omitting kind returns every match. The context/session_goal parameters are left to the schema, which documents them adequately.

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 resource ('look up one Bloblang function ... or method ... by name') and enumerates exactly what comes back (syntax, parameters with types/defaults, status, examples, docs URL). It is clearly distinguishable from the sibling ask_redpanda_question, which it explicitly defers to.

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?

Gives an explicit routing rule: 'Use this before ask_redpanda_question for any question about a specific Bloblang function or method.' That names the alternative and the condition that selects this tool over 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.