Skip to main content
Glama

palace_check_duplicate

Checks whether content already exists in the palace before filing, comparing it against stored memory with a configurable similarity threshold to prevent duplicates.

Instructions

Check if content already exists in the palace before filing

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": {
      "content": "<content>"
    },
    "name": "palace_check_duplicate"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesContent to check
thresholdNoSimilarity threshold 0-1 (default 0.9)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It implies a read-only lookup but never says what is returned (a boolean, a similarity score, matching drawer IDs?), and gives no indication of cost, latency, or whether a near-match versus an exact match is reported. That return-shape ambiguity materially affects how an agent acts on the result.

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?

A single front-loaded sentence with no filler, and the purpose is stated before the timing hint. It is efficient but arguably too terse for a tool whose result shape is otherwise undocumented.

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?

With no annotations and no output schema, the description is the only place the result semantics could be stated, and it is silent on them. For a two-parameter check tool whose entire value is the verdict it returns, that omission leaves the definition materially incomplete.

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 description coverage is 100%, with both 'content' and 'threshold' (including its 0-1 range and 0.9 default) documented inline. The description adds no further meaning, such as what threshold 0.9 means in practice or whether content is compared verbatim or semantically, so the baseline 3 applies.

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 gives a specific verb and resource ('check if content already exists') plus a scope hint ('in the palace'), which is enough to distinguish it from write-style siblings like palace_add_drawer. It does not, however, differentiate itself from the plausibly overlapping sibling palace_recall_check, leaving the agent to infer which check to run.

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?

'before filing' implies the moment of use, which is genuine context rather than a bare restatement. There is no guidance on when this is unnecessary (e.g. small or obviously novel content), no mention of an alternative tool, and no note on what to do with the result when a duplicate is or is not found.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.