Skip to main content
Glama

Language analyze entities

language.analyze_entities
Read-onlyIdempotent

Extracts salient entities from ad content to reveal key brands, products, and topics for ad classification and targeting; invokes Cloud Natural Language API and incurs API costs.

Instructions

Extract salient entities from ad content. Incurs Cloud Natural Language API cost.

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": {
      "text": "<text>"
    },
    "name": "language.analyze_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's main job is added context, and it delivers a genuinely useful billing disclosure about Cloud Natural Language API cost. It does not add anything on limits, quotas, or expected latency beyond that, which keeps it at a 4 rather than a 5.

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 with zero filler. The function is front-loaded and the cost warning follows immediately, with no redundant restatement of the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 carry the safety profile. What remains missing for a cost-incurring, open-world API call is any guidance on when to prefer a sibling language tool and any hint about input constraints beyond 'ad content'.

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%: the single 'text' property is undocumented in the schema. The description partially compensates by framing the input as 'ad content', which tells the agent what kind of text to pass, but it says nothing about length limits, language support, or encoding expectations for that parameter.

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 and resource ('Extract salient entities') and scopes it to ad content, which is enough to separate it from language.analyze_sentiment and language.detect_language. It stops short of explicitly naming those siblings or stating how entity extraction differs from them, so the differentiation is inferable rather than stated.

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?

Usage is only implied: an agent can deduce it should call this when it needs entities from text, and should not call it for translation or sentiment. There is no explicit when-to-use, no exclusions, and no pointer to an alternative for related language tasks, so the agent must infer routing from the tool name.

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

Deploy Server

Other Tools