Skip to main content
Glama

use_ai_tool

Run an AI content generation tool by its slug (from list_ai_tools). Pass inputs as a JSON-encoded object keyed by field ID. Returns the generated content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsNoA JSON-encoded object containing the tool field IDs and values.{}
tool_slugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that the tool executes generation and returns content, but it does not disclose possible side effects, rate limits, cost implications, or whether the operation is asynchronous or immediate. For an execution-like 'Run' tool, this is a meaningful transparency gap.

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 two compact sentences with no filler. The first sentence identifies the action and the origin of the slug; the second explains the inputs format and the return value. Each sentence earns its place.

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 description covers the return value, which is helpful given the absence of an output schema. But with no annotations, it leaves out behavior and failure modes, and it does not explain how the returned content relates to other tools like create_post. It is adequate for a simple runner but not rich.

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?

Schema coverage is 50% — only inputs has a description, while tool_slug is bare. The description adds meaning to tool_slug by tying it to list_ai_tools and clarifies that inputs are 'a JSON-encoded object keyed by field ID'. It partially compensates for the schema gap but does not elaborate on expected value formats or how field IDs relate to the tool's own fields.

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

Purpose4/5

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

The description states the specific verb 'Run' with a resource 'AI content generation tool' and identifies the selection key 'slug'. It also points to list_ai_tools as the source of that slug, which partially distinguishes it from list_ai_tools (a listing tool), though it does not explicitly contrast it with content-creation siblings like create_post.

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 phrase '(from list_ai_tools)' implies a prerequisite: first call list_ai_tools to obtain a valid slug. However, the description does not state when to use this tool versus other content creation or generation tools, nor does it give explicit exclusions. Guidance is only implied, not explicit.

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.