Skip to main content
Glama
gleanwork

Glean Connector MCP Server

by gleanwork

set_config

Save and merge connector configuration into .glean/config.json, covering both build-time (code-generation) and runtime keys.

Instructions

Write connector configuration to .glean/config.json. Merges with existing config. Code-generation keys (consumed by build_connector): name, display_name, datasource_category, url_regex, icon_url, connector_type. Runtime-only keys (used by the connector at execution time, not during code generation): auth_type, endpoint, api_key_header, page_size, rate_limit_rps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configYesConfiguration to save. Merged with any existing config. Code-generation keys (consumed by build_connector): name, display_name, datasource_category, url_regex, icon_url, connector_type. Runtime-only keys (used by the generated connector, not by build_connector): auth_type, endpoint, api_key_header, page_size, rate_limit_rps.
Behavior4/5

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

Without annotations, the description carries the full burden. It discloses that writing mutates state (write to file), that it merges with existing config (not overwrite), and categorizes keys as code-generation vs runtime. This provides useful behavioral context beyond the schema.

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, front-loaded with the purpose, and contains zero filler. Every sentence adds unique value: action+merge behavior, code-generation keys, runtime keys. Highly efficient.

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?

The description covers purpose, merge semantics, and key categorization. Given a single nested parameter and no output schema, it addresses the main concerns. However, it lacks guidance on error cases (e.g., invalid config) and does not confirm what the tool returns (though likely void). Still, it is adequate for the complexity level.

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?

With 100% schema coverage, baseline is 3. The description adds significant meaning by grouping parameters into code-generation and runtime categories, which clarifies the role of each key. This organization helps the agent understand which parameters matter for different stages, exceeding what the standalone schema descriptions provide.

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 that the tool writes connector configuration to a specific file (.glean/config.json) and merges with existing config. It distinguishes from siblings like get_config (reading) and build_connector (code generation) by specifying the action and resource.

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

Usage Guidelines3/5

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

The description asserts that the tool is used to write and merge configuration, but does not explicitly state when to use it vs alternatives (e.g., when to use set_config versus get_config or other write tools). Usage is implied from context, but no direct guidance or exclusion is provided.

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/gleanwork/connector-mcp'

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