Skip to main content
Glama
MobileAction MCP Server

MobileAction MCP Server

by asyau

extract_keyword_history_args

Extracts country code, keyword, start date, and end date from a user query to prepare keyword history requests; returns None when required values are missing.

Instructions

Extracts country_code, keyword, start_date, and end_date from a user query. Returns a dict with the extracted values, or None if not all are found.

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": {
      "query": "<query>"
    },
    "name": "extract_keyword_history_args"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose the all-or-nothing contract: a dict only if every field is found, otherwise None. It says nothing about how the query is parsed (regex vs. model), what query syntax is expected, or whether partial matches are ever returned.

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?

Two short sentences, front-loaded with the extraction targets and followed by the return contract. No filler. It is arguably slightly under-specified rather than verbose, which is a separate dimension.

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 one-parameter extraction helper with an output schema already defined, the description covers what is pulled out and the None failure mode, which is most of what an agent needs. The main remaining gap is that nothing tells the caller how to proceed on a None result.

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 0% for the single 'query' parameter, so the schema gives no meaning beyond the name. The description partially compensates by establishing that the query is expected to contain a country code, a keyword, and a date range — that is a real constraint on the input. It still does not specify the expected formatting of those values (e.g., date format, country code style).

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 names a specific verb ('Extracts') and enumerates exactly which four values are pulled from the query: country_code, keyword, start_date, end_date. That makes the operation concrete. It does not explicitly state that this is a preprocessing step feeding get_keyword_history, so differentiation from that sibling is only implied by the name overlap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call this versus calling get_keyword_history directly, nor any guidance on what to do when the result is None (e.g., retry, ask the user for missing fields). Usage is only inferable from the shared 'keyword_history' naming.

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