Skip to main content
Glama

kintone_delete_record

Delete a record from a Kintone app by providing app ID and record ID. Requires a confirmation flag to prevent accidental deletions.

Instructions

Delete a record from a Kintone app by ID with safety confirmation. ⚠️ Use 'kintone_list_apps' first to get available app IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYesThe ID of the Kintone app (use kintone_list_apps to see available app IDs)
record_idYesThe ID of the record to delete
revisionNoRecord revision number for optimistic locking (optional but recommended)
confirmYesConfirmation flag to prevent accidental deletions (must be true)

Implementation Reference

  • The main handler function _handle_delete_record that executes the delete record logic. It validates arguments (app_id, record_id, confirm flag), calls client.delete_record(), and formats the response.
    async def _handle_delete_record(arguments: Dict[str, Any], client: KintoneClient) -> List[types.TextContent]:
        """Handle kintone_delete_record tool call."""
        app_id = arguments.get("app_id")
        record_id = arguments.get("record_id")
        revision = arguments.get("revision")
        confirm = arguments.get("confirm", False)
    
        if not app_id or not record_id:
            return [types.TextContent(
                type="text",
                text="Error: Both app_id and record_id are required"
            )]
    
        if not confirm:
            return [types.TextContent(
                type="text",
                text="Error: Deletion not confirmed. Set 'confirm' parameter to true to proceed with deletion."
            )]
    
        result = client.delete_record(
            app_id=app_id,
            record_id=record_id,
            revision=revision
        )
    
        if result.get("success"):
            response_text = f"Successfully deleted record {record_id} from app {app_id}"
            if revision:
                response_text += f" (revision: {revision})"
    
            return [types.TextContent(
                type="text",
                text=response_text
            )]
        else:
            error_msg = result.get("error", "Unknown error occurred")
            return [types.TextContent(
                type="text",
                text=f"Error deleting record {record_id} from app {app_id}: {error_msg}"
            )]
  • The input schema definition for kintone_delete_record tool, specifying required parameters: app_id, record_id, and confirm (boolean safety flag), plus optional revision.
    types.Tool(
        name="kintone_delete_record",
        description="Delete a record from a Kintone app by ID with safety confirmation. ⚠️ Use 'kintone_list_apps' first to get available app IDs.",
        inputSchema={
            "type": "object",
            "properties": {
                "app_id": {
                    "type": "string",
                    "description": "The ID of the Kintone app (use kintone_list_apps to see available app IDs)"
                },
                "record_id": {
                    "type": "string",
                    "description": "The ID of the record to delete"
                },
                "revision": {
                    "type": "integer",
                    "description": "Record revision number for optimistic locking (optional but recommended)"
                },
                "confirm": {
                    "type": "boolean",
                    "description": "Confirmation flag to prevent accidental deletions (must be true)",
                    "default": False
                }
            },
            "required": ["app_id", "record_id", "confirm"]
        }
    )
  • The server registration in handle_call_tool that routes kintone_delete_record to handle_crud_tools.
    # CRUD tools
    elif name in ["kintone_create_record", "kintone_update_record", "kintone_delete_record"]:
        return await handle_crud_tools(name, arguments, client)
  • The KintoneClient.delete_record method that makes the actual DELETE request to the Kintone API (records.json endpoint) with app_id and record_id.
    def delete_record(self, app_id: str, record_id: str, revision: Optional[int] = None) -> Dict[str, Any]:
        """Delete record by ID."""
        data = {
            'app': app_id,
            'ids': [record_id]
        }
    
        if revision is not None:
            data['revisions'] = [revision]
    
        result = self._make_request('DELETE', 'records.json', data=data)
    
        if result['success']:
            return {
                "success": True,
                "deleted": True
            }
        return result
  • The handle_list_tools function which registers the tool by calling get_crud_tools() that includes kintone_delete_record.
    @server.list_tools()
    async def handle_list_tools() -> List[types.Tool]:
        """List available tools."""
        tools = []
        tools.extend(get_query_tools())
        tools.extend(get_crud_tools())
        tools.extend(get_metadata_tools())
        return tools
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It adds safety confirmation but does not disclose side effects, reversibility, or required permissions for deletion. The description is minimal on behavior beyond the basic operation.

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 sentences, front-loaded with the core action, and includes a useful prerequisite hint with no extraneous text.

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?

For a simple delete tool with no output schema and no annotations, the description provides sufficient context: what it does, safety flag, and a prerequisite step. It does not explain return values or error handling, but the tool's simplicity makes this acceptable.

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?

Input schema has 100% description coverage for all 4 parameters. The description reiterates safety confirmation but adds no new meaning beyond what the schema provides. Baseline score of 3 is appropriate.

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 the action ('Delete a record') and the resource ('from a Kintone app by ID'). It distinguishes from siblings like create, update, and get by specifying deletion and safety confirmation.

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 description advises using 'kintone_list_apps' first to get app IDs, providing a helpful prerequisite. It does not explicitly state when not to use it or compare with alternatives, but the context is clear enough.

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/luvl/mcp-kintone-lite'

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