Skip to main content
Glama
ricCap

Sketch Engine MCP Server

by ricCap

execute_cql_query

Execute arbitrary CQL queries on corpora to find linguistic patterns, with support for simple word/lemma searches or complex JSON queries with filters and sorting.

Instructions

Execute arbitrary CQL (Corpus Query Language) queries. Documentation: https://www.sketchengine.eu/documentation/corpus-querying/. Use 'q' for simple queries or 'json' for complex queries with filters/sorts. Do not use both simultaneously.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoCQL query string. Examples: [lemma="run"] (lemma search), [word="the"] (word search), [tag="NN.*"] (POS tag), [lemma="get" & tag="V.*"] (combined conditions)
jsonNoJSON parameter for complex queries with filters, sorts, or parallel concordances. Use this instead of 'q' for advanced queries.
refsNoStructural attributes (metadata) to display (optional)
attrsNoPositional attributes to display (optional)
corpnameYesName of the corpus
pagesizeNoNumber of concordance lines to return
usesubcorpNoName of subcorpus (optional)
Behavior2/5

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

No annotations exist, so the description must bear full responsibility. It does not mention whether queries are read-only, performance implications, authorization requirements, or potential side effects. The only behavioral detail is the mutual exclusivity of 'q' and 'json'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loading the core purpose and following with a concise usage directive. No wasted words; every sentence contributes meaning.

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 output schema, the description should explain return values, pagination, or result format. It does not, leaving a significant gap for a powerful query tool. The tool's complexity demands more context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents each parameter. The description adds value by clarifying the relationship between 'q' and 'json' and providing usage guidance, which goes beyond the schema's individual parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes arbitrary CQL queries, with a documentation link. It distinguishes from siblings by being the only one for custom queries, and specifies two usage modes (simple vs complex) to avoid ambiguity.

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

Usage Guidelines4/5

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

The description provides explicit guidance on when to use 'q' vs 'json' and warns not to use both simultaneously. While it does not directly compare with siblings, the context implies this tool is for non-standard queries not covered by specialized siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ricCap/sketch-engine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server