Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Translate batch

astroway_content_localization_translate_batch
Read-onlyIdempotent

Translate up to 25 strings (≤2000 chars each, ≤20000 total) sharing one target language + domain. Credits: 15 + ceil(total_chars/40).

[Group: Content Localization] [Endpoint: POST /v1/translate/batch] [Required: items, target_lang] [Cost: 16 credits (Tier 1)]

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": {
      "items": "<items>",
      "target_lang": "<target_lang>"
    },
    "name": "astroway_content_localization_translate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
domainNo
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
precisionNoRound numbers to this many decimals.
source_langNo
target_langYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / fields / description
      Previous value: -"Compact mode: comma-separated dotted paths to keep, relative to `data`, e.g. \"planets.name,planets.longitude,houses.cusp\". Omit for the whole response."New value: +"Comma-separated paths inside `data` to keep, e.g. \"planets.name,houses.cusp\"."
    • changedInput schema / properties / precision / description
      Previous value: -"Compact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn."New value: +"Round numbers to this many decimals."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "properties": {
      -    "chars": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "count": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "credits": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "domain": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "items": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": {},
      -                "properties": {
      -                  "provider": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "translated": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "source_lang": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "target_lang": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed13 schema fields changed
    • removedOutput schema / properties / chars / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / chars / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / credits / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / credits / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / domain / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / domain / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "provider": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "translated": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "provider": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "translated": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / source_lang / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / source_lang / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / target_lang / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / target_lang / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. First observed

TDQS

A3.6/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, closed world), and the description adds genuinely useful context beyond them: the credits formula, the per-item and total character ceilings, and the endpoint. Minor inconsistency worth noting: the header formula (15 + ceil(total_chars/40)) does not match the stated flat "Cost: 16 credits (Tier 1)". It does not say what happens on partial failures or whether input order is preserved in the result.

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?

The core sentence is front-loaded and dense with the limits and cost model that matter most. The bracketed metadata block (group, endpoint, required, cost) is somewhat redundant with the schema's `required` array and repeats the cost already given above, which costs a little efficiency.

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?

There is no output schema, so the description should explain what is returned — an array of translated strings, their ordering, and how failures or partial success are reported — and it does not. With six parameters at 33% schema coverage and a mutation-free but credit-consuming operation, the definition is serviceable but incomplete.

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 description coverage is only 33% (only `fields` and `precision` carry descriptions), so the description must compensate for the four undocumented parameters. It explains `items` constraints and the shared `target_lang`/`domain` scope, but says nothing about `source_lang` (e.g. whether it auto-detects), `fields`, or `precision` behavior. It therefore adds only partial meaning beyond the schema.

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 gives a specific verb and resource ("Translate up to 25 strings … sharing one target language + domain") and states hard size limits, so an agent knows exactly what operation this performs. It does not name the sibling translate tools (translate_astro, translate_glossary_lang) to explain how a batch of plain strings differs from those, so sibling differentiation is left implicit.

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: the shared target language + domain constraint hints that this is the bulk path for homogeneous string sets, but there is no explicit when-to-use / when-not guidance and no named alternative for single-string or astro-specific translation. Adequate for routing in obvious cases, but the agent must infer the boundaries.

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