Skip to main content
Glama

search_text

Read-onlyIdempotent

Full-text search over articles, recitals and annexes of the EU AI Act. Returns ranked matches with snippets.

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": "search_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 5, hard cap 25)
queryYes
scopeNoDefaults to all

Output Schema

NameRequiredDescriptionDefault
queryYes
scopeNo
resultsYes
total_matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / results / items / properties / citation
      Added value: +{
      +  "description": "Clause-level citation: clause (e.g. \"Article 5(1)(ba)\"), the article's official heading, and the euaiactlaw.com paragraph permalink (#/article/N/<anchor>).",
      +  "properties": {
      +    "anchor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "annex": {
      +      "type": "string"
      +    },
      +    "article": {
      +      "type": "string"
      +    },
      +    "clause": {
      +      "type": "string"
      +    },
      +    "official_title": {
      +      "type": "string"
      +    },
      +    "paragraph": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "permalink": {
      +      "type": "string"
      +    },
      +    "point": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "recital": {
      +      "type": "integer"
      +    },
      +    "subpoint": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "clause",
      +    "official_title",
      +    "permalink"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max results to return (default 5, hard cap 25)",
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "query": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "permalink": {
      +            "type": "string"
      +          },
      +          "snippet": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "label",
      +          "snippet",
      +          "permalink"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "scope": {
      +      "type": "string"
      +    },
      +    "total_matches": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "total_matches",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds that results are ranked and include snippets, which is genuine behavioral context, but says nothing about ranking behavior, empty-result handling, or truncation beyond what the limit param already documents.

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?

Two short sentences, zero filler, with the corpus scope front-loaded and the return shape second. Nothing is redundant with the schema or annotations.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The corpus scope and result shape are stated; the only real gap is query syntax and the implicit contrast with the direct-access siblings, which keeps it from a 5.

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 coverage is 67%: limit and scope are documented in the schema, but the required 'query' parameter has no schema description at all. The description partially compensates by labeling the operation 'full-text search', implying free-text query semantics rather than exact-match, though it gives no syntax guidance (phrases, operators).

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?

States a specific verb ('Full-text search') and a precise resource ('articles, recitals and annexes of the EU AI Act'), and adds the result shape ('ranked matches with snippets'). It does not explicitly distinguish itself from lookup siblings like get_article or get_recital, so it stops short of a 5.

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 word 'search' versus the sibling names 'get_article'/'get_recital' implies this is for exploratory keyword lookup rather than retrieving a known provision, but the description never says when to prefer it or when a direct getter is better. Usage is inferable, not stated.

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