Skip to main content
Glama
higebu
by higebu

cml_api

Authenticate and execute HTTP requests (GET, POST, PUT, PATCH, DELETE) against the CML2 API. Specify the path after /api/v0 and optional JSON body to interact with CML2 resources.

Instructions

Authenticated CML2 REST call.

Args: method: HTTP method (GET/POST/PUT/PATCH/DELETE). path: Path AFTER /api/v0, must start with '/'. Example: '/labs'. body: Optional JSON-serializable value (object/array/string/etc.). Sent as the request body with Content-Type: application/json.

Returns the raw response body as text (callers should json.parse if needed). Re-authenticates and retries once on HTTP 401. Raises on non-2xx.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYes
pathYes
bodyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, description carries full burden. It discloses key behaviors: re-authenticates and retries on 401, raises on non-2xx, returns raw body text, expects JSON body. However, it does not cover rate limits or authentication details beyond re-auth.

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

Conciseness4/5

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

Description is reasonably concise with a clear first line, then Args section. Every sentence adds value, but slight redundancy ('Returns the raw response body as text' is repeated). Could be slightly more front-loaded.

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?

Given output schema exists, description doesn't need to detail return values. It covers method, path, body, auth retry, and error handling. For a generic API call, this is sufficiently complete, though pagination or response format details are missing.

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

Parameters5/5

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

Schema description coverage is 0%, so description compensates fully. It explains method (HTTP verbs), path (after /api/v0, must start with '/'), and body (optional JSON, Content-Type set). Adds significant meaning beyond the bare schema.

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 clearly states it is for authenticated CML2 REST calls, specifying method, path, and body. It implies direct API access but does not explicitly differentiate from sibling cml_openapi, lacking explicit sibling distinction.

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?

Provides clear context for making authenticated REST calls to CML2 but offers no guidance on when to use this tool versus alternatives (like cml_openapi) or when not to use it. No exclusions or prerequisites mentioned.

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/higebu/cml2-mcp'

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