keyword_extract
Top keywords by frequency
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text | |
| top_k | No |
Top keywords by frequency
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text | |
| top_k | No |
Changes observed during successful MCP inspections.
Input schema / properties / argsRemoved value: -{
- "description": "Tool arguments",
- "properties": {
- "text": {
- "description": "Primary input text",
- "type": "string"
- }
- },
- "type": "object"
-}Input schema / properties / textAdded value: +{
+ "description": "Input text",
+ "type": "string"
+}Input schema / properties / top_kAdded value: +{
+ "default": 15,
+ "type": "integer"
+}Input schema / requiredPrevious value: -[]New value: +[
+ "text"
+]Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. 'Top keywords by frequency' reveals nothing about preprocessing (e.g., stop word removal), output format, case sensitivity, or language handling, leaving the agent without behavioral expectations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The six-word description is concise but under-specified. It omits essential details about the tool's operation, making it too sparse to be considered well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple schema and absence of annotations/output schema, the description should still cover expected output and edge cases. It only indicates result type (keywords by frequency), leaving the tool's behavior largely undefined.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50%: 'text' has a tautological description and 'top_k' has none. The description adds no parameter context, failing to explain that top_k controls the number of keywords returned or any format requirements.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description conveys the tool returns top keywords sorted by frequency, but lacks a clear verb or resource structure. It doesn't differentiate from sibling extraction tools like extract_emails or entity_extract, making the purpose somewhat implied.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
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 vs alternatives like word_stats or extract_query. The intended use case is implicit from the name and description, with no exclusions or context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.