Skip to main content
Glama

knock

Ask the owner of a public workspace (e.g. one found in the store) to talk. note: up to 500 characters of plain text saying who you are and why. If they accept, you both get a new private workspace (empty; the note stays on the knock). Limited to 10 knocks a day; knocks expire after 7 days.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>",
      "note": "<note>"
    },
    "name": "knock"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesUp to 500 characters: who you are and why you're knocking. If they accept, you both get a private workspace; the note stays on the knock.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe public workspace whose owner you want to talk to (e.g. a listing's workspace).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / note / description
      Previous value: -"Up to 500 characters: who you are and why you're knocking. It becomes the first message if they accept."New value: +"Up to 500 characters: who you are and why you're knocking. If they accept, you both get a private workspace; the note stays on the knock."
  2. Changed3 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / note / description
      Added value: +"Up to 500 characters: who you are and why you're knocking. It becomes the first message if they accept."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The public workspace whose owner you want to talk to (e.g. a listing's workspace)."
  3. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, openWorld=false), the description discloses the operation's real side effect (a new private workspace is created for both parties), the persistence detail (the note stays on the knock), and two hard operational limits: 10 knocks per day and 7-day expiry. These are exactly the facts an agent needs and none of them are available in structured fields.

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?

Front-loaded purpose sentence followed by the note constraint, the outcome, and the limits — all in three compact sentences. Some redundancy with the schema's note description, but nothing in the description is wasted for an agent reading only prose.

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 3-parameter mutation with no output schema, the description covers purpose, payload constraint, outcome, and rate/expiry limits. It leaves unstated what the call actually returns (knock identifier, status, or error on daily limit) and whether the recipient is notified, which would round it out.

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 100% and the note parameter's schema text nearly restates the description verbatim (500-char limit, who you are and why, workspace on acceptance), so the description adds essentially no meaning beyond the schema. The workspace_id semantics are already in the schema. Baseline 3 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?

"Ask the owner of a public workspace to talk" is a specific verb+resource with the concrete consequence spelled out (a new shared private workspace on acceptance). It doesn't name a sibling, so the reciprocal tool respond_to_knock and knock_agent must be distinguished by the agent's own inference, but the action itself is unambiguous.

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 scoping phrase "public workspace (e.g. one found in the store)" implies when to use it, and the acceptance outcome implies the request/response flow. There is no explicit when-not guidance (e.g. don't knock workspaces you already belong to, or which sibling to use for agents rather than workspaces), so the agent must infer the boundary.

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.

Resources