detectLanguage

检测文本语言

Server Translate translate-mcp-server
Category Read
Risk class Low
Parameters 00 required

What detectLanguage does on Translate

AI agents call detectLanguage to retrieve information from Translate without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why detectLanguage needs a policy

This is a read-only operation that analyzes text to determine its language and returns the result. It has no side effects, does not execute code or commands, does not modify data, and does not involve financial transactions. The blast radius of misuse is minimal—at worst, an AI could analyze private text to identify languages, but this causes no irreversible harm.

From the tool's definition Tool name 'detectLanguage' and description '检测文本语言' (detect text language) indicate the tool analyzes input text and returns language identification metadata without modifying, executing, or deleting any data.

Questions about detectLanguage

What does the detectLanguage tool do? +

检测文本语言. It is categorised as a Read tool in the Translate MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on detectLanguage? +

Register the Translate MCP server in PolicyLayer and add a rule for detectLanguage: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Translate. Nothing to install.

What risk level is detectLanguage? +

detectLanguage is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit detectLanguage? +

Yes. Add a rate_limit block to the detectLanguage rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block detectLanguage completely? +

Set action: deny in the PolicyLayer policy for detectLanguage. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides detectLanguage? +

detectLanguage is provided by the Translate MCP server (translate-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.