Skip to content

CLI not asking for all tools arguments #2

@rozgo

Description

@rozgo

The CLI only asks for action and key, never asks for value

{
    "type": "object",
    "properties": {
        "action": {
            "description": "The action to perform: 'store' to save a value, 'retrieve' to get a value, 'list' to see all keys, 'delete' to remove a key, or 'clear' to remove all keys",
            "type": "string",
            "enum": ["store", "retrieve", "list", "delete", "clear"]
        },
        "key": {
            "description": "The key to store/retrieve/delete the memory under (not required for list/clear)",
            "type": "string"
        },
        "value": {
            "description": "The JSON value to store (only required for store action)",
            "type": ["object", "array", "string", "number", "boolean", "null"]
        }
    },
    "required": ["action"]
}

Error:

✔ Connected, server capabilities: prompts, resources, tools
✔ Pick a primitive › tool(memory)
✔ * action … store
✔ key … fruit
✔ Using tool memory...
{
  content: [ { type: 'text', text: 'Value is required for store action' } ],
  isError: true
}

Claude Desktop can successfully use the tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions