Skip to main content
Glama
RestDB

Codehooks.io MCP Server

by RestDB

kv_del

Delete a key-value pair from a specified keyspace. Provide the key to execute the deletion.

Instructions

Delete key-value pair in a space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey to delete
keyspaceNoKeyspace to use
jsonNoOutput info as JSON (not table)

Implementation Reference

  • Zod schema for kv_del tool input validation: requires a 'key' string, optional 'keyspace' string and 'json' boolean.
    const kvDelSchema = z.object({
        key: z.string().describe("Key to delete"),
        keyspace: z.string().optional().describe("Keyspace to use"),
        json: z.boolean().optional().describe("Output info as JSON (not table)"),
    });
  • src/index.ts:462-475 (registration)
    Tool registration entry in the tools array defining the 'kv_del' tool with name, description, schema, and inputSchema.
    {
        name: "kv_del",
        description: "Delete key-value pair in a space.",
        schema: kvDelSchema,
        inputSchema: {
            type: "object",
            properties: {
                key: { type: "string", description: "Key to delete" },
                keyspace: { type: "string", description: "Keyspace to use" },
                json: { type: "boolean", description: "Output info as JSON (not table)" }
            },
            required: ["key"]
        }
    },
  • Handler implementation for kv_del in the CallToolRequestSchema switch statement. Builds a 'coho del' CLI command with project, space, key, and optional keyspace/json flags, then executes it via executeCohoCommand.
    case "kv_del": {
        const { key, keyspace, json } = args as KvDelArgs;
        const delArgs = [
            'del',
            '--project', config.projectId,
            '--space', config.space,
            key
        ];
    
        if (keyspace) delArgs.push('--keyspace', keyspace);
        if (json) delArgs.push('--json');
    
        const result = await executeCohoCommand(delArgs);
        return {
            content: [
                {
                    type: "text",
                    text: result
                }
            ],
            isError: false
        };
    }
Behavior2/5

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

With no annotations, the description bears full responsibility for behavioral disclosure. It only states 'Delete' without mentioning irreversibility, permissions, or side effects, leaving significant 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?

The description is a single concise sentence with no wasted words, placed front and center.

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

Completeness2/5

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

For a mutation tool with no output schema and three parameters (one required), the description lacks details on default keyspace, output behavior, and whether deletion is immediate or cascading. Incomplete for safe agent usage.

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?

All parameters are described in the input schema (100% coverage), so the description adds no extra meaning beyond what the schema provides. Baseline score is appropriate.

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 the verb 'Delete' and the resource 'key-value pair in a space,' distinguishing it from sibling tools like kv_get and kv_set. However, 'space' is not explicitly defined, leaving slight ambiguity.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, or any prerequisites. The agent must infer usage context from the tool name alone.

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/RestDB/codehooks-mcp-server'

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