Skip to main content
Glama

kiota_client_generate

Generate API client code from a configured client in the Kiota workspace, using error-based cancellation and automatic dependency detection.

Instructions

Generate API client code from a configured client in the Kiota workspace. Automatically uses --ebc flag for error-based cancellation and runs kiota info to determine required dependencies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientNameYesName of the client to generate (must be configured via kiota_client_add)
cleanOutputNoOptional: Clean the output directory before generation (default: false)
refreshDescriptionsNoOptional: Refresh the OpenAPI descriptions before generation (default: false)
Behavior3/5

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

No annotations exist, so the description must carry the burden of behavior. It adds useful details about automatically using the --ebc flag and running kiota info, which are not in the schema. Yet it does not disclose potential side effects like file overwriting or output location, leaving some behavioral gaps.

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?

Two sentences deliver the core function and automatic behaviors without filler or repetition. The front-loaded verb 'Generate' immediately clarifies the action, making the description highly concise.

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 and key behaviors, but given the absence of an output schema and the side-effectful nature of code generation, it could be more explicit about what the tool produces and any environment requirements. Still sufficient for a basic understanding.

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 input schema provides descriptions for all three parameters, giving 100% coverage. The tool description does not add any parameter-specific meaning beyond referencing 'configured client,' so it relies entirely on 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?

The description states a specific action: 'Generate API client code from a configured client in the Kiota workspace.' This clearly differentiates it from sibling tools like add/edit/remove/info by focusing on code generation from an existing client.

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 phrase 'from a configured client' implies a prerequisite and indicates the tool should be used after client setup. However, it does not explicitly list when not to use the tool or name alternatives, leaving a small gap.

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/sebastienlevert/kiota-mcp'

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